You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
For me, with the above TESSERACT_OCR_OPTIONS="--oem 0" workaround on 22.04 I then get
Error: Tesseract (legacy) engine requested, but components are not present in /usr/share/tesseract-ocr/4.00/tessdata/eng.traineddata!!
Failed loading language 'eng'
Tesseract couldn't load any languages!
but
List of available languages (4):
cym
eng
gla
osd
so resorted to looking minimally at the --help-extra and tried --oem 3 , which got further but failed to PASS (the requested text was there but not found). 🛑
UPDATE
[20240517-150932] 📁 /home/phil/src/quicktest/results/alpine/v3.19/test_boot_to_login/20240517-150833
[20240517-150932] 🎉 Test passed: test_boot_to_login
The solution was to grab the best tessdata eng file.
🎆
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.
The text was updated successfully, but these errors were encountered: