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

Too slow 20.9 seconds end to end #148

Closed
thatsmekaustubh opened this issue Sep 5, 2017 · 3 comments
Closed

Too slow 20.9 seconds end to end #148

thatsmekaustubh opened this issue Sep 5, 2017 · 3 comments

Comments

@thatsmekaustubh
Copy link

Hi I am new to tesseract and just have implemented a small demonstration about its features for an internal discussion with colleagues. So far only one concern is bothering me, that

From the time i call tesseract.recognize till its ocr is completed it has taken me approx 18-21 seconds everytime.

Is there any possible way or reference i am missing out in order to optimize this timing.
I have been going through many issues in other tesseract repo as well. Some have reported the result timing as low as 3 seconds.

Help is appreciated.
Ty

@mtford90
Copy link

mtford90 commented Nov 24, 2017

Agreed

On my machine in node 8.7:

  • 10 images using tesseract.js: 471.671 seconds
  • Same 10 images using node-tesseract: 19.909 seconds

If it's this slow in node on a pumped up macbook pro, I can only assume it will be super painful in the browser and on mobile devices e.g. with react native. Shame as I was hoping to save some cash by offsetting OCR onto the client ;)

That being said - damn impressive porting this over to Javascript - I hope it becomes faster in the future!

@thatsmekaustubh
Copy link
Author

@mtford90 agreed

Will updated my result again after testing latest release if there are any performance changes

@jeromewu
Copy link
Member

JavaScript has its limit and node-tesseract is actually using the C version to complete the task. I think it is normal to take more time in tesseract.js comparing the the native one.

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