703d0677 by 乔峰昇

update inference

1 parent 4a94151f
......@@ -10,9 +10,9 @@ include_directories(/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/i
LINK_DIRECTORIES(${MNN_DIR}/build)
set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib)
# add_library(facecomparison SHARED facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp)
# add_executable(main main.cpp facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp)
add_executable(main main.cpp)
add_executable(main main.cpp facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp)
# add_executable(main main.cpp)
# add_executable(main z.cpp)
target_link_libraries(main ${FACECOMPARISON_DIR}/libfacecomparison.so -lMNN ${OpenCV_LIBS})
# target_link_libraries(facecomparison -lMNN ${OpenCV_LIBS})
# target_link_libraries(main ${FACECOMPARISON_DIR}/libfacecomparison.so -lMNN ${OpenCV_LIBS})
target_link_libraries(main -lMNN ${OpenCV_LIBS})
......
......@@ -21,10 +21,12 @@ FaceComparison face_rec=FaceComparison(det_model_path,landm_model_path,rec_model
int num_thread = 2;
接口(返回结果 bool:true/false)
bool face_compare(string image_path1,string image_path2);参数为两张图像地址,其中iamge1_path为face_id图像输入
bool face_compare_image(Mat image1,Mat image2);参数为两张opencv读取的图像矩阵,其中iamge1为face_id图像输入
bool inference(string image_path1,string image_path2);参数为两张图像地址,其中iamge1_path为face_id图像输入
bool inference(Mat image1,Mat image2);参数为两张opencv读取的图像矩阵,其中iamge1为face_id图像输入
编译
将CMakeLists.txt 中 set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib)
改为lib文件夹所在的绝对地址
mkdir build
......
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_63a2a/fast"
/usr/bin/make -f CMakeFiles/cmTC_63a2a.dir/build.make CMakeFiles/cmTC_63a2a.dir/build
Run Build Command:"/usr/bin/make" "cmTC_546f4/fast"
/usr/bin/make -f CMakeFiles/cmTC_546f4.dir/build.make CMakeFiles/cmTC_546f4.dir/build
make[1]: 进入目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
Building C object CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o -c /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_63a2a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_63a2a.dir/link.txt --verbose=1
/usr/bin/cc -fPIC CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o -o cmTC_63a2a
CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o:在函数‘main’中:
Building C object CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o -c /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_546f4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_546f4.dir/link.txt --verbose=1
/usr/bin/cc -fPIC CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o -o cmTC_546f4
CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o:在函数‘main’中:
CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_63a2a.dir/build.make:97: recipe for target 'cmTC_63a2a' failed
make[1]: *** [cmTC_63a2a] Error 1
CMakeFiles/cmTC_546f4.dir/build.make:97: recipe for target 'cmTC_546f4' failed
make[1]: *** [cmTC_546f4] Error 1
make[1]: 离开目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
Makefile:126: recipe for target 'cmTC_63a2a/fast' failed
make: *** [cmTC_63a2a/fast] Error 2
Makefile:126: recipe for target 'cmTC_546f4/fast' failed
make: *** [cmTC_546f4/fast] Error 2
File /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
......@@ -36,20 +36,20 @@ int main(int argc, char** argv)
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_35a97/fast"
/usr/bin/make -f CMakeFiles/cmTC_35a97.dir/build.make CMakeFiles/cmTC_35a97.dir/build
Run Build Command:"/usr/bin/make" "cmTC_9b3b9/fast"
/usr/bin/make -f CMakeFiles/cmTC_9b3b9.dir/build.make CMakeFiles/cmTC_9b3b9.dir/build
make[1]: 进入目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
Building C object CMakeFiles/cmTC_35a97.dir/CheckFunctionExists.c.o
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_35a97.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_35a97
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_35a97.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_35a97.dir/CheckFunctionExists.c.o -o cmTC_35a97 -lpthreads
Building C object CMakeFiles/cmTC_9b3b9.dir/CheckFunctionExists.c.o
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_9b3b9.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_9b3b9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9b3b9.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_9b3b9.dir/CheckFunctionExists.c.o -o cmTC_9b3b9 -lpthreads
/usr/bin/ld: 找不到 -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_35a97.dir/build.make:97: recipe for target 'cmTC_35a97' failed
make[1]: *** [cmTC_35a97] Error 1
CMakeFiles/cmTC_9b3b9.dir/build.make:97: recipe for target 'cmTC_9b3b9' failed
make[1]: *** [cmTC_9b3b9] Error 1
make[1]: 离开目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
Makefile:126: recipe for target 'cmTC_35a97/fast' failed
make: *** [cmTC_35a97/fast] Error 2
Makefile:126: recipe for target 'cmTC_9b3b9/fast' failed
make: *** [cmTC_9b3b9/fast] Error 2
......
......@@ -11,99 +11,29 @@ set(CMAKE_MAKEFILE_DEPENDS
"CMakeFiles/3.10.2/CMakeCCompiler.cmake"
"CMakeFiles/3.10.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.10.2/CMakeSystem.cmake"
"CMakeFiles/feature_tests.c"
"CMakeFiles/feature_tests.cxx"
"/usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake"
"/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake"
"/usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake"
"/usr/local/lib/cmake/opencv4/OpenCVModules.cmake"
"/usr/share/cmake-3.10/Modules/CMakeCCompiler.cmake.in"
"/usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c"
"/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-3.10/Modules/CMakeCXXCompiler.cmake.in"
"/usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp"
"/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-3.10/Modules/CMakeCompilerIdDetection.cmake"
"/usr/share/cmake-3.10/Modules/CMakeConfigurableFile.in"
"/usr/share/cmake-3.10/Modules/CMakeDetermineCCompiler.cmake"
"/usr/share/cmake-3.10/Modules/CMakeDetermineCXXCompiler.cmake"
"/usr/share/cmake-3.10/Modules/CMakeDetermineCompileFeatures.cmake"
"/usr/share/cmake-3.10/Modules/CMakeDetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerId.cmake"
"/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake"
"/usr/share/cmake-3.10/Modules/CMakeFindBinUtils.cmake"
"/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake"
"/usr/share/cmake-3.10/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/share/cmake-3.10/Modules/CMakeSystem.cmake.in"
"/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake"
"/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake"
"/usr/share/cmake-3.10/Modules/CMakeTestCompilerCommon.cmake"
"/usr/share/cmake-3.10/Modules/CMakeUnixFindMake.cmake"
"/usr/share/cmake-3.10/Modules/CheckFunctionExists.c"
"/usr/share/cmake-3.10/Modules/CheckIncludeFile.c.in"
"/usr/share/cmake-3.10/Modules/CheckIncludeFile.cmake"
"/usr/share/cmake-3.10/Modules/CheckLibraryExists.cmake"
"/usr/share/cmake-3.10/Modules/CheckSymbolExists.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-C-FeatureTests.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-FeatureTests.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU-FindBinUtils.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/MIPSpro-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/TI-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.10/Modules/FindCUDA.cmake"
"/usr/share/cmake-3.10/Modules/FindCUDA/select_compute_arch.cmake"
"/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake"
"/usr/share/cmake-3.10/Modules/FindPackageMessage.cmake"
"/usr/share/cmake-3.10/Modules/FindThreads.cmake"
"/usr/share/cmake-3.10/Modules/Internal/FeatureTesting.cmake"
"/usr/share/cmake-3.10/Modules/Platform/Linux-Determine-CXX.cmake"
"/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake"
......@@ -119,11 +49,6 @@ set(CMAKE_MAKEFILE_OUTPUTS
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.10.2/CMakeSystem.cmake"
"CMakeFiles/3.10.2/CMakeCCompiler.cmake"
"CMakeFiles/3.10.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.10.2/CMakeCCompiler.cmake"
"CMakeFiles/3.10.2/CMakeCXXCompiler.cmake"
"CMakeFiles/CMakeDirectoryInformation.cmake"
)
......
......@@ -66,7 +66,7 @@ CMAKE_BINARY_DIR = /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/bu
CMakeFiles/main.dir/all:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/depend
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=1,2 "Built target main"
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=1,2,3,4,5,6 "Built target main"
.PHONY : CMakeFiles/main.dir/all
# Include target in all.
......@@ -76,7 +76,7 @@ all: CMakeFiles/main.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/main.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 2
$(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 6
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/main.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 0
.PHONY : CMakeFiles/main.dir/rule
......
......@@ -124,10 +124,26 @@ MNN/HalideRuntime.h
MNN/MNNDefine.h
-
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.cpp
facecomparison.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.cpp
facelandmarks.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.cpp
facerecognize.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/main.cpp
facecomparison.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.cpp
retinaface.h
/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.h
/usr/local/include/opencv4/opencv2/./imgproc/segmentation.hpp
opencv2/imgproc.hpp
/usr/local/include/opencv4/opencv2/./imgproc/opencv2/imgproc.hpp
......
......@@ -4,7 +4,11 @@ set(CMAKE_DEPENDS_LANGUAGES
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.cpp" "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/main.dir/facecomparison.cpp.o"
"/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.cpp" "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/main.dir/facelandmarks.cpp.o"
"/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.cpp" "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/main.dir/facerecognize.cpp.o"
"/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/main.cpp" "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/main.dir/main.cpp.o"
"/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.cpp" "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/main.dir/retinaface.cpp.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
......
......@@ -81,16 +81,119 @@ CMakeFiles/main.dir/main.cpp.o.provides: CMakeFiles/main.dir/main.cpp.o.requires
CMakeFiles/main.dir/main.cpp.o.provides.build: CMakeFiles/main.dir/main.cpp.o
CMakeFiles/main.dir/facerecognize.cpp.o: CMakeFiles/main.dir/flags.make
CMakeFiles/main.dir/facerecognize.cpp.o: ../facerecognize.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/main.dir/facerecognize.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/main.dir/facerecognize.cpp.o -c /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.cpp
CMakeFiles/main.dir/facerecognize.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/facerecognize.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.cpp > CMakeFiles/main.dir/facerecognize.cpp.i
CMakeFiles/main.dir/facerecognize.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/facerecognize.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.cpp -o CMakeFiles/main.dir/facerecognize.cpp.s
CMakeFiles/main.dir/facerecognize.cpp.o.requires:
.PHONY : CMakeFiles/main.dir/facerecognize.cpp.o.requires
CMakeFiles/main.dir/facerecognize.cpp.o.provides: CMakeFiles/main.dir/facerecognize.cpp.o.requires
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.o.provides.build
.PHONY : CMakeFiles/main.dir/facerecognize.cpp.o.provides
CMakeFiles/main.dir/facerecognize.cpp.o.provides.build: CMakeFiles/main.dir/facerecognize.cpp.o
CMakeFiles/main.dir/retinaface.cpp.o: CMakeFiles/main.dir/flags.make
CMakeFiles/main.dir/retinaface.cpp.o: ../retinaface.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/main.dir/retinaface.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/main.dir/retinaface.cpp.o -c /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.cpp
CMakeFiles/main.dir/retinaface.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/retinaface.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.cpp > CMakeFiles/main.dir/retinaface.cpp.i
CMakeFiles/main.dir/retinaface.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/retinaface.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.cpp -o CMakeFiles/main.dir/retinaface.cpp.s
CMakeFiles/main.dir/retinaface.cpp.o.requires:
.PHONY : CMakeFiles/main.dir/retinaface.cpp.o.requires
CMakeFiles/main.dir/retinaface.cpp.o.provides: CMakeFiles/main.dir/retinaface.cpp.o.requires
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.o.provides.build
.PHONY : CMakeFiles/main.dir/retinaface.cpp.o.provides
CMakeFiles/main.dir/retinaface.cpp.o.provides.build: CMakeFiles/main.dir/retinaface.cpp.o
CMakeFiles/main.dir/facelandmarks.cpp.o: CMakeFiles/main.dir/flags.make
CMakeFiles/main.dir/facelandmarks.cpp.o: ../facelandmarks.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object CMakeFiles/main.dir/facelandmarks.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/main.dir/facelandmarks.cpp.o -c /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.cpp
CMakeFiles/main.dir/facelandmarks.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/facelandmarks.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.cpp > CMakeFiles/main.dir/facelandmarks.cpp.i
CMakeFiles/main.dir/facelandmarks.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/facelandmarks.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.cpp -o CMakeFiles/main.dir/facelandmarks.cpp.s
CMakeFiles/main.dir/facelandmarks.cpp.o.requires:
.PHONY : CMakeFiles/main.dir/facelandmarks.cpp.o.requires
CMakeFiles/main.dir/facelandmarks.cpp.o.provides: CMakeFiles/main.dir/facelandmarks.cpp.o.requires
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.o.provides.build
.PHONY : CMakeFiles/main.dir/facelandmarks.cpp.o.provides
CMakeFiles/main.dir/facelandmarks.cpp.o.provides.build: CMakeFiles/main.dir/facelandmarks.cpp.o
CMakeFiles/main.dir/facecomparison.cpp.o: CMakeFiles/main.dir/flags.make
CMakeFiles/main.dir/facecomparison.cpp.o: ../facecomparison.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building CXX object CMakeFiles/main.dir/facecomparison.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/main.dir/facecomparison.cpp.o -c /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.cpp
CMakeFiles/main.dir/facecomparison.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/facecomparison.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.cpp > CMakeFiles/main.dir/facecomparison.cpp.i
CMakeFiles/main.dir/facecomparison.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/facecomparison.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.cpp -o CMakeFiles/main.dir/facecomparison.cpp.s
CMakeFiles/main.dir/facecomparison.cpp.o.requires:
.PHONY : CMakeFiles/main.dir/facecomparison.cpp.o.requires
CMakeFiles/main.dir/facecomparison.cpp.o.provides: CMakeFiles/main.dir/facecomparison.cpp.o.requires
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.o.provides.build
.PHONY : CMakeFiles/main.dir/facecomparison.cpp.o.provides
CMakeFiles/main.dir/facecomparison.cpp.o.provides.build: CMakeFiles/main.dir/facecomparison.cpp.o
# Object files for target main
main_OBJECTS = \
"CMakeFiles/main.dir/main.cpp.o"
"CMakeFiles/main.dir/main.cpp.o" \
"CMakeFiles/main.dir/facerecognize.cpp.o" \
"CMakeFiles/main.dir/retinaface.cpp.o" \
"CMakeFiles/main.dir/facelandmarks.cpp.o" \
"CMakeFiles/main.dir/facecomparison.cpp.o"
# External object files for target main
main_EXTERNAL_OBJECTS =
main: CMakeFiles/main.dir/main.cpp.o
main: CMakeFiles/main.dir/facerecognize.cpp.o
main: CMakeFiles/main.dir/retinaface.cpp.o
main: CMakeFiles/main.dir/facelandmarks.cpp.o
main: CMakeFiles/main.dir/facecomparison.cpp.o
main: CMakeFiles/main.dir/build.make
main: ../lib/libfacecomparison.so
main: /usr/local/lib/libopencv_gapi.so.4.5.5
main: /usr/local/lib/libopencv_stitching.so.4.5.5
main: /usr/local/lib/libopencv_aruco.so.4.5.5
......@@ -157,7 +260,7 @@ main: /usr/local/lib/libopencv_cudaarithm.so.4.5.5
main: /usr/local/lib/libopencv_core.so.4.5.5
main: /usr/local/lib/libopencv_cudev.so.4.5.5
main: CMakeFiles/main.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable main"
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Linking CXX executable main"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/main.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
......@@ -166,6 +269,10 @@ CMakeFiles/main.dir/build: main
.PHONY : CMakeFiles/main.dir/build
CMakeFiles/main.dir/requires: CMakeFiles/main.dir/main.cpp.o.requires
CMakeFiles/main.dir/requires: CMakeFiles/main.dir/facerecognize.cpp.o.requires
CMakeFiles/main.dir/requires: CMakeFiles/main.dir/retinaface.cpp.o.requires
CMakeFiles/main.dir/requires: CMakeFiles/main.dir/facelandmarks.cpp.o.requires
CMakeFiles/main.dir/requires: CMakeFiles/main.dir/facecomparison.cpp.o.requires
.PHONY : CMakeFiles/main.dir/requires
......
file(REMOVE_RECURSE
"CMakeFiles/main.dir/main.cpp.o"
"CMakeFiles/main.dir/facerecognize.cpp.o"
"CMakeFiles/main.dir/retinaface.cpp.o"
"CMakeFiles/main.dir/facelandmarks.cpp.o"
"CMakeFiles/main.dir/facecomparison.cpp.o"
"main.pdb"
"main"
)
......
No preview for this file type
No preview for this file type
No preview for this file type
/usr/bin/c++ CMakeFiles/main.dir/main.cpp.o -o main -L/usr/local/cuda-10.1/lib64 -L/home/situ/MNN/MNN1.0/MNN/build -Wl,-rpath,/usr/local/cuda-10.1/lib64:/home/situ/MNN/MNN1.0/MNN/build:/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib:/usr/local/lib ../lib/libfacecomparison.so -lMNN /usr/local/lib/libopencv_gapi.so.4.5.5 /usr/local/lib/libopencv_stitching.so.4.5.5 /usr/local/lib/libopencv_aruco.so.4.5.5 /usr/local/lib/libopencv_barcode.so.4.5.5 /usr/local/lib/libopencv_bgsegm.so.4.5.5 /usr/local/lib/libopencv_bioinspired.so.4.5.5 /usr/local/lib/libopencv_ccalib.so.4.5.5 /usr/local/lib/libopencv_cudabgsegm.so.4.5.5 /usr/local/lib/libopencv_cudafeatures2d.so.4.5.5 /usr/local/lib/libopencv_cudaobjdetect.so.4.5.5 /usr/local/lib/libopencv_cudastereo.so.4.5.5 /usr/local/lib/libopencv_dnn_objdetect.so.4.5.5 /usr/local/lib/libopencv_dnn_superres.so.4.5.5 /usr/local/lib/libopencv_dpm.so.4.5.5 /usr/local/lib/libopencv_face.so.4.5.5 /usr/local/lib/libopencv_freetype.so.4.5.5 /usr/local/lib/libopencv_fuzzy.so.4.5.5 /usr/local/lib/libopencv_hfs.so.4.5.5 /usr/local/lib/libopencv_img_hash.so.4.5.5 /usr/local/lib/libopencv_intensity_transform.so.4.5.5 /usr/local/lib/libopencv_line_descriptor.so.4.5.5 /usr/local/lib/libopencv_mcc.so.4.5.5 /usr/local/lib/libopencv_quality.so.4.5.5 /usr/local/lib/libopencv_rapid.so.4.5.5 /usr/local/lib/libopencv_reg.so.4.5.5 /usr/local/lib/libopencv_rgbd.so.4.5.5 /usr/local/lib/libopencv_saliency.so.4.5.5 /usr/local/lib/libopencv_stereo.so.4.5.5 /usr/local/lib/libopencv_structured_light.so.4.5.5 /usr/local/lib/libopencv_superres.so.4.5.5 /usr/local/lib/libopencv_surface_matching.so.4.5.5 /usr/local/lib/libopencv_tracking.so.4.5.5 /usr/local/lib/libopencv_videostab.so.4.5.5 /usr/local/lib/libopencv_wechat_qrcode.so.4.5.5 /usr/local/lib/libopencv_xfeatures2d.so.4.5.5 /usr/local/lib/libopencv_xobjdetect.so.4.5.5 /usr/local/lib/libopencv_xphoto.so.4.5.5 /usr/local/lib/libopencv_shape.so.4.5.5 /usr/local/lib/libopencv_highgui.so.4.5.5 /usr/local/lib/libopencv_datasets.so.4.5.5 /usr/local/lib/libopencv_plot.so.4.5.5 /usr/local/lib/libopencv_text.so.4.5.5 /usr/local/lib/libopencv_ml.so.4.5.5 /usr/local/lib/libopencv_phase_unwrapping.so.4.5.5 /usr/local/lib/libopencv_cudacodec.so.4.5.5 /usr/local/lib/libopencv_videoio.so.4.5.5 /usr/local/lib/libopencv_cudaoptflow.so.4.5.5 /usr/local/lib/libopencv_cudalegacy.so.4.5.5 /usr/local/lib/libopencv_cudawarping.so.4.5.5 /usr/local/lib/libopencv_optflow.so.4.5.5 /usr/local/lib/libopencv_ximgproc.so.4.5.5 /usr/local/lib/libopencv_video.so.4.5.5 /usr/local/lib/libopencv_imgcodecs.so.4.5.5 /usr/local/lib/libopencv_objdetect.so.4.5.5 /usr/local/lib/libopencv_calib3d.so.4.5.5 /usr/local/lib/libopencv_dnn.so.4.5.5 /usr/local/lib/libopencv_features2d.so.4.5.5 /usr/local/lib/libopencv_flann.so.4.5.5 /usr/local/lib/libopencv_photo.so.4.5.5 /usr/local/lib/libopencv_cudaimgproc.so.4.5.5 /usr/local/lib/libopencv_cudafilters.so.4.5.5 /usr/local/lib/libopencv_imgproc.so.4.5.5 /usr/local/lib/libopencv_cudaarithm.so.4.5.5 /usr/local/lib/libopencv_core.so.4.5.5 /usr/local/lib/libopencv_cudev.so.4.5.5
/usr/bin/c++ CMakeFiles/main.dir/main.cpp.o CMakeFiles/main.dir/facerecognize.cpp.o CMakeFiles/main.dir/retinaface.cpp.o CMakeFiles/main.dir/facelandmarks.cpp.o CMakeFiles/main.dir/facecomparison.cpp.o -o main -L/usr/local/cuda-10.1/lib64 -L/home/situ/MNN/MNN1.0/MNN/build -Wl,-rpath,/usr/local/cuda-10.1/lib64:/home/situ/MNN/MNN1.0/MNN/build:/usr/local/lib -lMNN /usr/local/lib/libopencv_gapi.so.4.5.5 /usr/local/lib/libopencv_stitching.so.4.5.5 /usr/local/lib/libopencv_aruco.so.4.5.5 /usr/local/lib/libopencv_barcode.so.4.5.5 /usr/local/lib/libopencv_bgsegm.so.4.5.5 /usr/local/lib/libopencv_bioinspired.so.4.5.5 /usr/local/lib/libopencv_ccalib.so.4.5.5 /usr/local/lib/libopencv_cudabgsegm.so.4.5.5 /usr/local/lib/libopencv_cudafeatures2d.so.4.5.5 /usr/local/lib/libopencv_cudaobjdetect.so.4.5.5 /usr/local/lib/libopencv_cudastereo.so.4.5.5 /usr/local/lib/libopencv_dnn_objdetect.so.4.5.5 /usr/local/lib/libopencv_dnn_superres.so.4.5.5 /usr/local/lib/libopencv_dpm.so.4.5.5 /usr/local/lib/libopencv_face.so.4.5.5 /usr/local/lib/libopencv_freetype.so.4.5.5 /usr/local/lib/libopencv_fuzzy.so.4.5.5 /usr/local/lib/libopencv_hfs.so.4.5.5 /usr/local/lib/libopencv_img_hash.so.4.5.5 /usr/local/lib/libopencv_intensity_transform.so.4.5.5 /usr/local/lib/libopencv_line_descriptor.so.4.5.5 /usr/local/lib/libopencv_mcc.so.4.5.5 /usr/local/lib/libopencv_quality.so.4.5.5 /usr/local/lib/libopencv_rapid.so.4.5.5 /usr/local/lib/libopencv_reg.so.4.5.5 /usr/local/lib/libopencv_rgbd.so.4.5.5 /usr/local/lib/libopencv_saliency.so.4.5.5 /usr/local/lib/libopencv_stereo.so.4.5.5 /usr/local/lib/libopencv_structured_light.so.4.5.5 /usr/local/lib/libopencv_superres.so.4.5.5 /usr/local/lib/libopencv_surface_matching.so.4.5.5 /usr/local/lib/libopencv_tracking.so.4.5.5 /usr/local/lib/libopencv_videostab.so.4.5.5 /usr/local/lib/libopencv_wechat_qrcode.so.4.5.5 /usr/local/lib/libopencv_xfeatures2d.so.4.5.5 /usr/local/lib/libopencv_xobjdetect.so.4.5.5 /usr/local/lib/libopencv_xphoto.so.4.5.5 /usr/local/lib/libopencv_shape.so.4.5.5 /usr/local/lib/libopencv_highgui.so.4.5.5 /usr/local/lib/libopencv_datasets.so.4.5.5 /usr/local/lib/libopencv_plot.so.4.5.5 /usr/local/lib/libopencv_text.so.4.5.5 /usr/local/lib/libopencv_ml.so.4.5.5 /usr/local/lib/libopencv_phase_unwrapping.so.4.5.5 /usr/local/lib/libopencv_cudacodec.so.4.5.5 /usr/local/lib/libopencv_videoio.so.4.5.5 /usr/local/lib/libopencv_cudaoptflow.so.4.5.5 /usr/local/lib/libopencv_cudalegacy.so.4.5.5 /usr/local/lib/libopencv_cudawarping.so.4.5.5 /usr/local/lib/libopencv_optflow.so.4.5.5 /usr/local/lib/libopencv_ximgproc.so.4.5.5 /usr/local/lib/libopencv_video.so.4.5.5 /usr/local/lib/libopencv_imgcodecs.so.4.5.5 /usr/local/lib/libopencv_objdetect.so.4.5.5 /usr/local/lib/libopencv_calib3d.so.4.5.5 /usr/local/lib/libopencv_dnn.so.4.5.5 /usr/local/lib/libopencv_features2d.so.4.5.5 /usr/local/lib/libopencv_flann.so.4.5.5 /usr/local/lib/libopencv_photo.so.4.5.5 /usr/local/lib/libopencv_cudaimgproc.so.4.5.5 /usr/local/lib/libopencv_cudafilters.so.4.5.5 /usr/local/lib/libopencv_imgproc.so.4.5.5 /usr/local/lib/libopencv_cudaarithm.so.4.5.5 /usr/local/lib/libopencv_core.so.4.5.5 /usr/local/lib/libopencv_cudev.so.4.5.5
......
CMAKE_PROGRESS_1 = 1
CMAKE_PROGRESS_2 = 2
CMAKE_PROGRESS_3 = 3
CMAKE_PROGRESS_4 = 4
CMAKE_PROGRESS_5 = 5
CMAKE_PROGRESS_6 = 6
......
No preview for this file type
......@@ -123,6 +123,87 @@ main/fast:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build
.PHONY : main/fast
facecomparison.o: facecomparison.cpp.o
.PHONY : facecomparison.o
# target to build an object file
facecomparison.cpp.o:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.o
.PHONY : facecomparison.cpp.o
facecomparison.i: facecomparison.cpp.i
.PHONY : facecomparison.i
# target to preprocess a source file
facecomparison.cpp.i:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.i
.PHONY : facecomparison.cpp.i
facecomparison.s: facecomparison.cpp.s
.PHONY : facecomparison.s
# target to generate assembly for a file
facecomparison.cpp.s:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.s
.PHONY : facecomparison.cpp.s
facelandmarks.o: facelandmarks.cpp.o
.PHONY : facelandmarks.o
# target to build an object file
facelandmarks.cpp.o:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.o
.PHONY : facelandmarks.cpp.o
facelandmarks.i: facelandmarks.cpp.i
.PHONY : facelandmarks.i
# target to preprocess a source file
facelandmarks.cpp.i:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.i
.PHONY : facelandmarks.cpp.i
facelandmarks.s: facelandmarks.cpp.s
.PHONY : facelandmarks.s
# target to generate assembly for a file
facelandmarks.cpp.s:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.s
.PHONY : facelandmarks.cpp.s
facerecognize.o: facerecognize.cpp.o
.PHONY : facerecognize.o
# target to build an object file
facerecognize.cpp.o:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.o
.PHONY : facerecognize.cpp.o
facerecognize.i: facerecognize.cpp.i
.PHONY : facerecognize.i
# target to preprocess a source file
facerecognize.cpp.i:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.i
.PHONY : facerecognize.cpp.i
facerecognize.s: facerecognize.cpp.s
.PHONY : facerecognize.s
# target to generate assembly for a file
facerecognize.cpp.s:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.s
.PHONY : facerecognize.cpp.s
main.o: main.cpp.o
.PHONY : main.o
......@@ -150,6 +231,33 @@ main.cpp.s:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/main.cpp.s
.PHONY : main.cpp.s
retinaface.o: retinaface.cpp.o
.PHONY : retinaface.o
# target to build an object file
retinaface.cpp.o:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.o
.PHONY : retinaface.cpp.o
retinaface.i: retinaface.cpp.i
.PHONY : retinaface.i
# target to preprocess a source file
retinaface.cpp.i:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.i
.PHONY : retinaface.cpp.i
retinaface.s: retinaface.cpp.s
.PHONY : retinaface.s
# target to generate assembly for a file
retinaface.cpp.s:
$(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.s
.PHONY : retinaface.cpp.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
......@@ -159,9 +267,21 @@ help:
@echo "... rebuild_cache"
@echo "... main"
@echo "... edit_cache"
@echo "... facecomparison.o"
@echo "... facecomparison.i"
@echo "... facecomparison.s"
@echo "... facelandmarks.o"
@echo "... facelandmarks.i"
@echo "... facelandmarks.s"
@echo "... facerecognize.o"
@echo "... facerecognize.i"
@echo "... facerecognize.s"
@echo "... main.o"
@echo "... main.i"
@echo "... main.s"
@echo "... retinaface.o"
@echo "... retinaface.i"
@echo "... retinaface.s"
.PHONY : help
......
No preview for this file type
#include "facecomparison.h"
bool FaceComparison::face_compare(string image1_path,string image2_path){
bool FaceComparison::inference(string image1_path,string image2_path){
bool result=false;
cv::Mat image1=cv::imread(image1_path);
cv::Mat image2=cv::imread(image2_path);
if(image1.empty()||image2.empty()){
return false;
}
vector<Bbox> box1=face_det.detect_image(image1);
vector<Bbox> box2=face_det.detect_image(image2);
vector<Bbox> box1=face_det.inference(image1);
vector<Bbox> box2=face_det.inference(image2);
if(box1.empty()||box2.empty()){
return false;
}
......@@ -24,7 +24,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
}
Rect rect1=Rect(box1[max_box1].xmin,box1[max_box1].ymin,box1[max_box1].xmax-box1[max_box1].xmin,box1[max_box1].ymax-box1[max_box1].ymin);
Mat face_area1=image1(rect1);
vector<vector<float>> landms1=face_landm.detect_landmarks_image(face_area1);
vector<vector<float>> landms1=face_landm.inference(face_area1);
vector<vector<float>> land1={
{float(landms1[104][0]),float(landms1[104][1])},
{float(landms1[105][0]),float(landms1[105][1])},
......@@ -36,7 +36,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
for(int j=0;j<box2.size();++j){
Rect rect2=Rect(box2[j].xmin,box2[j].ymin,box2[j].xmax-box2[j].xmin,box2[j].ymax-box2[j].ymin);
Mat face_area2=image2(rect2);
vector<vector<float>> landms2=face_landm.detect_landmarks_image(face_area2);
vector<vector<float>> landms2=face_landm.inference(face_area2);
vector<vector<float>> land2={
{float(landms2[104][0]),float(landms2[104][1])},
{float(landms2[105][0]),float(landms2[105][1])},
......@@ -45,7 +45,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
{float(landms2[90][0]),float(landms2[90][1])}
};
Mat align_resize_image2=face_rec.preprocess_face(face_area2,land2);
double samilar_score=face_rec.get_samilar_image(align_resize_image1,align_resize_image2);
double samilar_score=face_rec.inference(align_resize_image1,align_resize_image2);
if(samilar_score>face_recongnize_thr){
result=true;
}
......@@ -53,10 +53,10 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
return result;
}
bool FaceComparison::face_compare_image(Mat image1,Mat image2){
bool FaceComparison::inference(Mat image1,Mat image2){
bool result=false;
vector<Bbox> box1=face_det.detect_image(image1);
vector<Bbox> box2=face_det.detect_image(image2);
vector<Bbox> box1=face_det.inference(image1);
vector<Bbox> box2=face_det.inference(image2);
if(box1.empty()||box2.empty()){
return false;
}
......@@ -71,7 +71,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){
}
Rect rect1=Rect(box1[max_box1].xmin,box1[max_box1].ymin,box1[max_box1].xmax-box1[max_box1].xmin,box1[max_box1].ymax-box1[max_box1].ymin);
Mat face_area1=image1(rect1);
vector<vector<float>> landms1=face_landm.detect_landmarks_image(face_area1);
vector<vector<float>> landms1=face_landm.inference(face_area1);
vector<vector<float>> land1={
{float(landms1[104][0]),float(landms1[104][1])},
{float(landms1[105][0]),float(landms1[105][1])},
......@@ -83,7 +83,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){
for(int j=0;j<box2.size();++j){
Rect rect2=Rect(box2[j].xmin,box2[j].ymin,box2[j].xmax-box2[j].xmin,box2[j].ymax-box2[j].ymin);
Mat face_area2=image2(rect2);
vector<vector<float>> landms2=face_landm.detect_landmarks_image(face_area2);
vector<vector<float>> landms2=face_landm.inference(face_area2);
vector<vector<float>> land2={
{float(landms2[104][0]),float(landms2[104][1])},
{float(landms2[105][0]),float(landms2[105][1])},
......@@ -92,7 +92,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){
{float(landms2[90][0]),float(landms2[90][1])}
};
Mat align_resize_image2=face_rec.preprocess_face(face_area2,land2);
double samilar_score=face_rec.get_samilar_image(align_resize_image1,align_resize_image2);
double samilar_score=face_rec.inference(align_resize_image1,align_resize_image2);
if(samilar_score>face_recongnize_thr){
result=true;
}
......
......@@ -39,7 +39,7 @@ bool FaceLandmarks::init_model(string model_path){
model_init = true;
}
vector<vector<float>> FaceLandmarks::detect_landmarks(string image_path){
vector<vector<float>> FaceLandmarks::inference(string image_path){
Mat image = cv::imread(image_path);
vector<vector<float>> landmarks;
int width = image.cols;
......@@ -64,7 +64,7 @@ vector<vector<float>> FaceLandmarks::detect_landmarks(string image_path){
return landmarks;
}
vector<vector<float>> FaceLandmarks::detect_landmarks_image(Mat image){
vector<vector<float>> FaceLandmarks::inference(Mat image){
vector<vector<float>> landmarks;
int width = image.cols;
int height = image.rows;
......
......@@ -205,7 +205,7 @@ double FaceRecognize::cos_distance(const vector<double>& base, const vector<doub
return simility;
}
double FaceRecognize::get_samilar_image(Mat image1,Mat image2){
double FaceRecognize::inference(Mat image1,Mat image2){
cv::resize(image1,image1,Size2d(input_size[0],input_size[1]));
cv::resize(image2,image2,Size2d(input_size[0],input_size[1]));
pretreat->convert(image1.data,input_size[0],input_size[1],0,input_tensor1);
......@@ -234,7 +234,7 @@ double FaceRecognize::get_samilar_image(Mat image1,Mat image2){
return cos_score;
}
double FaceRecognize::get_samilar(string image_path1,string image_path2){
double FaceRecognize::inference(string image_path1,string image_path2){
Mat image1 = cv::imread(image_path1);
Mat image2 = cv::imread(image_path2);
cv::resize(image1,image1,Size2d(input_size[0],input_size[1]));
......
......@@ -20,8 +20,8 @@ class FaceComparison{
//线程个数
int num_thread = 2;
//接口
bool face_compare(string image_path1,string image_path2);
bool face_compare_image(Mat image1,Mat image2);
bool inference(string image_path1,string image_path2);
bool inference(Mat image1,Mat image2);
private:
RetinaFace face_det;
......
......@@ -21,8 +21,8 @@ class FaceLandmarks{
init_model(model_path);
};
bool init_model(string model_path);
vector<vector<float>> detect_landmarks(string image_path);
vector<vector<float>> detect_landmarks_image(Mat image);
vector<vector<float>> inference(string image_path);
vector<vector<float>> inference(Mat image);
private:
bool model_init;
......
......@@ -13,8 +13,8 @@ class FaceRecognize{
public:
int num_thread = 2;
// 推理
double get_samilar(string image_path1,string image_path2);
double get_samilar_image(Mat image1,Mat image2);
double inference(string image_path1,string image_path2);
double inference(Mat image1,Mat image2);
......
......@@ -71,7 +71,7 @@ class RetinaFace{
bool init_model(string model_path);
// 推理
vector<Bbox> detect(string image_path);
vector<Bbox> detect_image(Mat image);
vector<Bbox> inference(string image_path);
vector<Bbox> inference(Mat image);
};
#endif
\ No newline at end of file
......
#include "facecomparison.h"
int main(){
// FaceLandmarks face_landmarks1 = FaceLandmarks("/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn2/model/det_landmarks_106_v0.0.1.mnn");
// FaceLandmarks face_landmarks1 = FaceLandmarks("/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_landmarks_106_v0.0.1.mnn");
// vector<string> filenames;
// cv::glob("/home/situ/图片/img3", filenames, false);
// for(auto path:filenames){
// // cout<<path<<endl;
// Mat img1 =cv::imread(path);
// auto landmarks1 = face_landmarks1.detect_landmarks(path);
// auto landmarks1 = face_landmarks1.inference(img1);
// for(auto landm:landmarks1){
// cv::circle(img1,Point2d(landm[0],landm[1]),2,Scalar(255,0,0));
// }
......@@ -19,23 +19,22 @@ int main(){
Mat image2 = cv::imread("/data/face_recognize/pipeline_test/35326a760af111ec9f2300163e772630/310faceImageContent163047910353714.jpg");
string face_det_model = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_face_retina_mnn_1.0.0_v0.1.1.mnn";
string face_landm_model = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_landmarks_106_v0.0.1.mnn";
// string face_rec_model = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/cls_face_mnn_1.0.0_v0.0.2.mnn";
string face_rec_model = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/cls_face_mnn_1.0.0_v0.1.1.mnn";
FaceComparison face_rec = FaceComparison(face_det_model,face_landm_model,face_rec_model);
bool result = face_rec.face_compare_image(image1,image2);
bool result = face_rec.inference(image1,image2);
cout<<result<<endl;
// string model_path = "/home/situ/qfs/sdk_project/mnn_projects/face_retinaface_mnn/det_face_retina_mnn_1.0.0_v0.1.1.mnn";
// string model_path = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_face_retina_mnn_1.0.0_v0.1.1.mnn";
// RetinaFace face_det = RetinaFace(model_path.c_str());
// Mat image = cv::imread("/home/situ/图片/2.png");
// vector<Bbox> result = face_det.detect_image(image);
// vector<Bbox> result = face_det.inference("/home/situ/图片/2.png");
// for(auto res:result){
// cv::rectangle(image,cv::Rect(res.xmin,res.ymin,res.xmax-res.xmin,res.ymax-res.ymin),Scalar(0,255,0),2);
// }
// cv::imshow("image",image);
// cv::waitKey(0);
return 0;
// return 0;
}
......
......@@ -199,7 +199,7 @@ vector<Bbox> RetinaFace::bbox_process(vector<Bbox> bboxes,float frame_w,float fr
// 推理
vector<Bbox> RetinaFace::detect(string image_path){
vector<Bbox> RetinaFace::inference(string image_path){
Mat image = cv::imread(image_path);
float w_r=float(input_size[0])/float(image.cols);
float h_r=float(input_size[1])/float(image.rows);
......@@ -233,7 +233,7 @@ vector<Bbox> RetinaFace::detect(string image_path){
return results;
}
}
vector<Bbox> RetinaFace::detect_image(Mat image){
vector<Bbox> RetinaFace::inference(Mat image){
float w_r=float(input_size[0])/float(image.cols);
float h_r=float(input_size[1])/float(image.rows);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!