Reputation: 4328
I work on face detection using Opencv library 2.4.5 I solved all error and also give NDK path and Opencv path to demo project....but when I run this project on device it forced closed...I refered all the questions on this topic in stackoverflow but can't find the proper solution...
Android.mk file is given below...
include $(CLEAR_VARS)
include C:/ANotherWork/OpenCV-2.4.5-android-sdk/OpenCV-2.4.5-android-sdk/sdk/native/jni/OpenCV.mk
LOCAL_SRC_FILES := DetectionBasedTracker_jni.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_LDLIBS += -llog -ldl
LOCAL_MODULE := detection_based_tracker
include $(BUILD_SHARED_LIBRARY)
Upvotes: 0
Views: 150
Reputation:
check this link.. its a easy implementation(No Opencv)
http://www.edumobile.org/android/face-detection-example-tutorials-in-android/
Upvotes: 0
Reputation: 1018
Update your Android.mk file as shown below, its missing the value for LOCAL_PATH
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#OPENCV_CAMERA_MODULES:=off
#OPENCV_INSTALL_MODULES:=off
#OPENCV_LIB_TYPE:=SHARED
include C:/ANotherWork/OpenCV-2.4.5-android-sdk/OpenCV-2.4.5-android-sdk/sdk/native/jni/OpenCV.mk
LOCAL_SRC_FILES := DetectionBasedTracker_jni.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_LDLIBS += -llog -ldl
LOCAL_MODULE := detection_based_tracker
include $(BUILD_SHARED_LIBRARY)
Upvotes: 0