-
Notifications
You must be signed in to change notification settings - Fork 34
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 always saying image is "Bad Base-64" #13
Comments
I'm also getting the same error. Any update? |
I was passing the wrong option to the Camera Plugin. @carlo318 in your case, pass the |
I tried your suggestion @NBAMj , but now it does'nt give me any feedback, neither successful, nor failed. I also put try catch outside Tesseract and inside any function (successful or failed), but nothing happens. Thankyou. |
Any resolution to this? I am getting same issue. |
I resolve the problem like this: var myimage = document.getElementById('smallImage').src.replace('data:image/jpeg;base64,', '');
TesseractPlugin.recognizeText(myimage, 'eng', function(recognizedText) {
console.log(recognizedText);
}, function(reason) {
console.log('Error on recognizing text from image. ' + reason);
}); |
Hi,
I have installed the plugin in an App for Android made with Ionic Framework.
I am trying to get an image with cordova-image-camera which is getting a base64 image, which is correct (if I use it in an it show the image correctly).
I pass that base64 as imageData input, but Tesseract always get an Exception "Bad Base-64".
Do you what could be the reason?
Example code:
The loadLanguage() call works successfully.
The recognizeText() always returns the function(reason), with the message: "Bad Base-64";
Thankyou.
Carlo
The text was updated successfully, but these errors were encountered: