tesseract.js icon indicating copy to clipboard operation
tesseract.js copied to clipboard

Large images cause a delay

Open tim-krieger opened this issue 5 years ago • 1 comments

If I use a photo (~5 M) it takes a long time (~15 sec) before the text recognition starts. The browser console shows me [Violation] 'load' handler took. Same issue with https://github.com/naptha/tesseract.js/blob/master/examples/browser/basic.html.

Is this a normal behavior or should I resize the image? Smaller pictures (~1 M) are no problem.

tim-krieger avatar Oct 21 '20 13:10 tim-krieger

This may be related to this line, which is causing a hang depending on how many bytes it needs to process. I've made a patch in #610 whilst adding support for ImageData.

WintrySnowman avatar Apr 22 '22 23:04 WintrySnowman

Closing as this should be resolved with the release of version 3.0.0. Feel free to open another issue if that is not the case.

Balearica avatar Aug 20 '22 04:08 Balearica