-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Tesseract.recognize promise never resolves on mobile #510
Comments
I had the same issue. Downgraded to v2.1.1 and the issue is fixed |
Downgrading to v2.1.1 didn't solved my issue, but thanks anyway. |
In my case, i did this:
npm uninstall tesseract.js
npm install tesseract.js@2.1.1
npm install
…On Sun, Jan 17, 2021, 2:53 AM KaKi87 ***@***.***> wrote:
Downgrading to v2.1.1 didn't solved my issue, but thanks anyway.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#510 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHY4ZELDQPNXUOANBL7LVOTS2KJRFANCNFSM4VO7XFTQ>
.
|
Me too. I have this code: async function getText(imageFile: File) {
Tesseract.recognize(imageFile, "eng", {
logger: (m) => {
if (m.progress) {
setProgress(100 * m.progress);
}
// console.log(m);
},
})
.catch((err) => {
console.error(err);
setTesseractError(err);
})
.then((result) => {
if (result) {
const { data } = result;
setPageData(data);
} else {
setPageData(false);
}
});
} in Firefox, Chrome, and desktop Safari it works great. But on Safari iOS it always crashes. Not sure if it matters, but the input image is a .jpeg and I put its |
Encountered similar issue but it only crash on mobile safari. Follow fr3shn3ss and downgraded to 2.1.1 and it worked. Will try other versions. |
If this issue is still active, please confirm whether this is an issue with the latest version (v3). The problematic 2.1.2 update that appears to be the issue (given discussion above) was removed, so if downgrading to 2.1.1 resolved then I believe the problem should be solved in the latest version. |
Closing given that this appears to have been resolved in an update (see above). |
Describe the bug
The promise returned by
Tesseract.recognize
always resolves on desktop but never does on mobile.To Reproduce
Steps to reproduce the behavior:
Tesseract.recognize
on mobileExpected behavior
The method promise resolves on mobile as it does on desktop.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Running as userscript on Violentmonkey.
Thanks
The text was updated successfully, but these errors were encountered: