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

Still doesn't find 'print' #2

Open
rmast opened this issue Aug 8, 2024 · 5 comments
Open

Still doesn't find 'print' #2

rmast opened this issue Aug 8, 2024 · 5 comments

Comments

@rmast
Copy link

rmast commented Aug 8, 2024

For reproduction steps see the workaround for #1

On the right top is the text 'print' that still isn't found by this script.

python hocrmod.py -l nld+eng+lat -f ~/175789293-f39ddfdb-6f3e-4598-8d16-80a1f4a88b36.jpg
missing base hocr file: /home/rmast/175789293-f39ddfdb-6f3e-4598-8d16-80a1f4a88b36.hocr, running Tesseract
sort through hocr paragraphs..................................................................!
block out recognized text..................................................................!
look for missed text blocks......!
work through contours.......................................................!
hocr line(s) added: 4
(hocrmod4) rmast@rmast-virtual-machine:~/hocrmod$ grep -i print ../175789293-f39ddfdb-6f3e-4598-8d16-80a1f4a88b36.hocr.bak ../175789293-f39ddfdb-6f3e-4598-8d16-80a1f4a88b36.hocr
@artunit
Copy link
Member

artunit commented Aug 9, 2024

Thanks, I will look at this in the next few days.

@rmast
Copy link
Author

rmast commented Aug 10, 2024 via email

@stweil
Copy link

stweil commented Aug 10, 2024

This PR is nearly two years old: tesseract-ocr/tesseract#3899

@rmast
Copy link
Author

rmast commented Aug 10, 2024 via email

@artunit
Copy link
Member

artunit commented Aug 10, 2024

You are leagues ahead of me in trouble-shooting this problem. I have tinkered with using opencv's color selecting tools to try to leverage multi-coloured blocks but tackling this in Tesseract proper makes a lot of sense. I will leave this issue open for a few days but I don't really have anything to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants