Skip to content

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

Open
@harishvgk

Description

@harishvgk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions