我正在使用此库进行考勤监控应用。 https://github.com/Lauszus/FaceRecognitionApp
我将SDK解压缩到OpenCV-android-sdk& Eigen3
我使用以下命令设置环境变量:
console.log(businessHours)
我的 Android.mk fie:
setx OPENCV_ANDROID_SDK C:/Users/...(my path)../OpenCV-android-sdk/sdk
setx EIGEN3_DIR /path/to/eigen3 C:/Users/...(my path).../Eigen3
echo %C:/Users/...(my path)../OpenCV-android-sdk/sdk% %C:/Users/...(my path).../eigen-eigen-67e894c6cd8f%
我收到了以下错误:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_INSTALL_MODULES := on
include $(OPENCV_ANDROID_SDK)C:/Users/Amey/AndroidStudioProjects/DevAttendance/FaceRecognitionApp/app/src/main/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk
LOCAL_MODULE := face-lib
LOCAL_SRC_FILES += $(LOCAL_PATH)/face-lib.cpp $(LOCAL_PATH)/FaceRecognitionLib/Facebase.cpp
LOCAL_SRC_FILES += $(LOCAL_PATH)/FaceRecognitionLib/Eigenfaces.cpp $(LOCAL_PATH)/FaceRecognitionLib/Fisherfaces.cpp
LOCAL_SRC_FILES += $(LOCAL_PATH)/FaceRecognitionLib/PCA.cpp $(LOCAL_PATH)/FaceRecognitionLib/LDA.cpp
LOCAL_C_INCLUDES += $(EIGEN3_DIR) $(LOCAL_PATH)/FaceRecognitionLib/RedSVD/include
LOCAL_LDLIBS += -llog -ldl
LOCAL_CPPFLAGS += -std=gnu++11 -frtti -fexceptions
include $(BUILD_SHARED_LIBRARY)