You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use ocr plugin in my ionic 3 project, but when I call recText console returns this error:
ERROR TypeError: Object(...) is not a function at recText.
I used this commands to install the plugin:
ionic cordova plugin add cordova-plugin-mobile-ocr
npm install @ionic-native/ocr
I'm getting the same error. Tried following the links to the other issue (# 37 raised with Ionic guys) and that was marked as closed due to duplicate. ???
Hi, I'm trying to use ocr plugin in my ionic 3 project, but when I call recText console returns this error:
ERROR TypeError: Object(...) is not a function at recText.
I used this commands to install the plugin:
ionic cordova plugin add cordova-plugin-mobile-ocr
npm install @ionic-native/ocr
my function:
readTag(){
this.ocr.recText(OCRSourceType.BASE64, this.imageText)
.then((res: OCRResult) => {
console.log(JSON.stringify(res.blocks.blocktext));
this.ocrTextHTML = JSON.stringify(res.blocks.blocktext);
})
.catch((error: any) => console.error(error));
}
Does someone know how to fix this? thanks for any help.
Obs: I made the same example in ionic 5 project and it worked.
The text was updated successfully, but these errors were encountered: