GithubHelp home page GithubHelp logo

Comments (16)

sladomic avatar sladomic commented on July 18, 2024

@RajaMOeez Hi, try "git clone --recursive ...", so submodules get downloaded as well

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

thank you very much for the quick response @sladomic so nice of you. I have successfully did it but now facing another issue when I click the Recognition Test Button app gets crashed and receive an error "unfortunately app has stopped".

Is that possible that I can recognize the face with a single image except deep learning.

Best Regards

Thanks in advance

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on July 18, 2024

Hi @RajaMOeez

  1. Do you see more information in the logcat output, when it crashes?
  2. Can you give me your exact steps, so I can reproduce them?

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

very sorry for the late reply!
I got the exception when I hit the "Recognition view" button --->

04-26 10:34:27.391 4181-4292/ch.zhaw.facerecognition E/cv::error(): OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in cv::Mat::Mat(const cv::Mat&, const Rect&), file /build/master_pack-android/opencv/modules/core/src/matrix.cpp, line 522
04-26 10:34:27.391 4181-4292/ch.zhaw.facerecognition E/org.opencv.core.Mat: Mat::n_1submat() caught cv::Exception: /build/master_pack-android/opencv/modules/core/src/matrix.cpp:522: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function cv::Mat::Mat(const cv::Mat&, const Rect&)
04-26 10:34:27.391 4181-4292/ch.zhaw.facerecognition E/AndroidRuntime: FATAL EXCEPTION: Thread-9238
Process: ch.zhaw.facerecognition, PID: 4181
CvException [org.opencv.core.CvException: cv::Exception: /build/master_pack-android/opencv/modules/core/src/matrix.cpp:522: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function cv::Mat::Mat(const cv::Mat&, const Rect&)
]
at org.opencv.core.Mat.n_submat(Native Method)
at org.opencv.core.Mat.submat(Mat.java:839)
at ch.zhaw.facerecognitionlibrary.PreProcessor.StandardPreprocessing.Crop.preprocessImage(Crop.java:36)
at ch.zhaw.facerecognitionlibrary.PreProcessor.CommandFactory.executeCommand(CommandFactory.java:33)
at ch.zhaw.facerecognitionlibrary.PreProcessor.PreProcessorFactory.getProcessedImage(PreProcessorFactory.java:110)
at ch.zhaw.facerecognition.Activities.RecognitionActivity.onCameraFrame(RecognitionActivity.java:114)
at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:392)
at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:352)
at java.lang.Thread.run(Thread.java:818)
04-26 10:34:27.421 4181-4181/ch.zhaw.facerecognition D/CameraBridge: call checkCurrentState
04-26 10:34:27.421 4181-4181/ch.zhaw.facerecognition D/CameraBridge: call processExitState: 1
04-26 10:34:27.421 4181-4181/ch.zhaw.facerecognition D/JavaCameraView: Disconnecting from camera
04-26 10:34:27.421 4181-4181/ch.zhaw.facerecognition D/JavaCameraView: Notify thread
04-26 10:34:27.421 4181-4181/ch.zhaw.facerecognition D/JavaCameraView: Wating for thread

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

sorry it was my bad I mistakenly hit the closed button

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on July 18, 2024

Hi,

Is this with the latest commit? I fixed an issue with the Crop command in the latest commit.

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

yes it is with the latest commit also it is happening with the previous commit I have also taken the update

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on July 18, 2024

Can you give me the output of "git submodule status"? Maybe the submodule didn't fetch the latest code..

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

hello @sladomic very sorry for the late response I found the exception when I hit the RECOGNITION TEST button
please see the following exception:

05-04 19:51:48.731 22670-22670/? I/art: Late-enabling -Xcheck:jni
05-04 19:51:48.786 22670-22670/ch.zhaw.facerecognition D/LenovoAppIconTheme: ExtraResources;cleanCachedIcon;clear cache..
05-04 19:51:48.806 22670-22670/ch.zhaw.facerecognition I/Typeface: setThemeFont(): sThemeFontPath = null,fontPath =
05-04 19:51:48.806 22670-22670/ch.zhaw.facerecognition D/Typeface: hj dbg: init() start, current country=US,language id=en
05-04 19:51:48.833 22670-22670/ch.zhaw.facerecognition E/Minikin: addFont failed to create font /system/fonts/NanumGothic.ttf
05-04 19:51:48.833 22670-22670/ch.zhaw.facerecognition E/Minikin: addFont failed to create font /system/fonts/DroidSansFallback.ttf
05-04 19:51:48.833 22670-22670/ch.zhaw.facerecognition E/Minikin: addFont failed to create font /system/fonts/MTLmr3m.ttf
05-04 19:51:48.877 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onCreate +
05-04 19:51:48.884 22670-22670/ch.zhaw.facerecognition D/wangcy9: not using Theme.DeviceDefault / Theme.DeviceDefault.Light
05-04 19:51:48.940 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onCreate -
05-04 19:51:48.940 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStart +
05-04 19:51:48.941 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStart -
05-04 19:51:48.941 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onResume +
05-04 19:51:48.941 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onResume -
05-04 19:51:48.947 22670-22693/ch.zhaw.facerecognition D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-04 19:51:48.953 22670-22670/ch.zhaw.facerecognition D/lenovotintstatusbar: Check tint and icon theme, false, false
05-04 19:51:48.984 22670-22693/ch.zhaw.facerecognition I/Adreno: QUALCOMM build : 04556ac, Ibb5d93b27b
Build Date : 02/02/16
OpenGL ES Shader Compiler Version: XE031.06.00.05
Local Branch : mybranch18059704
Remote Branch : quic/LA.BR.1.2.6_rb1.9
Remote Branch : NONE
Reconstruct Branch : NOTHING
05-04 19:51:48.994 22670-22693/ch.zhaw.facerecognition I/OpenGLRenderer: Initialized EGL, version 1.4
05-04 19:52:18.649 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onPause +
05-04 19:52:18.649 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onPause -
05-04 19:52:18.656 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStop +
05-04 19:52:18.657 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStop -
05-04 19:52:39.248 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStart +
05-04 19:52:39.262 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStart -
05-04 19:52:39.262 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onResume +
05-04 19:52:39.263 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onResume -
05-04 19:52:39.264 22670-22670/ch.zhaw.facerecognition D/lenovotintstatusbar: Check tint and icon theme, false, false
05-04 19:52:42.670 22670-22670/ch.zhaw.facerecognition D/ViewRootImpl: doProcessInputEvents android.view.ViewRootImpl@f5f4622
05-04 19:52:42.670 22670-22670/ch.zhaw.facerecognition D/View: Touch up dispatch to android.widget.Button{33b68b3 VFED..C.. ...P.... 0,1068-563,1212 #7f0e0061 app:id/button_recognition_test}, event = MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=487.30988, y[0]=85.34619, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=48649090, downTime=48648975, deviceId=9, source=0x1002 }
05-04 19:52:42.705 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onPause +
05-04 19:52:42.705 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onPause -
05-04 19:52:42.728 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: Trying to get library list
05-04 19:52:42.734 22670-22670/ch.zhaw.facerecognition E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV
05-04 19:52:42.734 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: Library list: ""
05-04 19:52:42.734 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: First attempt to load libs
05-04 19:52:42.734 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: Trying to init OpenCV libs
05-04 19:52:42.734 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: Trying to load library opencv_java3
05-04 19:52:42.745 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: Library opencv_java3 loaded
05-04 19:52:42.745 22670-22670/ch.zhaw.facerecognition D/OpenCV/StaticHelper: First attempt to load libs is OK
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: General configuration for OpenCV 3.2.0 =====================================
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Version control: 3.2.0
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Platform:
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Timestamp: 2016-12-23T13:00:54Z
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Host: Linux 4.8.0-25-generic x86_64
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Target: Linux 1 armv7-a
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: CMake: 2.8.12.2
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: CMake generator: Ninja
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: CMake build tool: /usr/bin/ninja
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Configuration: Release
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: C/C++:
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Built as dynamic libs?: NO
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 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)
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 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
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: ccache: YES
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Precompiled headers: NO
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Extra dependencies: z dl m log
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: 3rdparty dependencies: libjpeg libwebp libpng libtiff libjasper IlmImf tegra_hal tbb
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: OpenCV modules:
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: To be built: core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d java stitching videostab
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Disabled: world
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Disabled by dependency: -
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 viz
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Android:
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Android ABI: armeabi-v7a with NEON
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: STL type: gnustl_static
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Native API level: android-9
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: SDK target: android-11
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Android NDK: /opt/android/android-ndk-r10e (toolchain: arm-linux-androideabi-4.8)
05-04 19:52:42.747 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: android tool: /opt/android/android-sdk-java7/tools/android (Android SDK Tools, revision 25.2.2.)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Google Play manager: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Android examples: YES
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: GUI:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: GTK+: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: GThread : NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: GtkGlExt: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: OpenGL support: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: VTK support: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Media I/O:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: ZLib: z (ver 1.2.3)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: JPEG: build (ver 90)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: WEBP: build (ver 0.3.1)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: PNG: build (ver 1.6.24)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: TIFF: build (ver 42 - 4.0.2)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: JPEG 2000: build (ver 1.900.1)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: OpenEXR: build (ver 1.7.1)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: GDAL: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: GDCM: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Video I/O:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Parallel framework: TBB (ver 4.4 interface 9003)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Other third-party libraries:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Use IPP: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Use Eigen: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Use Cuda: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Use OpenCL: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Use OpenVX: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Use custom HAL: YES (carotene (ver 0.0.1))
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Python 2:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Interpreter: /usr/bin/python2.7 (ver 2.7.6)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Python 3:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Interpreter: /usr/bin/python3.4 (ver 3.4.3)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Python (for build): /usr/bin/python2.7
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Java:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: ant: /usr/bin/ant (ver 1.9.3)
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Java wrappers: YES
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Java tests: YES
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Matlab: NO
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Tests and samples:
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Tests: YES
05-04 19:52:42.748 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Performance tests: NO
05-04 19:52:42.749 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: C/C++ Examples: NO
05-04 19:52:42.749 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: Install path: /build/master_pack-android/build/o4a/install
05-04 19:52:42.749 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: cvconfig.h is in: /build/master_pack-android/build/o4a
05-04 19:52:42.749 22670-22670/ch.zhaw.facerecognition I/OpenCV/StaticHelper: -----------------------------------------------------------------
05-04 19:52:42.751 22670-22670/ch.zhaw.facerecognition I/Typeface: setThemeFont(): sThemeFontPath = ,fontPath =
05-04 19:52:42.751 22670-22670/ch.zhaw.facerecognition W/Typeface: setThemeFont(): FontPath Not Changed!
05-04 19:52:42.753 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onCreate +
05-04 19:52:42.771 22670-22670/ch.zhaw.facerecognition V/BoostFramework: mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
05-04 19:52:42.772 22670-22670/ch.zhaw.facerecognition V/BoostFramework: mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
05-04 19:52:42.772 22670-22670/ch.zhaw.facerecognition V/BoostFramework: mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
05-04 19:52:42.772 22670-22670/ch.zhaw.facerecognition V/BoostFramework: mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
05-04 19:52:42.772 22670-22670/ch.zhaw.facerecognition V/BoostFramework: mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
05-04 19:52:42.774 22670-22670/ch.zhaw.facerecognition V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@479dd0f
05-04 19:52:42.775 22670-22670/ch.zhaw.facerecognition V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@1d7e19c
05-04 19:52:42.802 22670-22670/ch.zhaw.facerecognition D/wangcy9: not using Theme.DeviceDefault / Theme.DeviceDefault.Light
05-04 19:52:42.818 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onCreate -
05-04 19:52:42.818 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStart +
05-04 19:52:42.820 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStart -
05-04 19:52:42.820 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onResume +
05-04 19:52:42.823 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onResume -
05-04 19:52:42.831 22670-22670/ch.zhaw.facerecognition D/lenovotintstatusbar: Check tint and icon theme, false, false
05-04 19:52:43.267 22670-23649/ch.zhaw.facerecognition D/AndroidLibSvmNDK: NDK: jniSvmPredict cmd = /storage/emulated/0/Pictures/facerecognition/data/SVM/svm_predict /storage/emulated/0/Pictures/facerecognition/data/SVM/svm_train_model /storage/emulated/0/Pictures/facerecognition/data/SVM/svm_predict_output
05-04 19:52:43.268 22670-23649/ch.zhaw.facerecognition D/AndroidLibSvmNDK: NDK: Accuracy = 0% (0/1) (classification)
05-04 19:52:43.270 22670-23649/ch.zhaw.facerecognition E/AndroidRuntime: FATAL EXCEPTION: Thread-703
Process: ch.zhaw.facerecognition, PID: 22670
java.lang.NumberFormatException: Invalid int: "-1.42627e+09"
at java.lang.Integer.invalidInt(Integer.java:138)
at java.lang.Integer.parse(Integer.java:410)
at java.lang.Integer.parseInt(Integer.java:367)
at java.lang.Integer.parseInt(Integer.java:334)
at java.lang.Integer.valueOf(Integer.java:525)
at ch.zhaw.facerecognitionlibrary.Recognition.SupportVectorMachine.recognize(SupportVectorMachine.java:133)
at ch.zhaw.facerecognition.Activities.TestActivity$1.run(TestActivity.java:136)
at java.lang.Thread.run(Thread.java:818)
05-04 19:52:43.283 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onPause +
05-04 19:52:43.284 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onPause -
05-04 19:52:43.298 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStop +
05-04 19:52:43.298 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStop -
05-04 19:52:43.298 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onDestroy +
05-04 19:52:43.298 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onDestroy -
05-04 19:52:43.636 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStop +
05-04 19:52:43.637 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onStop -
05-04 19:52:43.637 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onDestroy +
05-04 19:52:43.637 22670-22670/ch.zhaw.facerecognition I/Activity: [AppLaunch] activity.onDestroy -

And also I got the second exception when the face is detected in RECOGNITION VIEW

please see the following exception:

When the no face is detected this activity is running fine but when any face is detected it says "UNFORTUNATLY FACE RECOGNITION HAS STOPPED"

05-04 19:56:02.185 24982-26827/ch.zhaw.facerecognition D/getProcessedImage: No face detected
05-04 19:56:02.205 24982-26827/ch.zhaw.facerecognition D/FpsMeter: 7.74 FPS@320x240
05-04 19:56:02.467 24982-26827/ch.zhaw.facerecognition D/AndroidLibSvmNDK: NDK: jniSvmPredict cmd = /storage/emulated/0/Pictures/facerecognition/data/SVM/svm_predict /storage/emulated/0/Pictures/facerecognition/data/SVM/svm_train_model /storage/emulated/0/Pictures/facerecognition/data/SVM/svm_predict_output
05-04 19:56:02.471 24982-26827/ch.zhaw.facerecognition D/AndroidLibSvmNDK: NDK: Accuracy = 0% (0/1) (classification)
05-04 19:56:02.475 24982-26827/ch.zhaw.facerecognition E/AndroidRuntime: FATAL EXCEPTION: Thread-709
Process: ch.zhaw.facerecognition, PID: 24982
java.lang.NumberFormatException: Invalid int: "-1.42641e+09"
at java.lang.Integer.invalidInt(Integer.java:138)
at java.lang.Integer.parse(Integer.java:410)
at java.lang.Integer.parseInt(Integer.java:367)
at java.lang.Integer.parseInt(Integer.java:334)
at java.lang.Integer.valueOf(Integer.java:525)
at ch.zhaw.facerecognitionlibrary.Recognition.SupportVectorMachine.recognize(SupportVectorMachine.java:133)
at ch.zhaw.facerecognition.Activities.RecognitionActivity.onCameraFrame(RecognitionActivity.java:142)
at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:392)
at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:352)
at java.lang.Thread.run(Thread.java:818)

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on July 18, 2024

It seems that the SVM training had an issue. It searches for an int but gets a float. The file svm_train_model should look like this:

svm_type c_svc
kernel_type linear
nr_class 2
total_sv 10
rho 0.844612
label 1 2
nr_sv 4 6
SV
1 0:0 1:0 2:0 3:0 4....

You must have a float somewhere where there should be an int. Can you paste the first few lines of each SVM file under /sdcard/Pictures/facerecognition/data/SVM?

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

@sladomic can I have your mail address ? please we'll disscuss about it in more detail if you don't mind

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on July 18, 2024

[email protected]

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

thanks

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

if you have some free time can we talk live ? if you don't mind!

from android-face-recognition-with-deep-learning-test-framework.

OptiExperts avatar OptiExperts commented on July 18, 2024

HI @sladomic I have found the svm_train_model it is not look like that as you have explained in your mail when I run the code it looks like that as follow :

svm_type c_svc
kernel_type linear
nr_class 0
total_sv 0
rho
label
nr_sv
SV

please guide me how can I solve this problem. Thanks in advance
Best Regards Moeez Raja

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on July 18, 2024

@RajaMOeez best would be if you delete the whole folder "/sdcard/Pictures/facerecognition", uninstall the app and start from scratch.

  1. Install app
  2. Add 2 persons using the "Add Person" function
  3. Execute training
  4. Check the SVM file again. You should see nr_class 2 as 3rd row

from android-face-recognition-with-deep-learning-test-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.