-
Notifications
You must be signed in to change notification settings - Fork 31
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 #26
Comments
Hey @Chamiyalt Also could you send this image as text so I can copy - paste - search. |
|
https://stackoverflow.com/a/39313255/7596996 can you tell is it the problem? |
These logs don't look like they are linked to ocr. Also this log is different from the original image you sent. |
Problem is happened in thread that u have created , i think thread come in to waiting state during the downloading of google packages then processor give the chance to next priority thread then it shows the exception,i will get the those packages out of the tread it was worked smoothly. |
So the ocr runs on a separate thread, I did not want to block the UI and hence ran it on a different thread. Would it be better if the ocr ran on the UI thread or the user of the plugin had an option to choose between UI thread or new thread? Would love your suggestion as you seem to be one of the few who have run into this issue and solved it. |
better to has option to choose between UI thread or new thread, with crystal clear documentation 👯♂ |
apart from i assume some of devices are allowed to download google packages in separate thread that you are using but some of the devices which have less performance is allocated less time to tread that u are using because of tread can't download google packages correctly. |
Hi, I have the same error. I published my problem here: |
@haghighi251 did you try eveerything mentioned in the comments ? |
@ChrisTomAlx as far as I know yes, But I'm not sure about treading. Do download google packages have a connection with my pc devices? I make an empty application with the ocr plugin and Cordova camera plugin and then added the android platform and then I made apk file. But I have that problem yet. I'm using windows 10 with Cordova version 10 and android platform version 9. I tested ad some different devices such as android 8-10, But it didn't worked. |
@ChrisTomAlx Yes, It does have. |
I have used two devices which are Samsung Galaxy J Max and Huawei Honor 6X for testing my app, Plugin working smoothly on Huawei device and Samsung device shows the error "Could not set up the detector" how can i fix this ? can i add bellow pakages separately
com.google.android.gms.vision.Frame;
com.google.android.gms.vision.text.Text;
com.google.android.gms.vision.text.TextBlock;
com.google.android.gms.vision.text.TextRecognizer;
The text was updated successfully, but these errors were encountered: