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

The character "B" is detected to "8" #10

Open
HTKT opened this issue Apr 13, 2018 · 2 comments
Open

The character "B" is detected to "8" #10

HTKT opened this issue Apr 13, 2018 · 2 comments

Comments

@HTKT
Copy link

HTKT commented Apr 13, 2018

I'm using the project to scan the passport but the character "B" is always detected to number 8. How can i train the model or improve the scanning?

Thanks.

@mmbabaev
Copy link
Contributor

Hey, unfortunately, there is no simple way to do this. Documents-ocr-ios uses Tesseract library with their own train data (Assets/tessdata). You can try to train model by yourself (https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00) and replace .traineddata file.

Another way to handle this error is to add replacing functionality programmatically. For instance, replacing all '8' to 'B' inside name properties...

Also, you can increase
scanner.photosCount = 10
But I think it won't be really helpful for U :)

@HTKT
Copy link
Author

HTKT commented Apr 14, 2018

Another way to handle this error is to add replacing functionality programmatically. For instance, replacing all '8' to 'B' inside name properties...

This way seems to can not work if the we replace all '8' to 'B' inside the Passport number. Do you have any idea to improve this issue?

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

2 participants