sawankumarbundelkhandi / edge_detection

This is a flutter plugin to detect edges in a live camera, take the picture of detected edges object, crop it, and save.
https://pub.dev/packages/edge_detection
Apache License 2.0
251 stars 247 forks source link

OpenCV library not loading #52

Closed omarsve closed 3 years ago

omarsve commented 3 years ago

Hi I'm trying to work with edge detection, it used to work but i upgraded flutter to 2.2.2 and stopped working, running the app in the device wont detect any edge and in the bundle in the play store will make the app crash

D/OpenCV/StaticHelper(22192): Trying to get library list E/OpenCV/StaticHelper(22192): OpenCV error: Cannot load info library for OpenCV D/OpenCV/StaticHelper(22192): Library list: "" D/OpenCV/StaticHelper(22192): First attempt to load libs D/OpenCV/StaticHelper(22192): Trying to init OpenCV libs D/OpenCV/StaticHelper(22192): Trying to load library opencv_java3 I/OpenCV (22192): calling android_getCpuFeatures() ... I/OpenCV (22192): calling android_getCpuFeatures() ... Done (1f7ff) D/OpenCV/StaticHelper(22192): Library opencv_java3 loaded D/OpenCV/StaticHelper(22192): First attempt to load libs is OK I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): General configuration for OpenCV 3.3.0 ===================================== I/OpenCV/StaticHelper(22192): Version control: 3.3.0 I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Platform: I/OpenCV/StaticHelper(22192): Timestamp: 2017-08-04T00:30:10Z I/OpenCV/StaticHelper(22192): Host: Linux 4.8.0-58-generic x86_64 I/OpenCV/StaticHelper(22192): Target: Linux 1 armv7-a I/OpenCV/StaticHelper(22192): CMake: 2.8.12.2 I/OpenCV/StaticHelper(22192): CMake generator: Ninja I/OpenCV/StaticHelper(22192): CMake build tool: /usr/bin/ninja I/OpenCV/StaticHelper(22192): Configuration: Release I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): CPU/HW features: I/OpenCV/StaticHelper(22192): Baseline: NEON NEON I/OpenCV/StaticHelper(22192): requested: DETECT I/OpenCV/StaticHelper(22192): required: NEON I/OpenCV/StaticHelper(22192): disabled: VFPV3 I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): C/C++: I/OpenCV/StaticHelper(22192): Built as dynamic libs?: NO I/OpenCV/StaticHelper(22192): C++ Compiler: /usr/bin/ccache /opt/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ (ver 4.8) I/OpenCV/StaticHelper(22192): C++ flags (Release): -fexceptions -frtti -fpic -Wno-psabi --sysroot=/opt/android/android-ndk-r10e/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -mfp16-format=ieee -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG I/OpenCV/StaticHelper(22192): C++ flags (Debug): -fexceptions -frtti -fpic -Wno-psabi --sysroot=/opt/android/android-ndk-r10e/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -mfp16-format=ieee -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -DDEBUG -D_DEBUG I/OpenCV/StaticHelper(22192): C Compiler: /usr/bin/ccache /opt/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc I/OpenCV/StaticHelper(22192): C flags (Release): -fexceptions -fpic -Wno-psabi --sysroot=/opt/android/android-ndk-r10e/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -mfp16-format=ieee -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG I/OpenCV/StaticHelper(22192): C flags (Debug): -fexceptions -fpic -Wno-psabi --sysroot=/opt/android/android-ndk-r10e/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -mfp16-format=ieee -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -DDEBUG -D_DEBUG I/OpenCV/StaticHelper(22192): Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now I/OpenCV/StaticHelper(22192): Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now I/OpenCV/StaticHelper(22192): ccache: YES I/OpenCV/StaticHelper(22192): Precompiled headers: NO I/OpenCV/StaticHelper(22192): Extra dependencies: z dl m log I/OpenCV/StaticHelper(22192): 3rdparty dependencies: cpufeatures libprotobuf libjpeg libwebp libpng libtiff libjasper IlmImf tegra_hal tbb I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): OpenCV modules: I/OpenCV/StaticHelper(22192): To be built: core flann imgproc ml objdetect photo video dnn imgcodecs shape videoio highgui superres ts features2d calib3d java stitching videostab I/OpenCV/StaticHelper(22192): Disabled: world I/OpenCV/StaticHelper(22192): Disabled by dependency: - I/OpenCV/StaticHelper(22192): Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 python3 viz I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Android: I/OpenCV/StaticHelper(22192): Android ABI: armeabi-v7a with NEON I/OpenCV/StaticHelper(22192): STL type: gnustl_static I/OpenCV/StaticHelper(22192): Native API level: android-9 I/OpenCV/StaticHelper(22192): SDK target: android-11 I/OpenCV/StaticHelper(22192): Android NDK: /opt/android/android-ndk-r10e (toolchain: arm-linux-androideabi-4.8) I/OpenCV/StaticHelper(22192): android tool: /opt/android/android-sdk-java7/tools/android (Android SDK Tools, revision 25.2.2.) I/OpenCV/StaticHelper(22192): Google Play manager: NO I/OpenCV/StaticHelper(22192): Android examples: YES I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): GUI: I/OpenCV/StaticHelper(22192): GTK+: NO I/OpenCV/StaticHelper(22192): GThread : NO I/OpenCV/StaticHelper(22192): GtkGlExt: NO I/OpenCV/StaticHelper(22192): OpenGL support: NO I/OpenCV/StaticHelper(22192): VTK support: NO I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Media I/O: I/OpenCV/StaticHelper(22192): ZLib: z (ver 1.2.3) I/OpenCV/StaticHelper(22192): JPEG: build (ver 90) I/OpenCV/StaticHelper(22192): WEBP: build (ver encoder: 0x020e) I/OpenCV/StaticHelper(22192): PNG: build (ver 1.6.24) I/OpenCV/StaticHelper(22192): TIFF: build (ver 42 - 4.0.2) I/OpenCV/StaticHelper(22192): JPEG 2000: build (ver 1.900.1) I/OpenCV/StaticHelper(22192): OpenEXR: build (ver 1.7.1) I/OpenCV/StaticHelper(22192): GDAL: NO I/OpenCV/StaticHelper(22192): GDCM: NO I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Video I/O: I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Parallel framework: TBB (ver 4.4 interface 9003) I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Trace: YES () I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Other third-party libraries: I/OpenCV/StaticHelper(22192): Use Intel IPP: NO I/OpenCV/StaticHelper(22192): Use Intel IPP IW: NO I/OpenCV/StaticHelper(22192): Use Eigen: NO I/OpenCV/StaticHelper(22192): Use Cuda: NO I/OpenCV/StaticHelper(22192): Use OpenCL: NO I/OpenCV/StaticHelper(22192): Use OpenVX: NO I/OpenCV/StaticHelper(22192): Use custom HAL: YES (carotene (ver 0.0.1)) I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Python 2: I/OpenCV/StaticHelper(22192): Interpreter: /usr/bin/python2.7 (ver 2.7.6) I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Python 3: I/OpenCV/StaticHelper(22192): Interpreter: /usr/bin/python3.4 (ver 3.4.3) I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Python (for build): /usr/bin/python2.7 I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Java: I/OpenCV/StaticHelper(22192): ant: /usr/bin/ant (ver 1.9.3) I/OpenCV/StaticHelper(22192): Java wrappers: YES I/OpenCV/StaticHelper(22192): Java tests: YES I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Matlab: NO I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Tests and samples: I/OpenCV/StaticHelper(22192): Tests: YES I/OpenCV/StaticHelper(22192): Performance tests: NO I/OpenCV/StaticHelper(22192): C/C++ Examples: NO I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): Install path: /build/master_pack-android/build/o4a/install I/OpenCV/StaticHelper(22192): I/OpenCV/StaticHelper(22192): cvconfig.h is in: /build/master_pack-android/build/o4a I/OpenCV/StaticHelper(22192): -----------------------------------------------------------------

Thank you so much

omarsve commented 3 years ago

I realized my issue its not the opencv library.