Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSD mode (--psm 0) always returns dummy results when language (-l eng, -l pol, etc.) is specified #2931

Closed
Twixes opened this issue Mar 24, 2020 · 4 comments
Labels
OSD Orientation and Script Detection

Comments

@Twixes
Copy link

Twixes commented Mar 24, 2020

Environment

  • Tesseract Version: 4.1.1 and 5.0.0-alpha-635-g90405
  • Platform: macOS 10.15.3 (tested with v4) and Ubuntu 18.04 (tested with v4 and v5)

Current Behavior:

Invocations with options --psm 0 -l eng always return the same dummy results for all valid images:

Orientation in degrees: 0
Rotate: 0
Orientation confidence: 0.00
Script: Latin
Script confidence: 2.00

Expected Behavior:

Results should contain actual Orientation degrees, Rotate and Orientation confidence values.

@Twixes Twixes changed the title Dummy results are always returned in OSD mode (--psm 0) when language is specified OSD mode (--psm 0) always returns dummy results when language (-l eng, -l pol, etc.) is specified Mar 24, 2020
@zdenop
Copy link
Contributor

zdenop commented Mar 24, 2020

Solution: do not use language specification when you for osd.

@Twixes
Copy link
Author

Twixes commented Mar 24, 2020

I thought it should be working with language specification? #1926 (comment)

@amitdo
Copy link
Collaborator

amitdo commented May 9, 2020

It looks like a duplicate of #2062.

@amitdo amitdo closed this as completed May 9, 2020
@amitdo
Copy link
Collaborator

amitdo commented May 14, 2020

#2062 (comment)

You need to:

  1. Download eng.traineddata from the tessdata repo,
  2. Create new tessdata directory somewhere.
  3. Add --tessdata-dir /path/to/your/tessdata to the the tesseract command.

@amitdo amitdo added the OSD Orientation and Script Detection label May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OSD Orientation and Script Detection
Projects
None yet
Development

No branches or pull requests

3 participants