NeutrinosPlatform/cordova-plugin-mobile-ocr

Exception error

Closed this issue · 5 comments

Good afternoon,

after taking the photo, the function "textocr" returns a string that says exception only, and validates the cordova and anddrroid versions and according to the requirements everything is in order.
I attach my project, thank you very much
nbproject.zip

It would seem you are using the plugin as below :
textocr.recText(0, 3, image, onSuccess, onFail);

From plugin version 2.0.0 and above you need to use it as below :
textocr.recText(0, image, onSuccess, onFail);

Notice that I removed the "3" which was the returnType

Let me know if this helps :)

Cheers,
Chris
Neutrinos

Hello

Yes, now it works better, but, the recognizedText variable is returned as an object, do you know what the property is that the text shows?

Thanks

Yea will be adding details about the object to the readme shortly.
In the meantime you could view the exact object along with example objects in the readme here : https://github.com/NeutrinosPlatform/cordova-plugin-ml-text

Scroll to the very bottom of the readme to view it

Just in case you did not already know :) You can console.log the object to see the entire object

Cheers,
Chris
Neutrinos

Thank you very much, you are the best !! : D

My Pleasure!!

Have a nice day!
Chris
Neutrinos