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

Error: Waiting for the text recognition module to be downloaded. Please wait #30

Open
harishvgk opened this issue Jun 21, 2022 · 5 comments

Comments

@harishvgk
Copy link

Tried to detect text by passing Uri, its taking time around 5-7 seconds and showing this message in chrome browser console

let resultFromUri = await MlkitOcr.detectFromUri(uri);

package.json:

"@react-native-firebase/app": "^15.0.0",
"@react-native-firebase/ml": "^15.0.0",
"react-native-image-picker": "^4.8.4",
"react-native-mlkit-ocr": "^0.2.5",

Error:

Possible Unhandled Promise Rejection (id: 0):
Error: Waiting for the text recognition module to be downloaded. Please wait.
Error: Waiting for the text recognition module to be downloaded. Please wait.
at Object.promiseMethodWrapper [as detectFromUri] (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:2580:36)
at detectFromUri$ (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:112555:58)
at tryCatch (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:24259:19)
at Generator._invoke (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:24239:26)
at Generator.next (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:24290:23)
at tryCatch (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:24259:19)
at invoke (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:24297:22)
at http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:24321:13
at tryCallTwo (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:28716:7)
at doResolve (http://localhost:3001/index.bundle?platform=android&dev=true&minify=false&app=com.rntextdetect&modulesOnly=false&runModule=true:28880:15)

How to resolve this?

Advance Thanks for Helping

@AbhinayMe
Copy link

Same issue. Did you manage to resolve?

@mwerder
Copy link

mwerder commented Oct 14, 2022

Any update? We have only one user so far with this issue, unfortunately not reproducible on our side. We just see the error in sentry.

@jmazier-j2d
Copy link

I'm having multiple users with different devices reporting this issue (I cannot reproduce on my dev phones and tablets).
Successfully reproduced using a Pixel 3a API 31 in the android studio simulator, but no luck with Apple devices (user reporting on iPad 12.9 Pro on iOs 15.X - couldn't reproduce in xCode simulator as it doesn't allow camera use..).

@Tschuss69
Copy link

Any solution for this issue ?

@Stanley-X
Copy link

Same 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

7 participants
@AbhinayMe @mwerder @Tschuss69 @jmazier-j2d @harishvgk @Stanley-X and others