-
Notifications
You must be signed in to change notification settings - Fork 32
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
'Could not set up the detector' error #18
Comments
Hey @juanpirezsarquis |
I did what you mention @ChrisTomAlx and the issue persists. I will try on a new project and see what happens. |
The same issue. ionic start mobileOCRtest tabs --cordova Replace the files: ionic cordova run android Go to tab2. |
Hey @juanpirezsarquis It is possible the ionic team updated / haven't updated the plugin on their end, There were a few breaking changes in the last release. This might be why you are seeing this issue. Did you remove and readd plugins or do cordova prepare or cordova platform add when this issue first started? Any of these could have changed the plugin version to one that doesn't match the ionic plugin. |
Hi Chris, thank you for your help. I don't remember what was the last command before the issue started, but I made a new project from start and has the same issue (#18 (comment)). The plugin version is [email protected] and I am aware of issue #16, is not that. The phone's Google Play Services version is 19.0.56, I think that this could be updated before the issue started. |
According to this there is no Also could you share with me your full list of plugins. You can get this info from the cli using |
I was talking about the version of Google Play Services app installed in the phone. It was updated from Google Play Store automatically. If I uninstall de updates, the app downgrades to version 7 and nothing works (Google Photos, Drive, etc). When updated, the version is 19.0.56. In my original project, the plugins are: Thank you! |
Oh I see. I have the same play services app version and I am able to use the plugin with no issues. |
I also have the same issue on Samsung Galaxy S8 (Android 7.0). This is a starter with mobile-ocr and camera plugins. ionic info Ionic: Ionic CLI : 5.2.7 (/Users/myuser/.nvm/versions/node/v10.16.3/lib/node_modules/ionic) Cordova: Cordova CLI : 9.0.0 ([email protected]) Utility: cordova-res : 0.6.0 System: Android SDK Tools : 26.1.1 (/Users/myuser/Library/Android/sdk) |
Running adb logcat W/DynamiteModule( 4817): Local module descriptor class for com.google.android.gms.vision.ocr not found. |
It works. The first time you use the app, it fails because it is downloading the library. After the download is complete, it works normally. Thanks for your help and time. |
Hi, I am using this plugin with ionic4. It was working fine and suddenly it stops working on a Samsung J1 Ace. 2,33Gb free space. It works on an iPhone.
The phone is connected to internet and has Google Play Services version 19.0.56.
The project has com.google.android.gms:play-services-vision:17.0.2, and there’s an update (version 18.0.1).
My code:
recognizeText(){
this.ocr.recText(OCRSourceType.NORMFILEURL, this.imageData)
.then((res: OCRResult) => {
if(res.foundText){
// DO THINGS
} else {
alert(‘no text’);
}
})
.catch((error: any) => {
console.error(error);
});
}
getPicture(sourceType : PictureSourceType){
this.camera.getPicture({
quality: 100,
destinationType: this.camera.DestinationType.FILE_URI,
sourceType: sourceType,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
allowEdit: true,
saveToPhotoAlbum: false,
correctOrientation: true
}).then((imageURI) => {
this.imageData = imageURI;
this.recognizeText();
}, (err) => {
console.error(err);
});
}
$ ionic info
`Ionic:
Ionic CLI : 5.2.6 (/Users/myuser/.nvm/versions/node/v10.16.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.5.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 9.0.0 ([email protected])
Cordova Platforms : android 8.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.0, (and 7 other plugins)
Utility:
cordova-res : 0.6.0
native-run : 0.2.8
System:
Android SDK Tools : 26.1.1 (/Users/myuser/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.16.3 (/Users/myuser/.nvm/versions/node/v10.16.3/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.3 Build version 10G8`
The text was updated successfully, but these errors were encountered: