Open ghost opened 10 years ago
Application does work on Samsung Galaxy S II i9100 with Android version 4.3.1 (CyanogenMod). Only it seems that it didn't get a simple Sudoku solved. (See attachment)
Logcat:
07-24 13:26:52.718: I/preview(8517): stop preview
07-24 13:26:53.793: I/preview(8517): start preview
07-24 13:26:53.803: D/OpenCVManager/Helper(8517): Service connection created
07-24 13:26:53.803: D/OpenCVManager/Helper(8517): Trying to get library path
07-24 13:26:53.873: D/OpenCVManager/Helper(8517): Trying to get library list
07-24 13:26:53.948: D/OpenCVManager/Helper(8517): Library list: ""
07-24 13:26:53.948: D/OpenCVManager/Helper(8517): First attempt to load libs
07-24 13:26:53.948: D/OpenCVManager/Helper(8517): Trying to init OpenCV libs
07-24 13:26:53.948: D/OpenCVManager/Helper(8517): Trying to load library /data/app-lib/org.opencv.engine-1/libopencv_java.so
07-24 13:26:53.948: D/dalvikvm(8517): Trying to load lib /data/app-lib/org.opencv.engine-1/libopencv_java.so 0x41afc3f8
07-24 13:26:53.948: D/dalvikvm(8517): Shared lib '/data/app-lib/org.opencv.engine-1/libopencv_java.so' already loaded in same CL 0x41afc3f8
07-24 13:26:53.948: D/OpenCVManager/Helper(8517): OpenCV libs init was ok!
07-24 13:26:53.948: D/OpenCVManager/Helper(8517): First attempt to load libs is OK
07-24 13:26:53.948: I/OpenCVManager/Helper(8517): General configuration for OpenCV 2.4.9 =====================================
07-24 13:26:53.948: I/OpenCVManager/Helper(8517): Version control: 2.4.9
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): Platform:
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): Host: Linux 3.2.0-56-generic x86_64
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): Target: Linux 1 armv7-a
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): CMake: 2.8.12.1
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): CMake generator: Ninja
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): CMake build tool: /usr/local/bin/ninja
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): Configuration: Release
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): C/C++:
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): Built as dynamic libs?: NO
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): C++ Compiler: /opt/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ (ver 4.6)
07-24 13:26:53.953: I/OpenCVManager/Helper(8517): C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-9/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fweb -fwrapv -frename-registers -fsched2-use-superblocks -fsched2-use-traces -fsched-stalled-insns-dep=100 -fsched-stalled-insns=2 -fno-tree-vectorize -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-9/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fweb -fwrapv -frename-registers -fsched2-use-superblocks -fsched2-use-traces -fsched-stalled-insns-dep=100 -fsched-stalled-insns=2 -fno-tree-vectorize -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): C Compiler: /opt/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): C flags (Release): -fexceptions -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-9/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fweb -fwrapv -frename-registers -fsched2-use-superblocks -fsched2-use-traces -fsched-stalled-insns-dep=100 -fsched-stalled-insns=2 -fno-tree-vectorize -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): C flags (Debug): -fexceptions -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-9/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fweb -fwrapv -frename-registers -fsched2-use-superblocks -fsched2-use-traces -fsched-stalled-insns-dep=100 -fsched-stalled-insns=2 -fno-tree-vectorize -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mfpu=neon -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Precompiled headers: NO
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): OpenCV modules:
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): To be built: core androidcamera flann imgproc highgui features2d calib3d ml objdetect video contrib photo java dynamicuda legacy gpu ocl stitching superres ts videostab
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Disabled: world
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Disabled by dependency: -
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Unavailable: nonfree python viz facedetect imuvstab tegra vstab
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Android:
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Android ABI: armeabi-v7a with NEON
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): STL type: gnustl_static
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Native API level: android-9
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): SDK target: android-11
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Android NDK: /opt/android-ndk-r8c (toolchain: arm-linux-androideabi-4.6)
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): android tool: /opt/android-sdk-linux/tools/android (Android SDK Tools, revision 22.6.)
07-24 13:26:53.958: I/OpenCVManager/Helper(8517): Google Play package: YES
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): Android examples: YES
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): GUI:
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): GTK+ 2.x: NO
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): GThread : NO
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): GtkGlExt: NO
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): OpenGL support: NO
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): VTK support: NO
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): Media I/O:
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): ZLib: z (ver 1.2.3)
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): JPEG: build (ver 62)
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): PNG: build (ver 1.5.12)
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): TIFF: build (ver 42 - 4.0.2)
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): JPEG 2000: build (ver 1.900.1)
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): OpenEXR: build (ver 1.7.1)
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): Video I/O:
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): AndroidNativeCamera: YES, use prebuilt libraries
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): Other third-party libraries:
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): Use IPP: NO
07-24 13:26:53.963: I/OpenCVManager/Helper(8517): Use Eigen: YES (ver 3.1.2)
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use TBB: YES (ver 4.1 interface 6102)
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use OpenMP: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use GCD NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use Concurrency NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use C=: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use Cuda: YES (ver 6.0)
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use OpenCL: YES
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): NVIDIA CUDA
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use CUFFT: YES
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use CUBLAS: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): USE NVCUVID: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): NVIDIA GPU arch: 32
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): NVIDIA PTX archs:
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use fast math: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): OpenCL:
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Version: dynamic
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Include path: /home/reports/ci/slave_desktop/50-SDK/opencv/3rdparty/include/opencl/1.2
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use AMD FFT: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Use AMD BLAS: NO
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Python:
07-24 13:26:53.968: I/OpenCVManager/Helper(8517): Interpreter: /usr/bin/python2 (ver 2.7.3)
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Java:
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): ant: /usr/bin/ant (ver 1.8.2)
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Java tests: YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Documentation:
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Build Documentation: YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Sphinx: /usr/local/bin/sphinx-build (ver 1.1.3)
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): PdfLaTeX compiler: /usr/bin/pdflatex
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Tests and samples:
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Tests: YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Performance tests: YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): C/C++ Examples: NO
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): Install path: /home/reports/ci/slave_desktop/50-SDK/build/builds/o4t/install
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): cvconfig.h is in: /home/reports/ci/slave_desktop/50-SDK/build/builds/o4t
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): -----------------------------------------------------------------
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): General configuration for OpenCV4Tegra =====================================
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): inner version 2.4.9
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): memory allocator YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): hardware link YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): compact sources YES
07-24 13:26:53.973: I/OpenCVManager/Helper(8517): logging enabled NO
07-24 13:26:53.978: I/OpenCVManager/Helper(8517): -----------------------------------------------------------------
07-24 13:26:53.978: D/OpenCVManager/Helper(8517): Init finished with status 0
07-24 13:26:53.978: D/OpenCVManager/Helper(8517): Unbind from service
07-24 13:26:53.978: D/OpenCVManager/Helper(8517): Calling using callback
07-24 13:26:53.978: I/OpenCVLoad(8517): OpenCV loaded successfully
07-24 13:27:01.828: D/Autofocus(8517): autofocus fail
07-24 13:27:26.953: D/Button Clicked(8517): button
07-24 13:27:27.898: D/Taken Picture(8517): pic
07-24 13:27:27.898: I/preview(8517): stop preview
07-24 13:27:28.253: D/Mat dimensions(8517): cols: 1632, rows: 1224
07-24 13:27:29.508: D/Bitmap dimensions(8517): width: 1632, height 1224
07-24 13:27:29.513: D/findGridArea error(8517): not square
07-24 13:27:29.528: D/Submat dimensions(8517): left: 539, right: 1093, top: 403, bot: 821
07-24 13:27:29.533: D/Mat dimensions(8517): cols: 554, rows: 418
07-24 13:27:29.543: D/HoughLines info(8517): horizontal: 0, vertical: 0, total: 0
07-24 13:27:29.823: I/preview(8517): start preview
07-24 13:27:29.823: D/Error(8517): java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
07-24 13:27:29.823: D/ondraw(8517): t: 129,000000, b: 561,000000, l: 24,000000, r: 456,000000
07-24 13:27:29.823: D/view dimen(8517): w: 480, h: 690
07-24 13:27:29.833: D/Autofocus(8517): autofocus fail
07-24 13:27:38.748: D/Button Clicked(8517): button
07-24 13:27:39.693: D/Taken Picture(8517): pic
07-24 13:27:39.693: I/preview(8517): stop preview
07-24 13:27:40.013: D/Mat dimensions(8517): cols: 1632, rows: 1224
07-24 13:27:41.448: D/Bitmap dimensions(8517): width: 1632, height 1224
07-24 13:27:41.458: D/findGridArea error(8517): not square
07-24 13:27:41.518: D/Submat dimensions(8517): left: 539, right: 1093, top: 403, bot: 821
07-24 13:27:41.523: D/Mat dimensions(8517): cols: 554, rows: 418
07-24 13:27:41.568: D/HoughLines info(8517): horizontal: 0, vertical: 0, total: 0
07-24 13:27:41.888: I/preview(8517): start preview
07-24 13:27:41.888: D/Error(8517): java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
07-24 13:27:41.898: D/ondraw(8517): t: 129,000000, b: 561,000000, l: 24,000000, r: 456,000000
07-24 13:27:41.898: D/view dimen(8517): w: 480, h: 690
07-24 13:27:41.903: D/Autofocus(8517): autofocus fail
07-24 13:28:07.223: I/preview(8517): stop preview
07-24 13:28:07.458: I/preview(8517): stop preview
Hi,
Thanks for checking out my project; the application is currently still under development. The latest updates is under the branch "newbranch" and it should detect the numbers in the sudoku puzzle, store images in external storage, and log the recognized digits in the logcat. I also haven't tested for compatibility on other phones, and my test device is a Samsung Galaxy SIII Android version 4.4.2. I'm currently working on improving the performance of the image processing as well as solving the extracted puzzle.
I'm testing this application on the Nexus 5 with Android version 4.4.4.