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

Not working on given images #1

Open
harshalcse opened this issue Jan 21, 2019 · 2 comments
Open

Not working on given images #1

harshalcse opened this issue Jan 21, 2019 · 2 comments

Comments

@harshalcse
Copy link

harshalcse commented Jan 21, 2019

@DevashishPrasad
I tried on following image but it does not gives expected output .
img1

Can you please help me on these ?
Also which research paper r u referging?

@harshalcse harshalcse changed the title not working on given images Not working on given images Jan 21, 2019
@DevashishPrasad
Copy link
Owner

DevashishPrasad commented Jan 23, 2019 via email

@thelwyn
Copy link

thelwyn commented Nov 8, 2019

@harshalcse I used the code successfully on a very similar engraved pattern, but I ran the tesseract magic directly on the "dilated" version of the image, and skipped all the mask transformation.

That is, in this line:
# Tesseract OCR on the image temp = pytesseract.image_to_string(th1)

Replace "th1" by "dilate"

Oh. One difference is that in my case my text is perfectly horizontal. I don't know if it's making it easier for tesseract?

If it still doesn't work, display the blurred/edged/dilated/new image/inverterd threshold version of the image and try to figure out at which step it becomes unreadable by tesseract, and then try to tweak it. But you're engraving is quite clear, it's definitely doable.

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