703d0677 by 乔峰昇

update inference

1 parent 4a94151f
...@@ -10,9 +10,9 @@ include_directories(/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/i ...@@ -10,9 +10,9 @@ include_directories(/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/i
10 LINK_DIRECTORIES(${MNN_DIR}/build) 10 LINK_DIRECTORIES(${MNN_DIR}/build)
11 set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib) 11 set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib)
12 # add_library(facecomparison SHARED facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp) 12 # add_library(facecomparison SHARED facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp)
13 # add_executable(main main.cpp facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp) 13 add_executable(main main.cpp facerecognize.cpp retinaface.cpp facelandmarks.cpp facecomparison.cpp)
14 add_executable(main main.cpp) 14 # add_executable(main main.cpp)
15 # add_executable(main z.cpp) 15 # add_executable(main z.cpp)
16 target_link_libraries(main ${FACECOMPARISON_DIR}/libfacecomparison.so -lMNN ${OpenCV_LIBS}) 16 # target_link_libraries(main ${FACECOMPARISON_DIR}/libfacecomparison.so -lMNN ${OpenCV_LIBS})
17 # target_link_libraries(facecomparison -lMNN ${OpenCV_LIBS}) 17 target_link_libraries(main -lMNN ${OpenCV_LIBS})
18 18
......
...@@ -21,10 +21,12 @@ FaceComparison face_rec=FaceComparison(det_model_path,landm_model_path,rec_model ...@@ -21,10 +21,12 @@ FaceComparison face_rec=FaceComparison(det_model_path,landm_model_path,rec_model
21 int num_thread = 2; 21 int num_thread = 2;
22 22
23 接口(返回结果 bool:true/false) 23 接口(返回结果 bool:true/false)
24 bool face_compare(string image_path1,string image_path2);参数为两张图像地址,其中iamge1_path为face_id图像输入 24
25 bool face_compare_image(Mat image1,Mat image2);参数为两张opencv读取的图像矩阵,其中iamge1为face_id图像输入 25 bool inference(string image_path1,string image_path2);参数为两张图像地址,其中iamge1_path为face_id图像输入
26 bool inference(Mat image1,Mat image2);参数为两张opencv读取的图像矩阵,其中iamge1为face_id图像输入
26 27
27 编译 28 编译
29
28 将CMakeLists.txt 中 set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib) 30 将CMakeLists.txt 中 set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/lib)
29 改为lib文件夹所在的绝对地址 31 改为lib文件夹所在的绝对地址
30 mkdir build 32 mkdir build
......
1 Determining if the pthread_create exist failed with the following output: 1 Determining if the pthread_create exist failed with the following output:
2 Change Dir: /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp 2 Change Dir: /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp
3 3
4 Run Build Command:"/usr/bin/make" "cmTC_63a2a/fast" 4 Run Build Command:"/usr/bin/make" "cmTC_546f4/fast"
5 /usr/bin/make -f CMakeFiles/cmTC_63a2a.dir/build.make CMakeFiles/cmTC_63a2a.dir/build 5 /usr/bin/make -f CMakeFiles/cmTC_546f4.dir/build.make CMakeFiles/cmTC_546f4.dir/build
6 make[1]: 进入目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp” 6 make[1]: 进入目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
7 Building C object CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o 7 Building C object CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o
8 /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 8 /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
9 Linking C executable cmTC_63a2a 9 Linking C executable cmTC_546f4
10 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_63a2a.dir/link.txt --verbose=1 10 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_546f4.dir/link.txt --verbose=1
11 /usr/bin/cc -fPIC CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o -o cmTC_63a2a 11 /usr/bin/cc -fPIC CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o -o cmTC_546f4
12 CMakeFiles/cmTC_63a2a.dir/CheckSymbolExists.c.o:在函数‘main’中: 12 CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o:在函数‘main’中:
13 CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用 13 CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用
14 collect2: error: ld returned 1 exit status 14 collect2: error: ld returned 1 exit status
15 CMakeFiles/cmTC_63a2a.dir/build.make:97: recipe for target 'cmTC_63a2a' failed 15 CMakeFiles/cmTC_546f4.dir/build.make:97: recipe for target 'cmTC_546f4' failed
16 make[1]: *** [cmTC_63a2a] Error 1 16 make[1]: *** [cmTC_546f4] Error 1
17 make[1]: 离开目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp” 17 make[1]: 离开目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
18 Makefile:126: recipe for target 'cmTC_63a2a/fast' failed 18 Makefile:126: recipe for target 'cmTC_546f4/fast' failed
19 make: *** [cmTC_63a2a/fast] Error 2 19 make: *** [cmTC_546f4/fast] Error 2
20 20
21 File /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: 21 File /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
22 /* */ 22 /* */
...@@ -36,20 +36,20 @@ int main(int argc, char** argv) ...@@ -36,20 +36,20 @@ int main(int argc, char** argv)
36 Determining if the function pthread_create exists in the pthreads failed with the following output: 36 Determining if the function pthread_create exists in the pthreads failed with the following output:
37 Change Dir: /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp 37 Change Dir: /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp
38 38
39 Run Build Command:"/usr/bin/make" "cmTC_35a97/fast" 39 Run Build Command:"/usr/bin/make" "cmTC_9b3b9/fast"
40 /usr/bin/make -f CMakeFiles/cmTC_35a97.dir/build.make CMakeFiles/cmTC_35a97.dir/build 40 /usr/bin/make -f CMakeFiles/cmTC_9b3b9.dir/build.make CMakeFiles/cmTC_9b3b9.dir/build
41 make[1]: 进入目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp” 41 make[1]: 进入目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
42 Building C object CMakeFiles/cmTC_35a97.dir/CheckFunctionExists.c.o 42 Building C object CMakeFiles/cmTC_9b3b9.dir/CheckFunctionExists.c.o
43 /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 43 /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
44 Linking C executable cmTC_35a97 44 Linking C executable cmTC_9b3b9
45 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_35a97.dir/link.txt --verbose=1 45 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9b3b9.dir/link.txt --verbose=1
46 /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_35a97.dir/CheckFunctionExists.c.o -o cmTC_35a97 -lpthreads 46 /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_9b3b9.dir/CheckFunctionExists.c.o -o cmTC_9b3b9 -lpthreads
47 /usr/bin/ld: 找不到 -lpthreads 47 /usr/bin/ld: 找不到 -lpthreads
48 collect2: error: ld returned 1 exit status 48 collect2: error: ld returned 1 exit status
49 CMakeFiles/cmTC_35a97.dir/build.make:97: recipe for target 'cmTC_35a97' failed 49 CMakeFiles/cmTC_9b3b9.dir/build.make:97: recipe for target 'cmTC_9b3b9' failed
50 make[1]: *** [cmTC_35a97] Error 1 50 make[1]: *** [cmTC_9b3b9] Error 1
51 make[1]: 离开目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp” 51 make[1]: 离开目录“/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles/CMakeTmp”
52 Makefile:126: recipe for target 'cmTC_35a97/fast' failed 52 Makefile:126: recipe for target 'cmTC_9b3b9/fast' failed
53 make: *** [cmTC_35a97/fast] Error 2 53 make: *** [cmTC_9b3b9/fast] Error 2
54 54
55 55
......
...@@ -11,99 +11,29 @@ set(CMAKE_MAKEFILE_DEPENDS ...@@ -11,99 +11,29 @@ set(CMAKE_MAKEFILE_DEPENDS
11 "CMakeFiles/3.10.2/CMakeCCompiler.cmake" 11 "CMakeFiles/3.10.2/CMakeCCompiler.cmake"
12 "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" 12 "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake"
13 "CMakeFiles/3.10.2/CMakeSystem.cmake" 13 "CMakeFiles/3.10.2/CMakeSystem.cmake"
14 "CMakeFiles/feature_tests.c"
15 "CMakeFiles/feature_tests.cxx"
16 "/usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake" 14 "/usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake"
17 "/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake" 15 "/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake"
18 "/usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake" 16 "/usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake"
19 "/usr/local/lib/cmake/opencv4/OpenCVModules.cmake" 17 "/usr/local/lib/cmake/opencv4/OpenCVModules.cmake"
20 "/usr/share/cmake-3.10/Modules/CMakeCCompiler.cmake.in"
21 "/usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c"
22 "/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake" 18 "/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake"
23 "/usr/share/cmake-3.10/Modules/CMakeCXXCompiler.cmake.in"
24 "/usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp"
25 "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake" 19 "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake"
26 "/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake" 20 "/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake"
27 "/usr/share/cmake-3.10/Modules/CMakeCompilerIdDetection.cmake"
28 "/usr/share/cmake-3.10/Modules/CMakeConfigurableFile.in"
29 "/usr/share/cmake-3.10/Modules/CMakeDetermineCCompiler.cmake"
30 "/usr/share/cmake-3.10/Modules/CMakeDetermineCXXCompiler.cmake"
31 "/usr/share/cmake-3.10/Modules/CMakeDetermineCompileFeatures.cmake"
32 "/usr/share/cmake-3.10/Modules/CMakeDetermineCompiler.cmake"
33 "/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerABI.cmake"
34 "/usr/share/cmake-3.10/Modules/CMakeDetermineCompilerId.cmake"
35 "/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake"
36 "/usr/share/cmake-3.10/Modules/CMakeFindBinUtils.cmake"
37 "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake" 21 "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake"
38 "/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake" 22 "/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake"
39 "/usr/share/cmake-3.10/Modules/CMakeParseImplicitLinkInfo.cmake"
40 "/usr/share/cmake-3.10/Modules/CMakeSystem.cmake.in"
41 "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake" 23 "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake"
42 "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake" 24 "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake"
43 "/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake"
44 "/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake"
45 "/usr/share/cmake-3.10/Modules/CMakeTestCompilerCommon.cmake"
46 "/usr/share/cmake-3.10/Modules/CMakeUnixFindMake.cmake"
47 "/usr/share/cmake-3.10/Modules/CheckFunctionExists.c"
48 "/usr/share/cmake-3.10/Modules/CheckIncludeFile.c.in"
49 "/usr/share/cmake-3.10/Modules/CheckIncludeFile.cmake" 25 "/usr/share/cmake-3.10/Modules/CheckIncludeFile.cmake"
50 "/usr/share/cmake-3.10/Modules/CheckLibraryExists.cmake" 26 "/usr/share/cmake-3.10/Modules/CheckLibraryExists.cmake"
51 "/usr/share/cmake-3.10/Modules/CheckSymbolExists.cmake" 27 "/usr/share/cmake-3.10/Modules/CheckSymbolExists.cmake"
52 "/usr/share/cmake-3.10/Modules/Compiler/ADSP-DetermineCompiler.cmake"
53 "/usr/share/cmake-3.10/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
54 "/usr/share/cmake-3.10/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
55 "/usr/share/cmake-3.10/Modules/Compiler/Borland-DetermineCompiler.cmake"
56 "/usr/share/cmake-3.10/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
57 "/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 28 "/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
58 "/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompiler.cmake"
59 "/usr/share/cmake-3.10/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
60 "/usr/share/cmake-3.10/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
61 "/usr/share/cmake-3.10/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
62 "/usr/share/cmake-3.10/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
63 "/usr/share/cmake-3.10/Modules/Compiler/Cray-DetermineCompiler.cmake"
64 "/usr/share/cmake-3.10/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
65 "/usr/share/cmake-3.10/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
66 "/usr/share/cmake-3.10/Modules/Compiler/GHS-DetermineCompiler.cmake"
67 "/usr/share/cmake-3.10/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
68 "/usr/share/cmake-3.10/Modules/Compiler/GNU-C-FeatureTests.cmake"
69 "/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake" 29 "/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake"
70 "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
71 "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX-FeatureTests.cmake"
72 "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake" 30 "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake"
73 "/usr/share/cmake-3.10/Modules/Compiler/GNU-FindBinUtils.cmake"
74 "/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake" 31 "/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake"
75 "/usr/share/cmake-3.10/Modules/Compiler/HP-C-DetermineCompiler.cmake"
76 "/usr/share/cmake-3.10/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
77 "/usr/share/cmake-3.10/Modules/Compiler/IAR-DetermineCompiler.cmake"
78 "/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
79 "/usr/share/cmake-3.10/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
80 "/usr/share/cmake-3.10/Modules/Compiler/Intel-DetermineCompiler.cmake"
81 "/usr/share/cmake-3.10/Modules/Compiler/MIPSpro-DetermineCompiler.cmake"
82 "/usr/share/cmake-3.10/Modules/Compiler/MSVC-DetermineCompiler.cmake"
83 "/usr/share/cmake-3.10/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
84 "/usr/share/cmake-3.10/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
85 "/usr/share/cmake-3.10/Modules/Compiler/PGI-DetermineCompiler.cmake"
86 "/usr/share/cmake-3.10/Modules/Compiler/PathScale-DetermineCompiler.cmake"
87 "/usr/share/cmake-3.10/Modules/Compiler/SCO-DetermineCompiler.cmake"
88 "/usr/share/cmake-3.10/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
89 "/usr/share/cmake-3.10/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
90 "/usr/share/cmake-3.10/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
91 "/usr/share/cmake-3.10/Modules/Compiler/TI-DetermineCompiler.cmake"
92 "/usr/share/cmake-3.10/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
93 "/usr/share/cmake-3.10/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
94 "/usr/share/cmake-3.10/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
95 "/usr/share/cmake-3.10/Modules/Compiler/Watcom-DetermineCompiler.cmake"
96 "/usr/share/cmake-3.10/Modules/Compiler/XL-C-DetermineCompiler.cmake"
97 "/usr/share/cmake-3.10/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
98 "/usr/share/cmake-3.10/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
99 "/usr/share/cmake-3.10/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
100 "/usr/share/cmake-3.10/Modules/FindCUDA.cmake" 32 "/usr/share/cmake-3.10/Modules/FindCUDA.cmake"
101 "/usr/share/cmake-3.10/Modules/FindCUDA/select_compute_arch.cmake" 33 "/usr/share/cmake-3.10/Modules/FindCUDA/select_compute_arch.cmake"
102 "/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake" 34 "/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake"
103 "/usr/share/cmake-3.10/Modules/FindPackageMessage.cmake" 35 "/usr/share/cmake-3.10/Modules/FindPackageMessage.cmake"
104 "/usr/share/cmake-3.10/Modules/FindThreads.cmake" 36 "/usr/share/cmake-3.10/Modules/FindThreads.cmake"
105 "/usr/share/cmake-3.10/Modules/Internal/FeatureTesting.cmake"
106 "/usr/share/cmake-3.10/Modules/Platform/Linux-Determine-CXX.cmake"
107 "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" 37 "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake"
108 "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" 38 "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake"
109 "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" 39 "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake"
...@@ -119,11 +49,6 @@ set(CMAKE_MAKEFILE_OUTPUTS ...@@ -119,11 +49,6 @@ set(CMAKE_MAKEFILE_OUTPUTS
119 49
120 # Byproducts of CMake generate step: 50 # Byproducts of CMake generate step:
121 set(CMAKE_MAKEFILE_PRODUCTS 51 set(CMAKE_MAKEFILE_PRODUCTS
122 "CMakeFiles/3.10.2/CMakeSystem.cmake"
123 "CMakeFiles/3.10.2/CMakeCCompiler.cmake"
124 "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake"
125 "CMakeFiles/3.10.2/CMakeCCompiler.cmake"
126 "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake"
127 "CMakeFiles/CMakeDirectoryInformation.cmake" 52 "CMakeFiles/CMakeDirectoryInformation.cmake"
128 ) 53 )
129 54
......
...@@ -66,7 +66,7 @@ CMAKE_BINARY_DIR = /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/bu ...@@ -66,7 +66,7 @@ CMAKE_BINARY_DIR = /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/bu
66 CMakeFiles/main.dir/all: 66 CMakeFiles/main.dir/all:
67 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/depend 67 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/depend
68 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build 68 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build
69 @$(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" 69 @$(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"
70 .PHONY : CMakeFiles/main.dir/all 70 .PHONY : CMakeFiles/main.dir/all
71 71
72 # Include target in all. 72 # Include target in all.
...@@ -76,7 +76,7 @@ all: CMakeFiles/main.dir/all ...@@ -76,7 +76,7 @@ all: CMakeFiles/main.dir/all
76 76
77 # Build rule for subdir invocation for target. 77 # Build rule for subdir invocation for target.
78 CMakeFiles/main.dir/rule: cmake_check_build_system 78 CMakeFiles/main.dir/rule: cmake_check_build_system
79 $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 2 79 $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 6
80 $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/main.dir/all 80 $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/main.dir/all
81 $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 0 81 $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/build/CMakeFiles 0
82 .PHONY : CMakeFiles/main.dir/rule 82 .PHONY : CMakeFiles/main.dir/rule
......
...@@ -124,10 +124,26 @@ MNN/HalideRuntime.h ...@@ -124,10 +124,26 @@ MNN/HalideRuntime.h
124 MNN/MNNDefine.h 124 MNN/MNNDefine.h
125 - 125 -
126 126
127 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.cpp
128 facecomparison.h
129 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.h
130
131 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.cpp
132 facelandmarks.h
133 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facelandmarks.h
134
135 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.cpp
136 facerecognize.h
137 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facerecognize.h
138
127 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/main.cpp 139 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/main.cpp
128 facecomparison.h 140 facecomparison.h
129 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.h 141 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/facecomparison.h
130 142
143 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.cpp
144 retinaface.h
145 /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/retinaface.h
146
131 /usr/local/include/opencv4/opencv2/./imgproc/segmentation.hpp 147 /usr/local/include/opencv4/opencv2/./imgproc/segmentation.hpp
132 opencv2/imgproc.hpp 148 opencv2/imgproc.hpp
133 /usr/local/include/opencv4/opencv2/./imgproc/opencv2/imgproc.hpp 149 /usr/local/include/opencv4/opencv2/./imgproc/opencv2/imgproc.hpp
......
...@@ -4,7 +4,11 @@ set(CMAKE_DEPENDS_LANGUAGES ...@@ -4,7 +4,11 @@ set(CMAKE_DEPENDS_LANGUAGES
4 ) 4 )
5 # The set of files for implicit dependencies of each language: 5 # The set of files for implicit dependencies of each language:
6 set(CMAKE_DEPENDS_CHECK_CXX 6 set(CMAKE_DEPENDS_CHECK_CXX
7 "/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"
8 "/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"
9 "/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"
7 "/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" 10 "/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"
11 "/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"
8 ) 12 )
9 set(CMAKE_CXX_COMPILER_ID "GNU") 13 set(CMAKE_CXX_COMPILER_ID "GNU")
10 14
......
...@@ -81,16 +81,119 @@ CMakeFiles/main.dir/main.cpp.o.provides: CMakeFiles/main.dir/main.cpp.o.requires ...@@ -81,16 +81,119 @@ CMakeFiles/main.dir/main.cpp.o.provides: CMakeFiles/main.dir/main.cpp.o.requires
81 CMakeFiles/main.dir/main.cpp.o.provides.build: CMakeFiles/main.dir/main.cpp.o 81 CMakeFiles/main.dir/main.cpp.o.provides.build: CMakeFiles/main.dir/main.cpp.o
82 82
83 83
84 CMakeFiles/main.dir/facerecognize.cpp.o: CMakeFiles/main.dir/flags.make
85 CMakeFiles/main.dir/facerecognize.cpp.o: ../facerecognize.cpp
86 @$(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"
87 /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
88
89 CMakeFiles/main.dir/facerecognize.cpp.i: cmake_force
90 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/facerecognize.cpp.i"
91 /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
92
93 CMakeFiles/main.dir/facerecognize.cpp.s: cmake_force
94 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/facerecognize.cpp.s"
95 /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
96
97 CMakeFiles/main.dir/facerecognize.cpp.o.requires:
98
99 .PHONY : CMakeFiles/main.dir/facerecognize.cpp.o.requires
100
101 CMakeFiles/main.dir/facerecognize.cpp.o.provides: CMakeFiles/main.dir/facerecognize.cpp.o.requires
102 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.o.provides.build
103 .PHONY : CMakeFiles/main.dir/facerecognize.cpp.o.provides
104
105 CMakeFiles/main.dir/facerecognize.cpp.o.provides.build: CMakeFiles/main.dir/facerecognize.cpp.o
106
107
108 CMakeFiles/main.dir/retinaface.cpp.o: CMakeFiles/main.dir/flags.make
109 CMakeFiles/main.dir/retinaface.cpp.o: ../retinaface.cpp
110 @$(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"
111 /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
112
113 CMakeFiles/main.dir/retinaface.cpp.i: cmake_force
114 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/retinaface.cpp.i"
115 /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
116
117 CMakeFiles/main.dir/retinaface.cpp.s: cmake_force
118 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/retinaface.cpp.s"
119 /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
120
121 CMakeFiles/main.dir/retinaface.cpp.o.requires:
122
123 .PHONY : CMakeFiles/main.dir/retinaface.cpp.o.requires
124
125 CMakeFiles/main.dir/retinaface.cpp.o.provides: CMakeFiles/main.dir/retinaface.cpp.o.requires
126 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.o.provides.build
127 .PHONY : CMakeFiles/main.dir/retinaface.cpp.o.provides
128
129 CMakeFiles/main.dir/retinaface.cpp.o.provides.build: CMakeFiles/main.dir/retinaface.cpp.o
130
131
132 CMakeFiles/main.dir/facelandmarks.cpp.o: CMakeFiles/main.dir/flags.make
133 CMakeFiles/main.dir/facelandmarks.cpp.o: ../facelandmarks.cpp
134 @$(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"
135 /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
136
137 CMakeFiles/main.dir/facelandmarks.cpp.i: cmake_force
138 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/facelandmarks.cpp.i"
139 /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
140
141 CMakeFiles/main.dir/facelandmarks.cpp.s: cmake_force
142 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/facelandmarks.cpp.s"
143 /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
144
145 CMakeFiles/main.dir/facelandmarks.cpp.o.requires:
146
147 .PHONY : CMakeFiles/main.dir/facelandmarks.cpp.o.requires
148
149 CMakeFiles/main.dir/facelandmarks.cpp.o.provides: CMakeFiles/main.dir/facelandmarks.cpp.o.requires
150 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.o.provides.build
151 .PHONY : CMakeFiles/main.dir/facelandmarks.cpp.o.provides
152
153 CMakeFiles/main.dir/facelandmarks.cpp.o.provides.build: CMakeFiles/main.dir/facelandmarks.cpp.o
154
155
156 CMakeFiles/main.dir/facecomparison.cpp.o: CMakeFiles/main.dir/flags.make
157 CMakeFiles/main.dir/facecomparison.cpp.o: ../facecomparison.cpp
158 @$(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"
159 /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
160
161 CMakeFiles/main.dir/facecomparison.cpp.i: cmake_force
162 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/main.dir/facecomparison.cpp.i"
163 /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
164
165 CMakeFiles/main.dir/facecomparison.cpp.s: cmake_force
166 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/main.dir/facecomparison.cpp.s"
167 /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
168
169 CMakeFiles/main.dir/facecomparison.cpp.o.requires:
170
171 .PHONY : CMakeFiles/main.dir/facecomparison.cpp.o.requires
172
173 CMakeFiles/main.dir/facecomparison.cpp.o.provides: CMakeFiles/main.dir/facecomparison.cpp.o.requires
174 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.o.provides.build
175 .PHONY : CMakeFiles/main.dir/facecomparison.cpp.o.provides
176
177 CMakeFiles/main.dir/facecomparison.cpp.o.provides.build: CMakeFiles/main.dir/facecomparison.cpp.o
178
179
84 # Object files for target main 180 # Object files for target main
85 main_OBJECTS = \ 181 main_OBJECTS = \
86 "CMakeFiles/main.dir/main.cpp.o" 182 "CMakeFiles/main.dir/main.cpp.o" \
183 "CMakeFiles/main.dir/facerecognize.cpp.o" \
184 "CMakeFiles/main.dir/retinaface.cpp.o" \
185 "CMakeFiles/main.dir/facelandmarks.cpp.o" \
186 "CMakeFiles/main.dir/facecomparison.cpp.o"
87 187
88 # External object files for target main 188 # External object files for target main
89 main_EXTERNAL_OBJECTS = 189 main_EXTERNAL_OBJECTS =
90 190
91 main: CMakeFiles/main.dir/main.cpp.o 191 main: CMakeFiles/main.dir/main.cpp.o
192 main: CMakeFiles/main.dir/facerecognize.cpp.o
193 main: CMakeFiles/main.dir/retinaface.cpp.o
194 main: CMakeFiles/main.dir/facelandmarks.cpp.o
195 main: CMakeFiles/main.dir/facecomparison.cpp.o
92 main: CMakeFiles/main.dir/build.make 196 main: CMakeFiles/main.dir/build.make
93 main: ../lib/libfacecomparison.so
94 main: /usr/local/lib/libopencv_gapi.so.4.5.5 197 main: /usr/local/lib/libopencv_gapi.so.4.5.5
95 main: /usr/local/lib/libopencv_stitching.so.4.5.5 198 main: /usr/local/lib/libopencv_stitching.so.4.5.5
96 main: /usr/local/lib/libopencv_aruco.so.4.5.5 199 main: /usr/local/lib/libopencv_aruco.so.4.5.5
...@@ -157,7 +260,7 @@ main: /usr/local/lib/libopencv_cudaarithm.so.4.5.5 ...@@ -157,7 +260,7 @@ main: /usr/local/lib/libopencv_cudaarithm.so.4.5.5
157 main: /usr/local/lib/libopencv_core.so.4.5.5 260 main: /usr/local/lib/libopencv_core.so.4.5.5
158 main: /usr/local/lib/libopencv_cudev.so.4.5.5 261 main: /usr/local/lib/libopencv_cudev.so.4.5.5
159 main: CMakeFiles/main.dir/link.txt 262 main: CMakeFiles/main.dir/link.txt
160 @$(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" 263 @$(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"
161 $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/main.dir/link.txt --verbose=$(VERBOSE) 264 $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/main.dir/link.txt --verbose=$(VERBOSE)
162 265
163 # Rule to build all files generated by this target. 266 # Rule to build all files generated by this target.
...@@ -166,6 +269,10 @@ CMakeFiles/main.dir/build: main ...@@ -166,6 +269,10 @@ CMakeFiles/main.dir/build: main
166 .PHONY : CMakeFiles/main.dir/build 269 .PHONY : CMakeFiles/main.dir/build
167 270
168 CMakeFiles/main.dir/requires: CMakeFiles/main.dir/main.cpp.o.requires 271 CMakeFiles/main.dir/requires: CMakeFiles/main.dir/main.cpp.o.requires
272 CMakeFiles/main.dir/requires: CMakeFiles/main.dir/facerecognize.cpp.o.requires
273 CMakeFiles/main.dir/requires: CMakeFiles/main.dir/retinaface.cpp.o.requires
274 CMakeFiles/main.dir/requires: CMakeFiles/main.dir/facelandmarks.cpp.o.requires
275 CMakeFiles/main.dir/requires: CMakeFiles/main.dir/facecomparison.cpp.o.requires
169 276
170 .PHONY : CMakeFiles/main.dir/requires 277 .PHONY : CMakeFiles/main.dir/requires
171 278
......
1 file(REMOVE_RECURSE 1 file(REMOVE_RECURSE
2 "CMakeFiles/main.dir/main.cpp.o" 2 "CMakeFiles/main.dir/main.cpp.o"
3 "CMakeFiles/main.dir/facerecognize.cpp.o"
4 "CMakeFiles/main.dir/retinaface.cpp.o"
5 "CMakeFiles/main.dir/facelandmarks.cpp.o"
6 "CMakeFiles/main.dir/facecomparison.cpp.o"
3 "main.pdb" 7 "main.pdb"
4 "main" 8 "main"
5 ) 9 )
......
No preview for this file type
No preview for this file type
No preview for this file type
1 /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 1 /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
......
1 CMAKE_PROGRESS_1 = 1 1 CMAKE_PROGRESS_1 = 1
2 CMAKE_PROGRESS_2 = 2 2 CMAKE_PROGRESS_2 = 2
3 CMAKE_PROGRESS_3 = 3
4 CMAKE_PROGRESS_4 = 4
5 CMAKE_PROGRESS_5 = 5
6 CMAKE_PROGRESS_6 = 6
3 7
......
No preview for this file type
...@@ -123,6 +123,87 @@ main/fast: ...@@ -123,6 +123,87 @@ main/fast:
123 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build 123 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/build
124 .PHONY : main/fast 124 .PHONY : main/fast
125 125
126 facecomparison.o: facecomparison.cpp.o
127
128 .PHONY : facecomparison.o
129
130 # target to build an object file
131 facecomparison.cpp.o:
132 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.o
133 .PHONY : facecomparison.cpp.o
134
135 facecomparison.i: facecomparison.cpp.i
136
137 .PHONY : facecomparison.i
138
139 # target to preprocess a source file
140 facecomparison.cpp.i:
141 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.i
142 .PHONY : facecomparison.cpp.i
143
144 facecomparison.s: facecomparison.cpp.s
145
146 .PHONY : facecomparison.s
147
148 # target to generate assembly for a file
149 facecomparison.cpp.s:
150 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facecomparison.cpp.s
151 .PHONY : facecomparison.cpp.s
152
153 facelandmarks.o: facelandmarks.cpp.o
154
155 .PHONY : facelandmarks.o
156
157 # target to build an object file
158 facelandmarks.cpp.o:
159 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.o
160 .PHONY : facelandmarks.cpp.o
161
162 facelandmarks.i: facelandmarks.cpp.i
163
164 .PHONY : facelandmarks.i
165
166 # target to preprocess a source file
167 facelandmarks.cpp.i:
168 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.i
169 .PHONY : facelandmarks.cpp.i
170
171 facelandmarks.s: facelandmarks.cpp.s
172
173 .PHONY : facelandmarks.s
174
175 # target to generate assembly for a file
176 facelandmarks.cpp.s:
177 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facelandmarks.cpp.s
178 .PHONY : facelandmarks.cpp.s
179
180 facerecognize.o: facerecognize.cpp.o
181
182 .PHONY : facerecognize.o
183
184 # target to build an object file
185 facerecognize.cpp.o:
186 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.o
187 .PHONY : facerecognize.cpp.o
188
189 facerecognize.i: facerecognize.cpp.i
190
191 .PHONY : facerecognize.i
192
193 # target to preprocess a source file
194 facerecognize.cpp.i:
195 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.i
196 .PHONY : facerecognize.cpp.i
197
198 facerecognize.s: facerecognize.cpp.s
199
200 .PHONY : facerecognize.s
201
202 # target to generate assembly for a file
203 facerecognize.cpp.s:
204 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/facerecognize.cpp.s
205 .PHONY : facerecognize.cpp.s
206
126 main.o: main.cpp.o 207 main.o: main.cpp.o
127 208
128 .PHONY : main.o 209 .PHONY : main.o
...@@ -150,6 +231,33 @@ main.cpp.s: ...@@ -150,6 +231,33 @@ main.cpp.s:
150 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/main.cpp.s 231 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/main.cpp.s
151 .PHONY : main.cpp.s 232 .PHONY : main.cpp.s
152 233
234 retinaface.o: retinaface.cpp.o
235
236 .PHONY : retinaface.o
237
238 # target to build an object file
239 retinaface.cpp.o:
240 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.o
241 .PHONY : retinaface.cpp.o
242
243 retinaface.i: retinaface.cpp.i
244
245 .PHONY : retinaface.i
246
247 # target to preprocess a source file
248 retinaface.cpp.i:
249 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.i
250 .PHONY : retinaface.cpp.i
251
252 retinaface.s: retinaface.cpp.s
253
254 .PHONY : retinaface.s
255
256 # target to generate assembly for a file
257 retinaface.cpp.s:
258 $(MAKE) -f CMakeFiles/main.dir/build.make CMakeFiles/main.dir/retinaface.cpp.s
259 .PHONY : retinaface.cpp.s
260
153 # Help Target 261 # Help Target
154 help: 262 help:
155 @echo "The following are some of the valid targets for this Makefile:" 263 @echo "The following are some of the valid targets for this Makefile:"
...@@ -159,9 +267,21 @@ help: ...@@ -159,9 +267,21 @@ help:
159 @echo "... rebuild_cache" 267 @echo "... rebuild_cache"
160 @echo "... main" 268 @echo "... main"
161 @echo "... edit_cache" 269 @echo "... edit_cache"
270 @echo "... facecomparison.o"
271 @echo "... facecomparison.i"
272 @echo "... facecomparison.s"
273 @echo "... facelandmarks.o"
274 @echo "... facelandmarks.i"
275 @echo "... facelandmarks.s"
276 @echo "... facerecognize.o"
277 @echo "... facerecognize.i"
278 @echo "... facerecognize.s"
162 @echo "... main.o" 279 @echo "... main.o"
163 @echo "... main.i" 280 @echo "... main.i"
164 @echo "... main.s" 281 @echo "... main.s"
282 @echo "... retinaface.o"
283 @echo "... retinaface.i"
284 @echo "... retinaface.s"
165 .PHONY : help 285 .PHONY : help
166 286
167 287
......
No preview for this file type
1 #include "facecomparison.h" 1 #include "facecomparison.h"
2 2
3 3
4 bool FaceComparison::face_compare(string image1_path,string image2_path){ 4 bool FaceComparison::inference(string image1_path,string image2_path){
5 bool result=false; 5 bool result=false;
6 cv::Mat image1=cv::imread(image1_path); 6 cv::Mat image1=cv::imread(image1_path);
7 cv::Mat image2=cv::imread(image2_path); 7 cv::Mat image2=cv::imread(image2_path);
8 if(image1.empty()||image2.empty()){ 8 if(image1.empty()||image2.empty()){
9 return false; 9 return false;
10 } 10 }
11 vector<Bbox> box1=face_det.detect_image(image1); 11 vector<Bbox> box1=face_det.inference(image1);
12 vector<Bbox> box2=face_det.detect_image(image2); 12 vector<Bbox> box2=face_det.inference(image2);
13 if(box1.empty()||box2.empty()){ 13 if(box1.empty()||box2.empty()){
14 return false; 14 return false;
15 } 15 }
...@@ -24,7 +24,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){ ...@@ -24,7 +24,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
24 } 24 }
25 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); 25 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);
26 Mat face_area1=image1(rect1); 26 Mat face_area1=image1(rect1);
27 vector<vector<float>> landms1=face_landm.detect_landmarks_image(face_area1); 27 vector<vector<float>> landms1=face_landm.inference(face_area1);
28 vector<vector<float>> land1={ 28 vector<vector<float>> land1={
29 {float(landms1[104][0]),float(landms1[104][1])}, 29 {float(landms1[104][0]),float(landms1[104][1])},
30 {float(landms1[105][0]),float(landms1[105][1])}, 30 {float(landms1[105][0]),float(landms1[105][1])},
...@@ -36,7 +36,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){ ...@@ -36,7 +36,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
36 for(int j=0;j<box2.size();++j){ 36 for(int j=0;j<box2.size();++j){
37 Rect rect2=Rect(box2[j].xmin,box2[j].ymin,box2[j].xmax-box2[j].xmin,box2[j].ymax-box2[j].ymin); 37 Rect rect2=Rect(box2[j].xmin,box2[j].ymin,box2[j].xmax-box2[j].xmin,box2[j].ymax-box2[j].ymin);
38 Mat face_area2=image2(rect2); 38 Mat face_area2=image2(rect2);
39 vector<vector<float>> landms2=face_landm.detect_landmarks_image(face_area2); 39 vector<vector<float>> landms2=face_landm.inference(face_area2);
40 vector<vector<float>> land2={ 40 vector<vector<float>> land2={
41 {float(landms2[104][0]),float(landms2[104][1])}, 41 {float(landms2[104][0]),float(landms2[104][1])},
42 {float(landms2[105][0]),float(landms2[105][1])}, 42 {float(landms2[105][0]),float(landms2[105][1])},
...@@ -45,7 +45,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){ ...@@ -45,7 +45,7 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
45 {float(landms2[90][0]),float(landms2[90][1])} 45 {float(landms2[90][0]),float(landms2[90][1])}
46 }; 46 };
47 Mat align_resize_image2=face_rec.preprocess_face(face_area2,land2); 47 Mat align_resize_image2=face_rec.preprocess_face(face_area2,land2);
48 double samilar_score=face_rec.get_samilar_image(align_resize_image1,align_resize_image2); 48 double samilar_score=face_rec.inference(align_resize_image1,align_resize_image2);
49 if(samilar_score>face_recongnize_thr){ 49 if(samilar_score>face_recongnize_thr){
50 result=true; 50 result=true;
51 } 51 }
...@@ -53,10 +53,10 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){ ...@@ -53,10 +53,10 @@ bool FaceComparison::face_compare(string image1_path,string image2_path){
53 return result; 53 return result;
54 } 54 }
55 55
56 bool FaceComparison::face_compare_image(Mat image1,Mat image2){ 56 bool FaceComparison::inference(Mat image1,Mat image2){
57 bool result=false; 57 bool result=false;
58 vector<Bbox> box1=face_det.detect_image(image1); 58 vector<Bbox> box1=face_det.inference(image1);
59 vector<Bbox> box2=face_det.detect_image(image2); 59 vector<Bbox> box2=face_det.inference(image2);
60 if(box1.empty()||box2.empty()){ 60 if(box1.empty()||box2.empty()){
61 return false; 61 return false;
62 } 62 }
...@@ -71,7 +71,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){ ...@@ -71,7 +71,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){
71 } 71 }
72 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); 72 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);
73 Mat face_area1=image1(rect1); 73 Mat face_area1=image1(rect1);
74 vector<vector<float>> landms1=face_landm.detect_landmarks_image(face_area1); 74 vector<vector<float>> landms1=face_landm.inference(face_area1);
75 vector<vector<float>> land1={ 75 vector<vector<float>> land1={
76 {float(landms1[104][0]),float(landms1[104][1])}, 76 {float(landms1[104][0]),float(landms1[104][1])},
77 {float(landms1[105][0]),float(landms1[105][1])}, 77 {float(landms1[105][0]),float(landms1[105][1])},
...@@ -83,7 +83,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){ ...@@ -83,7 +83,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){
83 for(int j=0;j<box2.size();++j){ 83 for(int j=0;j<box2.size();++j){
84 Rect rect2=Rect(box2[j].xmin,box2[j].ymin,box2[j].xmax-box2[j].xmin,box2[j].ymax-box2[j].ymin); 84 Rect rect2=Rect(box2[j].xmin,box2[j].ymin,box2[j].xmax-box2[j].xmin,box2[j].ymax-box2[j].ymin);
85 Mat face_area2=image2(rect2); 85 Mat face_area2=image2(rect2);
86 vector<vector<float>> landms2=face_landm.detect_landmarks_image(face_area2); 86 vector<vector<float>> landms2=face_landm.inference(face_area2);
87 vector<vector<float>> land2={ 87 vector<vector<float>> land2={
88 {float(landms2[104][0]),float(landms2[104][1])}, 88 {float(landms2[104][0]),float(landms2[104][1])},
89 {float(landms2[105][0]),float(landms2[105][1])}, 89 {float(landms2[105][0]),float(landms2[105][1])},
...@@ -92,7 +92,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){ ...@@ -92,7 +92,7 @@ bool FaceComparison::face_compare_image(Mat image1,Mat image2){
92 {float(landms2[90][0]),float(landms2[90][1])} 92 {float(landms2[90][0]),float(landms2[90][1])}
93 }; 93 };
94 Mat align_resize_image2=face_rec.preprocess_face(face_area2,land2); 94 Mat align_resize_image2=face_rec.preprocess_face(face_area2,land2);
95 double samilar_score=face_rec.get_samilar_image(align_resize_image1,align_resize_image2); 95 double samilar_score=face_rec.inference(align_resize_image1,align_resize_image2);
96 if(samilar_score>face_recongnize_thr){ 96 if(samilar_score>face_recongnize_thr){
97 result=true; 97 result=true;
98 } 98 }
......
...@@ -39,7 +39,7 @@ bool FaceLandmarks::init_model(string model_path){ ...@@ -39,7 +39,7 @@ bool FaceLandmarks::init_model(string model_path){
39 model_init = true; 39 model_init = true;
40 } 40 }
41 41
42 vector<vector<float>> FaceLandmarks::detect_landmarks(string image_path){ 42 vector<vector<float>> FaceLandmarks::inference(string image_path){
43 Mat image = cv::imread(image_path); 43 Mat image = cv::imread(image_path);
44 vector<vector<float>> landmarks; 44 vector<vector<float>> landmarks;
45 int width = image.cols; 45 int width = image.cols;
...@@ -64,7 +64,7 @@ vector<vector<float>> FaceLandmarks::detect_landmarks(string image_path){ ...@@ -64,7 +64,7 @@ vector<vector<float>> FaceLandmarks::detect_landmarks(string image_path){
64 return landmarks; 64 return landmarks;
65 } 65 }
66 66
67 vector<vector<float>> FaceLandmarks::detect_landmarks_image(Mat image){ 67 vector<vector<float>> FaceLandmarks::inference(Mat image){
68 vector<vector<float>> landmarks; 68 vector<vector<float>> landmarks;
69 int width = image.cols; 69 int width = image.cols;
70 int height = image.rows; 70 int height = image.rows;
......
...@@ -205,7 +205,7 @@ double FaceRecognize::cos_distance(const vector<double>& base, const vector<doub ...@@ -205,7 +205,7 @@ double FaceRecognize::cos_distance(const vector<double>& base, const vector<doub
205 return simility; 205 return simility;
206 } 206 }
207 207
208 double FaceRecognize::get_samilar_image(Mat image1,Mat image2){ 208 double FaceRecognize::inference(Mat image1,Mat image2){
209 cv::resize(image1,image1,Size2d(input_size[0],input_size[1])); 209 cv::resize(image1,image1,Size2d(input_size[0],input_size[1]));
210 cv::resize(image2,image2,Size2d(input_size[0],input_size[1])); 210 cv::resize(image2,image2,Size2d(input_size[0],input_size[1]));
211 pretreat->convert(image1.data,input_size[0],input_size[1],0,input_tensor1); 211 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){ ...@@ -234,7 +234,7 @@ double FaceRecognize::get_samilar_image(Mat image1,Mat image2){
234 return cos_score; 234 return cos_score;
235 } 235 }
236 236
237 double FaceRecognize::get_samilar(string image_path1,string image_path2){ 237 double FaceRecognize::inference(string image_path1,string image_path2){
238 Mat image1 = cv::imread(image_path1); 238 Mat image1 = cv::imread(image_path1);
239 Mat image2 = cv::imread(image_path2); 239 Mat image2 = cv::imread(image_path2);
240 cv::resize(image1,image1,Size2d(input_size[0],input_size[1])); 240 cv::resize(image1,image1,Size2d(input_size[0],input_size[1]));
......
...@@ -20,8 +20,8 @@ class FaceComparison{ ...@@ -20,8 +20,8 @@ class FaceComparison{
20 //线程个数 20 //线程个数
21 int num_thread = 2; 21 int num_thread = 2;
22 //接口 22 //接口
23 bool face_compare(string image_path1,string image_path2); 23 bool inference(string image_path1,string image_path2);
24 bool face_compare_image(Mat image1,Mat image2); 24 bool inference(Mat image1,Mat image2);
25 25
26 private: 26 private:
27 RetinaFace face_det; 27 RetinaFace face_det;
......
...@@ -21,8 +21,8 @@ class FaceLandmarks{ ...@@ -21,8 +21,8 @@ class FaceLandmarks{
21 init_model(model_path); 21 init_model(model_path);
22 }; 22 };
23 bool init_model(string model_path); 23 bool init_model(string model_path);
24 vector<vector<float>> detect_landmarks(string image_path); 24 vector<vector<float>> inference(string image_path);
25 vector<vector<float>> detect_landmarks_image(Mat image); 25 vector<vector<float>> inference(Mat image);
26 26
27 private: 27 private:
28 bool model_init; 28 bool model_init;
......
...@@ -13,8 +13,8 @@ class FaceRecognize{ ...@@ -13,8 +13,8 @@ class FaceRecognize{
13 public: 13 public:
14 int num_thread = 2; 14 int num_thread = 2;
15 // 推理 15 // 推理
16 double get_samilar(string image_path1,string image_path2); 16 double inference(string image_path1,string image_path2);
17 double get_samilar_image(Mat image1,Mat image2); 17 double inference(Mat image1,Mat image2);
18 18
19 19
20 20
......
...@@ -71,7 +71,7 @@ class RetinaFace{ ...@@ -71,7 +71,7 @@ class RetinaFace{
71 bool init_model(string model_path); 71 bool init_model(string model_path);
72 72
73 // 推理 73 // 推理
74 vector<Bbox> detect(string image_path); 74 vector<Bbox> inference(string image_path);
75 vector<Bbox> detect_image(Mat image); 75 vector<Bbox> inference(Mat image);
76 }; 76 };
77 #endif 77 #endif
...\ No newline at end of file ...\ No newline at end of file
......
1 #include "facecomparison.h" 1 #include "facecomparison.h"
2 int main(){ 2 int main(){
3 // FaceLandmarks face_landmarks1 = FaceLandmarks("/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn2/model/det_landmarks_106_v0.0.1.mnn"); 3 // FaceLandmarks face_landmarks1 = FaceLandmarks("/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_landmarks_106_v0.0.1.mnn");
4 // vector<string> filenames; 4 // vector<string> filenames;
5 // cv::glob("/home/situ/图片/img3", filenames, false); 5 // cv::glob("/home/situ/图片/img3", filenames, false);
6 // for(auto path:filenames){ 6 // for(auto path:filenames){
7 7
8 // // cout<<path<<endl; 8 // // cout<<path<<endl;
9 // Mat img1 =cv::imread(path); 9 // Mat img1 =cv::imread(path);
10 // auto landmarks1 = face_landmarks1.detect_landmarks(path); 10 // auto landmarks1 = face_landmarks1.inference(img1);
11 // for(auto landm:landmarks1){ 11 // for(auto landm:landmarks1){
12 // cv::circle(img1,Point2d(landm[0],landm[1]),2,Scalar(255,0,0)); 12 // cv::circle(img1,Point2d(landm[0],landm[1]),2,Scalar(255,0,0));
13 // } 13 // }
...@@ -19,23 +19,22 @@ int main(){ ...@@ -19,23 +19,22 @@ int main(){
19 Mat image2 = cv::imread("/data/face_recognize/pipeline_test/35326a760af111ec9f2300163e772630/310faceImageContent163047910353714.jpg"); 19 Mat image2 = cv::imread("/data/face_recognize/pipeline_test/35326a760af111ec9f2300163e772630/310faceImageContent163047910353714.jpg");
20 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"; 20 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";
21 string face_landm_model = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_landmarks_106_v0.0.1.mnn"; 21 string face_landm_model = "/home/situ/qfs/sdk_project/mnn_projects/face_recognize_mnn/model/det_landmarks_106_v0.0.1.mnn";
22 // 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";
23 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"; 22 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";
24 23
25 FaceComparison face_rec = FaceComparison(face_det_model,face_landm_model,face_rec_model); 24 FaceComparison face_rec = FaceComparison(face_det_model,face_landm_model,face_rec_model);
26 bool result = face_rec.face_compare_image(image1,image2); 25 bool result = face_rec.inference(image1,image2);
27 cout<<result<<endl; 26 cout<<result<<endl;
28 27
29 28
30 // string model_path = "/home/situ/qfs/sdk_project/mnn_projects/face_retinaface_mnn/det_face_retina_mnn_1.0.0_v0.1.1.mnn"; 29 // 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";
31 // RetinaFace face_det = RetinaFace(model_path.c_str()); 30 // RetinaFace face_det = RetinaFace(model_path.c_str());
32 // Mat image = cv::imread("/home/situ/图片/2.png"); 31 // Mat image = cv::imread("/home/situ/图片/2.png");
33 32
34 // vector<Bbox> result = face_det.detect_image(image); 33 // vector<Bbox> result = face_det.inference("/home/situ/图片/2.png");
35 // for(auto res:result){ 34 // for(auto res:result){
36 // cv::rectangle(image,cv::Rect(res.xmin,res.ymin,res.xmax-res.xmin,res.ymax-res.ymin),Scalar(0,255,0),2); 35 // cv::rectangle(image,cv::Rect(res.xmin,res.ymin,res.xmax-res.xmin,res.ymax-res.ymin),Scalar(0,255,0),2);
37 // } 36 // }
38 // cv::imshow("image",image); 37 // cv::imshow("image",image);
39 // cv::waitKey(0); 38 // cv::waitKey(0);
40 return 0; 39 // return 0;
41 } 40 }
......
...@@ -199,7 +199,7 @@ vector<Bbox> RetinaFace::bbox_process(vector<Bbox> bboxes,float frame_w,float fr ...@@ -199,7 +199,7 @@ vector<Bbox> RetinaFace::bbox_process(vector<Bbox> bboxes,float frame_w,float fr
199 199
200 200
201 // 推理 201 // 推理
202 vector<Bbox> RetinaFace::detect(string image_path){ 202 vector<Bbox> RetinaFace::inference(string image_path){
203 Mat image = cv::imread(image_path); 203 Mat image = cv::imread(image_path);
204 float w_r=float(input_size[0])/float(image.cols); 204 float w_r=float(input_size[0])/float(image.cols);
205 float h_r=float(input_size[1])/float(image.rows); 205 float h_r=float(input_size[1])/float(image.rows);
...@@ -233,7 +233,7 @@ vector<Bbox> RetinaFace::detect(string image_path){ ...@@ -233,7 +233,7 @@ vector<Bbox> RetinaFace::detect(string image_path){
233 return results; 233 return results;
234 } 234 }
235 } 235 }
236 vector<Bbox> RetinaFace::detect_image(Mat image){ 236 vector<Bbox> RetinaFace::inference(Mat image){
237 float w_r=float(input_size[0])/float(image.cols); 237 float w_r=float(input_size[0])/float(image.cols);
238 float h_r=float(input_size[1])/float(image.rows); 238 float h_r=float(input_size[1])/float(image.rows);
239 239
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!