update the part of code
Showing
21 changed files
with
121 additions
and
35 deletions
... | @@ -13,6 +13,6 @@ set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mn | ... | @@ -13,6 +13,6 @@ set(FACECOMPARISON_DIR /home/situ/qfs/sdk_project/mnn_projects/face_recognize_mn |
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(main -lMNN ${OpenCV_LIBS}) | 17 | # target_link_libraries(facecomparison -lMNN ${OpenCV_LIBS}) |
18 | 18 | ... | ... |
... | @@ -19,6 +19,8 @@ FaceComparison face_rec=FaceComparison(det_model_path,landm_model_path,rec_model | ... | @@ -19,6 +19,8 @@ FaceComparison face_rec=FaceComparison(det_model_path,landm_model_path,rec_model |
19 | float face_recongnize_thr = 0.5; | 19 | float face_recongnize_thr = 0.5; |
20 | // 线程个数 | 20 | // 线程个数 |
21 | int num_thread = 2; | 21 | int num_thread = 2; |
22 | // 推理方式 | ||
23 | MNNForwardType forward_type = MNN_FORWARD_CPU; | ||
22 | 24 | ||
23 | 接口(返回结果 bool:true/false) | 25 | 接口(返回结果 bool:true/false) |
24 | 26 | ... | ... |
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_546f4/fast" | 4 | Run Build Command:"/usr/bin/make" "cmTC_016db/fast" |
5 | /usr/bin/make -f CMakeFiles/cmTC_546f4.dir/build.make CMakeFiles/cmTC_546f4.dir/build | 5 | /usr/bin/make -f CMakeFiles/cmTC_016db.dir/build.make CMakeFiles/cmTC_016db.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_546f4.dir/CheckSymbolExists.c.o | 7 | Building C object CMakeFiles/cmTC_016db.dir/CheckSymbolExists.c.o |
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 | 8 | /usr/bin/cc -fPIC -o CMakeFiles/cmTC_016db.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_546f4 | 9 | Linking C executable cmTC_016db |
10 | /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_546f4.dir/link.txt --verbose=1 | 10 | /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_016db.dir/link.txt --verbose=1 |
11 | /usr/bin/cc -fPIC CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o -o cmTC_546f4 | 11 | /usr/bin/cc -fPIC CMakeFiles/cmTC_016db.dir/CheckSymbolExists.c.o -o cmTC_016db |
12 | CMakeFiles/cmTC_546f4.dir/CheckSymbolExists.c.o:在函数‘main’中: | 12 | CMakeFiles/cmTC_016db.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_546f4.dir/build.make:97: recipe for target 'cmTC_546f4' failed | 15 | CMakeFiles/cmTC_016db.dir/build.make:97: recipe for target 'cmTC_016db' failed |
16 | make[1]: *** [cmTC_546f4] Error 1 | 16 | make[1]: *** [cmTC_016db] 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_546f4/fast' failed | 18 | Makefile:126: recipe for target 'cmTC_016db/fast' failed |
19 | make: *** [cmTC_546f4/fast] Error 2 | 19 | make: *** [cmTC_016db/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_9b3b9/fast" | 39 | Run Build Command:"/usr/bin/make" "cmTC_99b26/fast" |
40 | /usr/bin/make -f CMakeFiles/cmTC_9b3b9.dir/build.make CMakeFiles/cmTC_9b3b9.dir/build | 40 | /usr/bin/make -f CMakeFiles/cmTC_99b26.dir/build.make CMakeFiles/cmTC_99b26.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_9b3b9.dir/CheckFunctionExists.c.o | 42 | Building C object CMakeFiles/cmTC_99b26.dir/CheckFunctionExists.c.o |
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 | 43 | /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_99b26.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c |
44 | Linking C executable cmTC_9b3b9 | 44 | Linking C executable cmTC_99b26 |
45 | /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9b3b9.dir/link.txt --verbose=1 | 45 | /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_99b26.dir/link.txt --verbose=1 |
46 | /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_9b3b9.dir/CheckFunctionExists.c.o -o cmTC_9b3b9 -lpthreads | 46 | /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_99b26.dir/CheckFunctionExists.c.o -o cmTC_99b26 -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_9b3b9.dir/build.make:97: recipe for target 'cmTC_9b3b9' failed | 49 | CMakeFiles/cmTC_99b26.dir/build.make:97: recipe for target 'cmTC_99b26' failed |
50 | make[1]: *** [cmTC_9b3b9] Error 1 | 50 | make[1]: *** [cmTC_99b26] 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_9b3b9/fast' failed | 52 | Makefile:126: recipe for target 'cmTC_99b26/fast' failed |
53 | make: *** [cmTC_9b3b9/fast] Error 2 | 53 | make: *** [cmTC_99b26/fast] Error 2 |
54 | 54 | ||
55 | 55 | ... | ... |
This diff is collapsed.
Click to expand it.
... | @@ -11,29 +11,99 @@ set(CMAKE_MAKEFILE_DEPENDS | ... | @@ -11,29 +11,99 @@ 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" | ||
14 | "/usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake" | 16 | "/usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake" |
15 | "/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake" | 17 | "/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake" |
16 | "/usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake" | 18 | "/usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake" |
17 | "/usr/local/lib/cmake/opencv4/OpenCVModules.cmake" | 19 | "/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" | ||
18 | "/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake" | 22 | "/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" | ||
19 | "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake" | 25 | "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake" |
20 | "/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake" | 26 | "/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" | ||
21 | "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake" | 37 | "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake" |
22 | "/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake" | 38 | "/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" | ||
23 | "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake" | 41 | "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake" |
24 | "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake" | 42 | "/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" | ||
25 | "/usr/share/cmake-3.10/Modules/CheckIncludeFile.cmake" | 49 | "/usr/share/cmake-3.10/Modules/CheckIncludeFile.cmake" |
26 | "/usr/share/cmake-3.10/Modules/CheckLibraryExists.cmake" | 50 | "/usr/share/cmake-3.10/Modules/CheckLibraryExists.cmake" |
27 | "/usr/share/cmake-3.10/Modules/CheckSymbolExists.cmake" | 51 | "/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" | ||
28 | "/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake" | 57 | "/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" | ||
29 | "/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake" | 69 | "/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" | ||
30 | "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake" | 72 | "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake" |
73 | "/usr/share/cmake-3.10/Modules/Compiler/GNU-FindBinUtils.cmake" | ||
31 | "/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake" | 74 | "/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" | ||
32 | "/usr/share/cmake-3.10/Modules/FindCUDA.cmake" | 100 | "/usr/share/cmake-3.10/Modules/FindCUDA.cmake" |
33 | "/usr/share/cmake-3.10/Modules/FindCUDA/select_compute_arch.cmake" | 101 | "/usr/share/cmake-3.10/Modules/FindCUDA/select_compute_arch.cmake" |
34 | "/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake" | 102 | "/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake" |
35 | "/usr/share/cmake-3.10/Modules/FindPackageMessage.cmake" | 103 | "/usr/share/cmake-3.10/Modules/FindPackageMessage.cmake" |
36 | "/usr/share/cmake-3.10/Modules/FindThreads.cmake" | 104 | "/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" | ||
37 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" | 107 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" |
38 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" | 108 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" |
39 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" | 109 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" |
... | @@ -49,6 +119,11 @@ set(CMAKE_MAKEFILE_OUTPUTS | ... | @@ -49,6 +119,11 @@ set(CMAKE_MAKEFILE_OUTPUTS |
49 | 119 | ||
50 | # Byproducts of CMake generate step: | 120 | # Byproducts of CMake generate step: |
51 | set(CMAKE_MAKEFILE_PRODUCTS | 121 | 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" | ||
52 | "CMakeFiles/CMakeDirectoryInformation.cmake" | 127 | "CMakeFiles/CMakeDirectoryInformation.cmake" |
53 | ) | 128 | ) |
54 | 129 | ... | ... |
... | @@ -194,6 +194,7 @@ main: CMakeFiles/main.dir/retinaface.cpp.o | ... | @@ -194,6 +194,7 @@ main: CMakeFiles/main.dir/retinaface.cpp.o |
194 | main: CMakeFiles/main.dir/facelandmarks.cpp.o | 194 | main: CMakeFiles/main.dir/facelandmarks.cpp.o |
195 | main: CMakeFiles/main.dir/facecomparison.cpp.o | 195 | main: CMakeFiles/main.dir/facecomparison.cpp.o |
196 | main: CMakeFiles/main.dir/build.make | 196 | main: CMakeFiles/main.dir/build.make |
197 | main: ../lib/libfacecomparison.so | ||
197 | main: /usr/local/lib/libopencv_gapi.so.4.5.5 | 198 | main: /usr/local/lib/libopencv_gapi.so.4.5.5 |
198 | main: /usr/local/lib/libopencv_stitching.so.4.5.5 | 199 | main: /usr/local/lib/libopencv_stitching.so.4.5.5 |
199 | main: /usr/local/lib/libopencv_aruco.so.4.5.5 | 200 | main: /usr/local/lib/libopencv_aruco.so.4.5.5 | ... | ... |
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 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 | /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:/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 | ... | ... |
No preview for this file type
No preview for this file type
No preview for this file type
... | @@ -15,7 +15,7 @@ bool FaceLandmarks::init_model(string model_path){ | ... | @@ -15,7 +15,7 @@ bool FaceLandmarks::init_model(string model_path){ |
15 | } | 15 | } |
16 | //创建session | 16 | //创建session |
17 | MNN::ScheduleConfig schedule_config; | 17 | MNN::ScheduleConfig schedule_config; |
18 | schedule_config.type = MNN_FORWARD_CPU; | 18 | schedule_config.type = forward_type; |
19 | schedule_config.numThread = num_thread; | 19 | schedule_config.numThread = num_thread; |
20 | MNN::BackendConfig backend_config; | 20 | MNN::BackendConfig backend_config; |
21 | backend_config.memory = MNN::BackendConfig::Memory_Normal; | 21 | backend_config.memory = MNN::BackendConfig::Memory_Normal; | ... | ... |
... | @@ -13,7 +13,7 @@ bool FaceRecognize::init_model(string model_path){ | ... | @@ -13,7 +13,7 @@ bool FaceRecognize::init_model(string model_path){ |
13 | 13 | ||
14 | ScheduleConfig config; | 14 | ScheduleConfig config; |
15 | config.numThread=num_thread; | 15 | config.numThread=num_thread; |
16 | config.type=MNN_FORWARD_CPU; | 16 | config.type=forward_type; |
17 | 17 | ||
18 | session1 = net->createSession(config); | 18 | session1 = net->createSession(config); |
19 | session2 = net->createSession(config); | 19 | session2 = net->createSession(config); | ... | ... |
... | @@ -17,8 +17,13 @@ class FaceComparison{ | ... | @@ -17,8 +17,13 @@ class FaceComparison{ |
17 | // 人脸比对相似度阈值 | 17 | // 人脸比对相似度阈值 |
18 | float face_recongnize_thr = 0.5; | 18 | float face_recongnize_thr = 0.5; |
19 | 19 | ||
20 | //线程个数 | 20 | // 线程个数 |
21 | int num_thread = 2; | 21 | int num_thread = 2; |
22 | |||
23 | // 推理方式 | ||
24 | MNNForwardType forward_type = MNN_FORWARD_CPU; | ||
25 | |||
26 | |||
22 | //接口 | 27 | //接口 |
23 | bool inference(string image_path1,string image_path2); | 28 | bool inference(string image_path1,string image_path2); |
24 | bool inference(Mat image1,Mat image2); | 29 | bool inference(Mat image1,Mat image2); |
... | @@ -35,14 +40,13 @@ class FaceComparison{ | ... | @@ -35,14 +40,13 @@ class FaceComparison{ |
35 | face_det.confidence_threshold = confidence_threshold; | 40 | face_det.confidence_threshold = confidence_threshold; |
36 | face_det.is_bbox_process = is_bbox_process; | 41 | face_det.is_bbox_process = is_bbox_process; |
37 | face_det.num_thread=num_thread; | 42 | face_det.num_thread=num_thread; |
43 | face_det.forward_type = forward_type; | ||
38 | face_landm =FaceLandmarks(face_landm_model); | 44 | face_landm =FaceLandmarks(face_landm_model); |
39 | face_landm.num_thread=num_thread; | 45 | face_landm.num_thread=num_thread; |
46 | face_landm.forward_type=forward_type; | ||
40 | face_rec =FaceRecognize(face_rec_model); | 47 | face_rec =FaceRecognize(face_rec_model); |
41 | face_rec.num_thread=num_thread; | 48 | face_rec.num_thread=num_thread; |
49 | face_rec.forward_type=forward_type; | ||
42 | } | 50 | } |
43 | |||
44 | |||
45 | |||
46 | |||
47 | }; | 51 | }; |
48 | #endif | 52 | #endif |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -13,6 +13,7 @@ using namespace MNN; | ... | @@ -13,6 +13,7 @@ using namespace MNN; |
13 | class FaceLandmarks{ | 13 | class FaceLandmarks{ |
14 | public: | 14 | public: |
15 | int num_thread = 2; | 15 | int num_thread = 2; |
16 | MNNForwardType forward_type = MNN_FORWARD_CPU; | ||
16 | 17 | ||
17 | public: | 18 | public: |
18 | FaceLandmarks(); | 19 | FaceLandmarks(); | ... | ... |
... | @@ -12,6 +12,9 @@ using namespace cv; | ... | @@ -12,6 +12,9 @@ using namespace cv; |
12 | class FaceRecognize{ | 12 | class FaceRecognize{ |
13 | public: | 13 | public: |
14 | int num_thread = 2; | 14 | int num_thread = 2; |
15 | MNNForwardType forward_type = MNN_FORWARD_CPU; | ||
16 | |||
17 | |||
15 | // 推理 | 18 | // 推理 |
16 | double inference(string image_path1,string image_path2); | 19 | double inference(string image_path1,string image_path2); |
17 | double inference(Mat image1,Mat image2); | 20 | double inference(Mat image1,Mat image2); | ... | ... |
... | @@ -31,7 +31,7 @@ class RetinaFace{ | ... | @@ -31,7 +31,7 @@ class RetinaFace{ |
31 | float confidence_threshold = 0.5; | 31 | float confidence_threshold = 0.5; |
32 | bool is_bbox_process=true; | 32 | bool is_bbox_process=true; |
33 | int num_thread = 2; | 33 | int num_thread = 2; |
34 | 34 | MNNForwardType forward_type = MNN_FORWARD_CPU; | |
35 | public: | 35 | public: |
36 | bool model_init=false; | 36 | bool model_init=false; |
37 | vector<int> input_size={640,640}; | 37 | vector<int> input_size={640,640}; | ... | ... |
No preview for this file type
... | @@ -14,7 +14,7 @@ bool RetinaFace::init_model(string model_path){ | ... | @@ -14,7 +14,7 @@ bool RetinaFace::init_model(string model_path){ |
14 | } | 14 | } |
15 | ScheduleConfig config; | 15 | ScheduleConfig config; |
16 | config.numThread = num_thread; | 16 | config.numThread = num_thread; |
17 | config.type = MNN_FORWARD_CPU; | 17 | config.type = forward_type; |
18 | session = net->createSession(config);//创建session | 18 | session = net->createSession(config);//创建session |
19 | anchors=priorBox(input_size); //生成建议框 | 19 | anchors=priorBox(input_size); //生成建议框 |
20 | input_tensor = net->getSessionInput(session,NULL); | 20 | input_tensor = net->getSessionInput(session,NULL); | ... | ... |
-
Please register or sign in to post a comment