Skip to content

bug: Tesseract command line options only work on 5.x #20

@popey

Description

@popey

Expected behavior

Quicktest should work on Ubuntu 22.04.

Actual behavior

Tesseract fails with Error, unknown command line argument '--loglevel'

Workaround:

Unset the tesseract options environment variable or set it to something else. TESSERACT_OCR_OPTIONS="--oem 0" ./quicktest

Steps to reproduce the behavior

Run Quicktest on Ubuntu 22.04

Additional context

We should probably either detect the version of tesseract and bail if less than 5.x, or perferably, tweak settings depending on the version of tesseract installed. Ideally people should be able to run this on any release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions