-
Notifications
You must be signed in to change notification settings - Fork 248
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
loading opencv error #20
Comments
Make sure you have included the jnilibs folder. From the error, it seems that the code is not able to find OpenCV |
I've found the same error. Why should I include the jnilibs folder? This shouldn't be done automatically? Maybe you've missed something in the readme? |
i have the same error, if we must add some code in android or ios side, you must write it in readme. |
I am not sure if you are running the example app or using the code from example app. If you are running the example app then it should work out of the box. If you have installed the plugin from the pub.dev and the using the code from example then also it should work as the JNI files are already there in the pub.dev plugin. |
I found the solvation. |
This is not a real "solution". How can you deploy something without testing it? |
@RobyFerro I have tested it on Nexus6p and iPhone6s and it's working fine. If for some reason it's not working on your device then use Device Logcat in android studio and then open the app. If it crashes or throws some error then it will be logged in the Logcat. |
@sawankumarbundelkhandi Ok but is tested only in a "demo" app. At the moment is not possible to implement this feature on a custom application. |
@RobyFerro I have installed it on a new application (flutter create test_app) from pub.dev and it works. |
@sawankumarbundelkhandi Are u test it in emulator? |
This is the error that I am getting on emulator. D/OpenCV/StaticHelper( 7463): Trying to get library list |
I have the same problem. I cannot test my app on emulators at all but I am able to test on a real device. So, I test it on my device always. I tested on a few emulators such as Pixel 2, Pixel 3, Pixel XL with no luck. |
@Amitbhave, @Hesamedin I have never tested this plugin on an android emulator or an ios simulator. I have always run it on a real device. |
@Amitbhave @AlirezaDaryani @heinhoang Can you please try it on an x86_64 emulator? I believe you are getting this error as the plugin doesn't include x86 openCV files. |
I have added x86 files as well to the project. and It should work now. The files can't be published with a pub package as there is a limit of 100 MB for a package. So anyone who wants to run this package on an x86/x86_64 emulator/ device has to use the plugin from GitHub. You can use it directly from Github in pubspec.yaml like |
This worked for me!
Thanks :) please put this in your readme! |
I do the similar to the example but it pulls out error:
The text was updated successfully, but these errors were encountered: