the first submit of speak_recognize
0 parents
Showing
49 changed files
with
2241 additions
and
0 deletions
CMakeLists.txt
0 → 100644
| 1 | cmake_minimum_required(VERSION 3.10) | ||
| 2 | project(main) | ||
| 3 | |||
| 4 | set(CMAKE_CXX_STANDARD 11) | ||
| 5 | |||
| 6 | find_package(OpenCV REQUIRED) | ||
| 7 | set(MNN_DIR /home/situ/MNN/MNN1.1/MNN) | ||
| 8 | include_directories(${MNN_DIR}/include) | ||
| 9 | include_directories(/home/situ/qfs/sdk_project/speak_det_c/include) | ||
| 10 | |||
| 11 | LINK_DIRECTORIES(${MNN_DIR}/build) | ||
| 12 | link_directories(/home/situ/qfs/sdk_project/speak_det_c/lib) | ||
| 13 | # add_library(speakrecognize SHARED speak_detector.cpp retinaface.cpp faceLandmarks.cpp speakcls.cpp ) | ||
| 14 | # add_executable(speakrecognize eval.cpp retinaface.cpp faceLandmarks.cpp speakcls.cpp speak_detector.cpp) | ||
| 15 | add_executable(speakrecognize main.cpp) | ||
| 16 | target_link_libraries(speakrecognize -lspeakrecognize -lMNN ${OpenCV_LIBS}) | ||
| 17 |
build/CMakeCache.txt
0 → 100644
This diff is collapsed.
Click to expand it.
build/CMakeFiles/3.10.2/CMakeCCompiler.cmake
0 → 100644
| 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") | ||
| 2 | set(CMAKE_C_COMPILER_ARG1 "") | ||
| 3 | set(CMAKE_C_COMPILER_ID "GNU") | ||
| 4 | set(CMAKE_C_COMPILER_VERSION "7.5.0") | ||
| 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") | ||
| 6 | set(CMAKE_C_COMPILER_WRAPPER "") | ||
| 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") | ||
| 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") | ||
| 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") | ||
| 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") | ||
| 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") | ||
| 12 | |||
| 13 | set(CMAKE_C_PLATFORM_ID "Linux") | ||
| 14 | set(CMAKE_C_SIMULATE_ID "") | ||
| 15 | set(CMAKE_C_SIMULATE_VERSION "") | ||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | set(CMAKE_AR "/usr/bin/ar") | ||
| 20 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-7") | ||
| 21 | set(CMAKE_RANLIB "/usr/bin/ranlib") | ||
| 22 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") | ||
| 23 | set(CMAKE_LINKER "/usr/bin/ld") | ||
| 24 | set(CMAKE_COMPILER_IS_GNUCC 1) | ||
| 25 | set(CMAKE_C_COMPILER_LOADED 1) | ||
| 26 | set(CMAKE_C_COMPILER_WORKS TRUE) | ||
| 27 | set(CMAKE_C_ABI_COMPILED TRUE) | ||
| 28 | set(CMAKE_COMPILER_IS_MINGW ) | ||
| 29 | set(CMAKE_COMPILER_IS_CYGWIN ) | ||
| 30 | if(CMAKE_COMPILER_IS_CYGWIN) | ||
| 31 | set(CYGWIN 1) | ||
| 32 | set(UNIX 1) | ||
| 33 | endif() | ||
| 34 | |||
| 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") | ||
| 36 | |||
| 37 | if(CMAKE_COMPILER_IS_MINGW) | ||
| 38 | set(MINGW 1) | ||
| 39 | endif() | ||
| 40 | set(CMAKE_C_COMPILER_ID_RUN 1) | ||
| 41 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) | ||
| 42 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) | ||
| 43 | set(CMAKE_C_LINKER_PREFERENCE 10) | ||
| 44 | |||
| 45 | # Save compiler ABI information. | ||
| 46 | set(CMAKE_C_SIZEOF_DATA_PTR "8") | ||
| 47 | set(CMAKE_C_COMPILER_ABI "ELF") | ||
| 48 | set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") | ||
| 49 | |||
| 50 | if(CMAKE_C_SIZEOF_DATA_PTR) | ||
| 51 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") | ||
| 52 | endif() | ||
| 53 | |||
| 54 | if(CMAKE_C_COMPILER_ABI) | ||
| 55 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") | ||
| 56 | endif() | ||
| 57 | |||
| 58 | if(CMAKE_C_LIBRARY_ARCHITECTURE) | ||
| 59 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") | ||
| 60 | endif() | ||
| 61 | |||
| 62 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") | ||
| 63 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) | ||
| 64 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") | ||
| 65 | endif() | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") | ||
| 72 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") | ||
| 73 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") |
| 1 | set(CMAKE_CXX_COMPILER "/usr/bin/c++") | ||
| 2 | set(CMAKE_CXX_COMPILER_ARG1 "") | ||
| 3 | set(CMAKE_CXX_COMPILER_ID "GNU") | ||
| 4 | set(CMAKE_CXX_COMPILER_VERSION "7.5.0") | ||
| 5 | set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") | ||
| 6 | set(CMAKE_CXX_COMPILER_WRAPPER "") | ||
| 7 | set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") | ||
| 8 | set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17") | ||
| 9 | set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") | ||
| 10 | set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") | ||
| 11 | set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") | ||
| 12 | set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") | ||
| 13 | |||
| 14 | set(CMAKE_CXX_PLATFORM_ID "Linux") | ||
| 15 | set(CMAKE_CXX_SIMULATE_ID "") | ||
| 16 | set(CMAKE_CXX_SIMULATE_VERSION "") | ||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | set(CMAKE_AR "/usr/bin/ar") | ||
| 21 | set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-7") | ||
| 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") | ||
| 23 | set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") | ||
| 24 | set(CMAKE_LINKER "/usr/bin/ld") | ||
| 25 | set(CMAKE_COMPILER_IS_GNUCXX 1) | ||
| 26 | set(CMAKE_CXX_COMPILER_LOADED 1) | ||
| 27 | set(CMAKE_CXX_COMPILER_WORKS TRUE) | ||
| 28 | set(CMAKE_CXX_ABI_COMPILED TRUE) | ||
| 29 | set(CMAKE_COMPILER_IS_MINGW ) | ||
| 30 | set(CMAKE_COMPILER_IS_CYGWIN ) | ||
| 31 | if(CMAKE_COMPILER_IS_CYGWIN) | ||
| 32 | set(CYGWIN 1) | ||
| 33 | set(UNIX 1) | ||
| 34 | endif() | ||
| 35 | |||
| 36 | set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") | ||
| 37 | |||
| 38 | if(CMAKE_COMPILER_IS_MINGW) | ||
| 39 | set(MINGW 1) | ||
| 40 | endif() | ||
| 41 | set(CMAKE_CXX_COMPILER_ID_RUN 1) | ||
| 42 | set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) | ||
| 43 | set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) | ||
| 44 | set(CMAKE_CXX_LINKER_PREFERENCE 30) | ||
| 45 | set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) | ||
| 46 | |||
| 47 | # Save compiler ABI information. | ||
| 48 | set(CMAKE_CXX_SIZEOF_DATA_PTR "8") | ||
| 49 | set(CMAKE_CXX_COMPILER_ABI "ELF") | ||
| 50 | set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") | ||
| 51 | |||
| 52 | if(CMAKE_CXX_SIZEOF_DATA_PTR) | ||
| 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") | ||
| 54 | endif() | ||
| 55 | |||
| 56 | if(CMAKE_CXX_COMPILER_ABI) | ||
| 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") | ||
| 58 | endif() | ||
| 59 | |||
| 60 | if(CMAKE_CXX_LIBRARY_ARCHITECTURE) | ||
| 61 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") | ||
| 62 | endif() | ||
| 63 | |||
| 64 | set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") | ||
| 65 | if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) | ||
| 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") | ||
| 67 | endif() | ||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") | ||
| 74 | set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") | ||
| 75 | set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") |
No preview for this file type
No preview for this file type
build/CMakeFiles/3.10.2/CMakeSystem.cmake
0 → 100644
| 1 | set(CMAKE_HOST_SYSTEM "Linux-4.15.0-29-generic") | ||
| 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") | ||
| 3 | set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-29-generic") | ||
| 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") | ||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | set(CMAKE_SYSTEM "Linux-4.15.0-29-generic") | ||
| 9 | set(CMAKE_SYSTEM_NAME "Linux") | ||
| 10 | set(CMAKE_SYSTEM_VERSION "4.15.0-29-generic") | ||
| 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") | ||
| 12 | |||
| 13 | set(CMAKE_CROSSCOMPILING "FALSE") | ||
| 14 | |||
| 15 | set(CMAKE_SYSTEM_LOADED 1) |
This diff is collapsed.
Click to expand it.
build/CMakeFiles/3.10.2/CompilerIdC/a.out
0 → 100755
No preview for this file type
This diff is collapsed.
Click to expand it.
build/CMakeFiles/3.10.2/CompilerIdCXX/a.out
0 → 100755
No preview for this file type
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | # Relative path conversion top directories. | ||
| 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/situ/qfs/sdk_project/speak_det_c") | ||
| 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/situ/qfs/sdk_project/speak_det_c/build") | ||
| 7 | |||
| 8 | # Force unix paths in dependencies. | ||
| 9 | set(CMAKE_FORCE_UNIX_PATHS 1) | ||
| 10 | |||
| 11 | |||
| 12 | # The C and CXX include file regular expressions for this directory. | ||
| 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") | ||
| 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") | ||
| 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) | ||
| 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) |
build/CMakeFiles/CMakeError.log
0 → 100644
| 1 | Determining if the pthread_create exist failed with the following output: | ||
| 2 | Change Dir: /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp | ||
| 3 | |||
| 4 | Run Build Command:"/usr/bin/make" "cmTC_a6fce/fast" | ||
| 5 | /usr/bin/make -f CMakeFiles/cmTC_a6fce.dir/build.make CMakeFiles/cmTC_a6fce.dir/build | ||
| 6 | make[1]: 进入目录“/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp” | ||
| 7 | Building C object CMakeFiles/cmTC_a6fce.dir/CheckSymbolExists.c.o | ||
| 8 | /usr/bin/cc -fPIC -o CMakeFiles/cmTC_a6fce.dir/CheckSymbolExists.c.o -c /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c | ||
| 9 | Linking C executable cmTC_a6fce | ||
| 10 | /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a6fce.dir/link.txt --verbose=1 | ||
| 11 | /usr/bin/cc -fPIC CMakeFiles/cmTC_a6fce.dir/CheckSymbolExists.c.o -o cmTC_a6fce | ||
| 12 | CMakeFiles/cmTC_a6fce.dir/CheckSymbolExists.c.o:在函数‘main’中: | ||
| 13 | CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用 | ||
| 14 | collect2: error: ld returned 1 exit status | ||
| 15 | CMakeFiles/cmTC_a6fce.dir/build.make:97: recipe for target 'cmTC_a6fce' failed | ||
| 16 | make[1]: *** [cmTC_a6fce] Error 1 | ||
| 17 | make[1]: 离开目录“/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp” | ||
| 18 | Makefile:126: recipe for target 'cmTC_a6fce/fast' failed | ||
| 19 | make: *** [cmTC_a6fce/fast] Error 2 | ||
| 20 | |||
| 21 | File /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: | ||
| 22 | /* */ | ||
| 23 | #include <pthread.h> | ||
| 24 | |||
| 25 | int main(int argc, char** argv) | ||
| 26 | { | ||
| 27 | (void)argv; | ||
| 28 | #ifndef pthread_create | ||
| 29 | return ((int*)(&pthread_create))[argc]; | ||
| 30 | #else | ||
| 31 | (void)argc; | ||
| 32 | return 0; | ||
| 33 | #endif | ||
| 34 | } | ||
| 35 | |||
| 36 | Determining if the function pthread_create exists in the pthreads failed with the following output: | ||
| 37 | Change Dir: /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp | ||
| 38 | |||
| 39 | Run Build Command:"/usr/bin/make" "cmTC_3d827/fast" | ||
| 40 | /usr/bin/make -f CMakeFiles/cmTC_3d827.dir/build.make CMakeFiles/cmTC_3d827.dir/build | ||
| 41 | make[1]: 进入目录“/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp” | ||
| 42 | Building C object CMakeFiles/cmTC_3d827.dir/CheckFunctionExists.c.o | ||
| 43 | /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_3d827.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c | ||
| 44 | Linking C executable cmTC_3d827 | ||
| 45 | /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3d827.dir/link.txt --verbose=1 | ||
| 46 | /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_3d827.dir/CheckFunctionExists.c.o -o cmTC_3d827 -lpthreads | ||
| 47 | /usr/bin/ld: 找不到 -lpthreads | ||
| 48 | collect2: error: ld returned 1 exit status | ||
| 49 | CMakeFiles/cmTC_3d827.dir/build.make:97: recipe for target 'cmTC_3d827' failed | ||
| 50 | make[1]: *** [cmTC_3d827] Error 1 | ||
| 51 | make[1]: 离开目录“/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/CMakeTmp” | ||
| 52 | Makefile:126: recipe for target 'cmTC_3d827/fast' failed | ||
| 53 | make: *** [cmTC_3d827/fast] Error 2 | ||
| 54 | |||
| 55 |
build/CMakeFiles/CMakeOutput.log
0 → 100644
This diff is collapsed.
Click to expand it.
build/CMakeFiles/Makefile.cmake
0 → 100644
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | # The generator used is: | ||
| 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") | ||
| 6 | |||
| 7 | # The top level Makefile was generated from the following files: | ||
| 8 | set(CMAKE_MAKEFILE_DEPENDS | ||
| 9 | "CMakeCache.txt" | ||
| 10 | "../CMakeLists.txt" | ||
| 11 | "CMakeFiles/3.10.2/CMakeCCompiler.cmake" | ||
| 12 | "CMakeFiles/3.10.2/CMakeCXXCompiler.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" | ||
| 17 | "/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake" | ||
| 18 | "/usr/local/lib/cmake/opencv4/OpenCVModules-release.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" | ||
| 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" | ||
| 25 | "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.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" | ||
| 37 | "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.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" | ||
| 41 | "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.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" | ||
| 49 | "/usr/share/cmake-3.10/Modules/CheckIncludeFile.cmake" | ||
| 50 | "/usr/share/cmake-3.10/Modules/CheckLibraryExists.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" | ||
| 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" | ||
| 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" | ||
| 72 | "/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" | ||
| 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" | ||
| 101 | "/usr/share/cmake-3.10/Modules/FindCUDA/select_compute_arch.cmake" | ||
| 102 | "/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake" | ||
| 103 | "/usr/share/cmake-3.10/Modules/FindPackageMessage.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" | ||
| 107 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" | ||
| 108 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" | ||
| 109 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" | ||
| 110 | "/usr/share/cmake-3.10/Modules/Platform/Linux.cmake" | ||
| 111 | "/usr/share/cmake-3.10/Modules/Platform/UnixPaths.cmake" | ||
| 112 | ) | ||
| 113 | |||
| 114 | # The corresponding makefile is: | ||
| 115 | set(CMAKE_MAKEFILE_OUTPUTS | ||
| 116 | "Makefile" | ||
| 117 | "CMakeFiles/cmake.check_cache" | ||
| 118 | ) | ||
| 119 | |||
| 120 | # Byproducts of CMake generate step: | ||
| 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" | ||
| 127 | "CMakeFiles/CMakeDirectoryInformation.cmake" | ||
| 128 | ) | ||
| 129 | |||
| 130 | # Dependency information for all targets: | ||
| 131 | set(CMAKE_DEPEND_INFO_FILES | ||
| 132 | "CMakeFiles/speakrecognize.dir/DependInfo.cmake" | ||
| 133 | ) |
build/CMakeFiles/Makefile2
0 → 100644
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | # Default target executed when no arguments are given to make. | ||
| 5 | default_target: all | ||
| 6 | |||
| 7 | .PHONY : default_target | ||
| 8 | |||
| 9 | # The main recursive all target | ||
| 10 | all: | ||
| 11 | |||
| 12 | .PHONY : all | ||
| 13 | |||
| 14 | # The main recursive preinstall target | ||
| 15 | preinstall: | ||
| 16 | |||
| 17 | .PHONY : preinstall | ||
| 18 | |||
| 19 | #============================================================================= | ||
| 20 | # Special targets provided by cmake. | ||
| 21 | |||
| 22 | # Disable implicit rules so canonical targets will work. | ||
| 23 | .SUFFIXES: | ||
| 24 | |||
| 25 | |||
| 26 | # Remove some rules from gmake that .SUFFIXES does not remove. | ||
| 27 | SUFFIXES = | ||
| 28 | |||
| 29 | .SUFFIXES: .hpux_make_needs_suffix_list | ||
| 30 | |||
| 31 | |||
| 32 | # Suppress display of executed commands. | ||
| 33 | $(VERBOSE).SILENT: | ||
| 34 | |||
| 35 | |||
| 36 | # A target that is always out of date. | ||
| 37 | cmake_force: | ||
| 38 | |||
| 39 | .PHONY : cmake_force | ||
| 40 | |||
| 41 | #============================================================================= | ||
| 42 | # Set environment variables for the build. | ||
| 43 | |||
| 44 | # The shell in which to execute make rules. | ||
| 45 | SHELL = /bin/sh | ||
| 46 | |||
| 47 | # The CMake executable. | ||
| 48 | CMAKE_COMMAND = /usr/bin/cmake | ||
| 49 | |||
| 50 | # The command to remove a file. | ||
| 51 | RM = /usr/bin/cmake -E remove -f | ||
| 52 | |||
| 53 | # Escaping for special characters. | ||
| 54 | EQUALS = = | ||
| 55 | |||
| 56 | # The top-level source directory on which CMake was run. | ||
| 57 | CMAKE_SOURCE_DIR = /home/situ/qfs/sdk_project/speak_det_c | ||
| 58 | |||
| 59 | # The top-level build directory on which CMake was run. | ||
| 60 | CMAKE_BINARY_DIR = /home/situ/qfs/sdk_project/speak_det_c/build | ||
| 61 | |||
| 62 | #============================================================================= | ||
| 63 | # Target rules for target CMakeFiles/speakrecognize.dir | ||
| 64 | |||
| 65 | # All Build rule for target. | ||
| 66 | CMakeFiles/speakrecognize.dir/all: | ||
| 67 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/depend | ||
| 68 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/build | ||
| 69 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles --progress-num=1,2 "Built target speakrecognize" | ||
| 70 | .PHONY : CMakeFiles/speakrecognize.dir/all | ||
| 71 | |||
| 72 | # Include target in all. | ||
| 73 | all: CMakeFiles/speakrecognize.dir/all | ||
| 74 | |||
| 75 | .PHONY : all | ||
| 76 | |||
| 77 | # Build rule for subdir invocation for target. | ||
| 78 | CMakeFiles/speakrecognize.dir/rule: cmake_check_build_system | ||
| 79 | $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles 2 | ||
| 80 | $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/speakrecognize.dir/all | ||
| 81 | $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles 0 | ||
| 82 | .PHONY : CMakeFiles/speakrecognize.dir/rule | ||
| 83 | |||
| 84 | # Convenience name for target. | ||
| 85 | speakrecognize: CMakeFiles/speakrecognize.dir/rule | ||
| 86 | |||
| 87 | .PHONY : speakrecognize | ||
| 88 | |||
| 89 | # clean rule for target. | ||
| 90 | CMakeFiles/speakrecognize.dir/clean: | ||
| 91 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/clean | ||
| 92 | .PHONY : CMakeFiles/speakrecognize.dir/clean | ||
| 93 | |||
| 94 | # clean rule for target. | ||
| 95 | clean: CMakeFiles/speakrecognize.dir/clean | ||
| 96 | |||
| 97 | .PHONY : clean | ||
| 98 | |||
| 99 | #============================================================================= | ||
| 100 | # Special targets to cleanup operation of make. | ||
| 101 | |||
| 102 | # Special rule to run CMake to check the build system integrity. | ||
| 103 | # No rule that depends on this can have commands that come from listfiles | ||
| 104 | # because they might be regenerated. | ||
| 105 | cmake_check_build_system: | ||
| 106 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | ||
| 107 | .PHONY : cmake_check_build_system | ||
| 108 |
build/CMakeFiles/TargetDirectories.txt
0 → 100644
build/CMakeFiles/cmake.check_cache
0 → 100644
| 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file |
build/CMakeFiles/feature_tests.bin
0 → 100755
No preview for this file type
build/CMakeFiles/feature_tests.c
0 → 100644
| 1 | |||
| 2 | const char features[] = {"\n" | ||
| 3 | "C_FEATURE:" | ||
| 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 | ||
| 5 | "1" | ||
| 6 | #else | ||
| 7 | "0" | ||
| 8 | #endif | ||
| 9 | "c_function_prototypes\n" | ||
| 10 | "C_FEATURE:" | ||
| 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | ||
| 12 | "1" | ||
| 13 | #else | ||
| 14 | "0" | ||
| 15 | #endif | ||
| 16 | "c_restrict\n" | ||
| 17 | "C_FEATURE:" | ||
| 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L | ||
| 19 | "1" | ||
| 20 | #else | ||
| 21 | "0" | ||
| 22 | #endif | ||
| 23 | "c_static_assert\n" | ||
| 24 | "C_FEATURE:" | ||
| 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | ||
| 26 | "1" | ||
| 27 | #else | ||
| 28 | "0" | ||
| 29 | #endif | ||
| 30 | "c_variadic_macros\n" | ||
| 31 | |||
| 32 | }; | ||
| 33 | |||
| 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } |
build/CMakeFiles/feature_tests.cxx
0 → 100644
| 1 | |||
| 2 | const char features[] = {"\n" | ||
| 3 | "CXX_FEATURE:" | ||
| 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L | ||
| 5 | "1" | ||
| 6 | #else | ||
| 7 | "0" | ||
| 8 | #endif | ||
| 9 | "cxx_aggregate_default_initializers\n" | ||
| 10 | "CXX_FEATURE:" | ||
| 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 12 | "1" | ||
| 13 | #else | ||
| 14 | "0" | ||
| 15 | #endif | ||
| 16 | "cxx_alias_templates\n" | ||
| 17 | "CXX_FEATURE:" | ||
| 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L | ||
| 19 | "1" | ||
| 20 | #else | ||
| 21 | "0" | ||
| 22 | #endif | ||
| 23 | "cxx_alignas\n" | ||
| 24 | "CXX_FEATURE:" | ||
| 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L | ||
| 26 | "1" | ||
| 27 | #else | ||
| 28 | "0" | ||
| 29 | #endif | ||
| 30 | "cxx_alignof\n" | ||
| 31 | "CXX_FEATURE:" | ||
| 32 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L | ||
| 33 | "1" | ||
| 34 | #else | ||
| 35 | "0" | ||
| 36 | #endif | ||
| 37 | "cxx_attributes\n" | ||
| 38 | "CXX_FEATURE:" | ||
| 39 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 40 | "1" | ||
| 41 | #else | ||
| 42 | "0" | ||
| 43 | #endif | ||
| 44 | "cxx_attribute_deprecated\n" | ||
| 45 | "CXX_FEATURE:" | ||
| 46 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 47 | "1" | ||
| 48 | #else | ||
| 49 | "0" | ||
| 50 | #endif | ||
| 51 | "cxx_auto_type\n" | ||
| 52 | "CXX_FEATURE:" | ||
| 53 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 54 | "1" | ||
| 55 | #else | ||
| 56 | "0" | ||
| 57 | #endif | ||
| 58 | "cxx_binary_literals\n" | ||
| 59 | "CXX_FEATURE:" | ||
| 60 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 61 | "1" | ||
| 62 | #else | ||
| 63 | "0" | ||
| 64 | #endif | ||
| 65 | "cxx_constexpr\n" | ||
| 66 | "CXX_FEATURE:" | ||
| 67 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 68 | "1" | ||
| 69 | #else | ||
| 70 | "0" | ||
| 71 | #endif | ||
| 72 | "cxx_contextual_conversions\n" | ||
| 73 | "CXX_FEATURE:" | ||
| 74 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 75 | "1" | ||
| 76 | #else | ||
| 77 | "0" | ||
| 78 | #endif | ||
| 79 | "cxx_decltype\n" | ||
| 80 | "CXX_FEATURE:" | ||
| 81 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 82 | "1" | ||
| 83 | #else | ||
| 84 | "0" | ||
| 85 | #endif | ||
| 86 | "cxx_decltype_auto\n" | ||
| 87 | "CXX_FEATURE:" | ||
| 88 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L | ||
| 89 | "1" | ||
| 90 | #else | ||
| 91 | "0" | ||
| 92 | #endif | ||
| 93 | "cxx_decltype_incomplete_return_types\n" | ||
| 94 | "CXX_FEATURE:" | ||
| 95 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 96 | "1" | ||
| 97 | #else | ||
| 98 | "0" | ||
| 99 | #endif | ||
| 100 | "cxx_default_function_template_args\n" | ||
| 101 | "CXX_FEATURE:" | ||
| 102 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 103 | "1" | ||
| 104 | #else | ||
| 105 | "0" | ||
| 106 | #endif | ||
| 107 | "cxx_defaulted_functions\n" | ||
| 108 | "CXX_FEATURE:" | ||
| 109 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 110 | "1" | ||
| 111 | #else | ||
| 112 | "0" | ||
| 113 | #endif | ||
| 114 | "cxx_defaulted_move_initializers\n" | ||
| 115 | "CXX_FEATURE:" | ||
| 116 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 117 | "1" | ||
| 118 | #else | ||
| 119 | "0" | ||
| 120 | #endif | ||
| 121 | "cxx_delegating_constructors\n" | ||
| 122 | "CXX_FEATURE:" | ||
| 123 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 124 | "1" | ||
| 125 | #else | ||
| 126 | "0" | ||
| 127 | #endif | ||
| 128 | "cxx_deleted_functions\n" | ||
| 129 | "CXX_FEATURE:" | ||
| 130 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 131 | "1" | ||
| 132 | #else | ||
| 133 | "0" | ||
| 134 | #endif | ||
| 135 | "cxx_digit_separators\n" | ||
| 136 | "CXX_FEATURE:" | ||
| 137 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 138 | "1" | ||
| 139 | #else | ||
| 140 | "0" | ||
| 141 | #endif | ||
| 142 | "cxx_enum_forward_declarations\n" | ||
| 143 | "CXX_FEATURE:" | ||
| 144 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 145 | "1" | ||
| 146 | #else | ||
| 147 | "0" | ||
| 148 | #endif | ||
| 149 | "cxx_explicit_conversions\n" | ||
| 150 | "CXX_FEATURE:" | ||
| 151 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 152 | "1" | ||
| 153 | #else | ||
| 154 | "0" | ||
| 155 | #endif | ||
| 156 | "cxx_extended_friend_declarations\n" | ||
| 157 | "CXX_FEATURE:" | ||
| 158 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 159 | "1" | ||
| 160 | #else | ||
| 161 | "0" | ||
| 162 | #endif | ||
| 163 | "cxx_extern_templates\n" | ||
| 164 | "CXX_FEATURE:" | ||
| 165 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 166 | "1" | ||
| 167 | #else | ||
| 168 | "0" | ||
| 169 | #endif | ||
| 170 | "cxx_final\n" | ||
| 171 | "CXX_FEATURE:" | ||
| 172 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 173 | "1" | ||
| 174 | #else | ||
| 175 | "0" | ||
| 176 | #endif | ||
| 177 | "cxx_func_identifier\n" | ||
| 178 | "CXX_FEATURE:" | ||
| 179 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 180 | "1" | ||
| 181 | #else | ||
| 182 | "0" | ||
| 183 | #endif | ||
| 184 | "cxx_generalized_initializers\n" | ||
| 185 | "CXX_FEATURE:" | ||
| 186 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 187 | "1" | ||
| 188 | #else | ||
| 189 | "0" | ||
| 190 | #endif | ||
| 191 | "cxx_generic_lambdas\n" | ||
| 192 | "CXX_FEATURE:" | ||
| 193 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L | ||
| 194 | "1" | ||
| 195 | #else | ||
| 196 | "0" | ||
| 197 | #endif | ||
| 198 | "cxx_inheriting_constructors\n" | ||
| 199 | "CXX_FEATURE:" | ||
| 200 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 201 | "1" | ||
| 202 | #else | ||
| 203 | "0" | ||
| 204 | #endif | ||
| 205 | "cxx_inline_namespaces\n" | ||
| 206 | "CXX_FEATURE:" | ||
| 207 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 208 | "1" | ||
| 209 | #else | ||
| 210 | "0" | ||
| 211 | #endif | ||
| 212 | "cxx_lambdas\n" | ||
| 213 | "CXX_FEATURE:" | ||
| 214 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 215 | "1" | ||
| 216 | #else | ||
| 217 | "0" | ||
| 218 | #endif | ||
| 219 | "cxx_lambda_init_captures\n" | ||
| 220 | "CXX_FEATURE:" | ||
| 221 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 222 | "1" | ||
| 223 | #else | ||
| 224 | "0" | ||
| 225 | #endif | ||
| 226 | "cxx_local_type_template_args\n" | ||
| 227 | "CXX_FEATURE:" | ||
| 228 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 229 | "1" | ||
| 230 | #else | ||
| 231 | "0" | ||
| 232 | #endif | ||
| 233 | "cxx_long_long_type\n" | ||
| 234 | "CXX_FEATURE:" | ||
| 235 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 236 | "1" | ||
| 237 | #else | ||
| 238 | "0" | ||
| 239 | #endif | ||
| 240 | "cxx_noexcept\n" | ||
| 241 | "CXX_FEATURE:" | ||
| 242 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 243 | "1" | ||
| 244 | #else | ||
| 245 | "0" | ||
| 246 | #endif | ||
| 247 | "cxx_nonstatic_member_init\n" | ||
| 248 | "CXX_FEATURE:" | ||
| 249 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 250 | "1" | ||
| 251 | #else | ||
| 252 | "0" | ||
| 253 | #endif | ||
| 254 | "cxx_nullptr\n" | ||
| 255 | "CXX_FEATURE:" | ||
| 256 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 257 | "1" | ||
| 258 | #else | ||
| 259 | "0" | ||
| 260 | #endif | ||
| 261 | "cxx_override\n" | ||
| 262 | "CXX_FEATURE:" | ||
| 263 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 264 | "1" | ||
| 265 | #else | ||
| 266 | "0" | ||
| 267 | #endif | ||
| 268 | "cxx_range_for\n" | ||
| 269 | "CXX_FEATURE:" | ||
| 270 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 271 | "1" | ||
| 272 | #else | ||
| 273 | "0" | ||
| 274 | #endif | ||
| 275 | "cxx_raw_string_literals\n" | ||
| 276 | "CXX_FEATURE:" | ||
| 277 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L | ||
| 278 | "1" | ||
| 279 | #else | ||
| 280 | "0" | ||
| 281 | #endif | ||
| 282 | "cxx_reference_qualified_functions\n" | ||
| 283 | "CXX_FEATURE:" | ||
| 284 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L | ||
| 285 | "1" | ||
| 286 | #else | ||
| 287 | "0" | ||
| 288 | #endif | ||
| 289 | "cxx_relaxed_constexpr\n" | ||
| 290 | "CXX_FEATURE:" | ||
| 291 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L | ||
| 292 | "1" | ||
| 293 | #else | ||
| 294 | "0" | ||
| 295 | #endif | ||
| 296 | "cxx_return_type_deduction\n" | ||
| 297 | "CXX_FEATURE:" | ||
| 298 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 299 | "1" | ||
| 300 | #else | ||
| 301 | "0" | ||
| 302 | #endif | ||
| 303 | "cxx_right_angle_brackets\n" | ||
| 304 | "CXX_FEATURE:" | ||
| 305 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 306 | "1" | ||
| 307 | #else | ||
| 308 | "0" | ||
| 309 | #endif | ||
| 310 | "cxx_rvalue_references\n" | ||
| 311 | "CXX_FEATURE:" | ||
| 312 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 313 | "1" | ||
| 314 | #else | ||
| 315 | "0" | ||
| 316 | #endif | ||
| 317 | "cxx_sizeof_member\n" | ||
| 318 | "CXX_FEATURE:" | ||
| 319 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 320 | "1" | ||
| 321 | #else | ||
| 322 | "0" | ||
| 323 | #endif | ||
| 324 | "cxx_static_assert\n" | ||
| 325 | "CXX_FEATURE:" | ||
| 326 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 327 | "1" | ||
| 328 | #else | ||
| 329 | "0" | ||
| 330 | #endif | ||
| 331 | "cxx_strong_enums\n" | ||
| 332 | "CXX_FEATURE:" | ||
| 333 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus | ||
| 334 | "1" | ||
| 335 | #else | ||
| 336 | "0" | ||
| 337 | #endif | ||
| 338 | "cxx_template_template_parameters\n" | ||
| 339 | "CXX_FEATURE:" | ||
| 340 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L | ||
| 341 | "1" | ||
| 342 | #else | ||
| 343 | "0" | ||
| 344 | #endif | ||
| 345 | "cxx_thread_local\n" | ||
| 346 | "CXX_FEATURE:" | ||
| 347 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 348 | "1" | ||
| 349 | #else | ||
| 350 | "0" | ||
| 351 | #endif | ||
| 352 | "cxx_trailing_return_types\n" | ||
| 353 | "CXX_FEATURE:" | ||
| 354 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 355 | "1" | ||
| 356 | #else | ||
| 357 | "0" | ||
| 358 | #endif | ||
| 359 | "cxx_unicode_literals\n" | ||
| 360 | "CXX_FEATURE:" | ||
| 361 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 362 | "1" | ||
| 363 | #else | ||
| 364 | "0" | ||
| 365 | #endif | ||
| 366 | "cxx_uniform_initialization\n" | ||
| 367 | "CXX_FEATURE:" | ||
| 368 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 369 | "1" | ||
| 370 | #else | ||
| 371 | "0" | ||
| 372 | #endif | ||
| 373 | "cxx_unrestricted_unions\n" | ||
| 374 | "CXX_FEATURE:" | ||
| 375 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L | ||
| 376 | "1" | ||
| 377 | #else | ||
| 378 | "0" | ||
| 379 | #endif | ||
| 380 | "cxx_user_literals\n" | ||
| 381 | "CXX_FEATURE:" | ||
| 382 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L | ||
| 383 | "1" | ||
| 384 | #else | ||
| 385 | "0" | ||
| 386 | #endif | ||
| 387 | "cxx_variable_templates\n" | ||
| 388 | "CXX_FEATURE:" | ||
| 389 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 390 | "1" | ||
| 391 | #else | ||
| 392 | "0" | ||
| 393 | #endif | ||
| 394 | "cxx_variadic_macros\n" | ||
| 395 | "CXX_FEATURE:" | ||
| 396 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) | ||
| 397 | "1" | ||
| 398 | #else | ||
| 399 | "0" | ||
| 400 | #endif | ||
| 401 | "cxx_variadic_templates\n" | ||
| 402 | |||
| 403 | }; | ||
| 404 | |||
| 405 | int main(int argc, char** argv) { (void)argv; return features[argc]; } |
build/CMakeFiles/progress.marks
0 → 100644
| 1 | 2 |
This diff is collapsed.
Click to expand it.
| 1 | # The set of languages for which implicit dependencies are needed: | ||
| 2 | set(CMAKE_DEPENDS_LANGUAGES | ||
| 3 | "CXX" | ||
| 4 | ) | ||
| 5 | # The set of files for implicit dependencies of each language: | ||
| 6 | set(CMAKE_DEPENDS_CHECK_CXX | ||
| 7 | "/home/situ/qfs/sdk_project/speak_det_c/main.cpp" "/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/speakrecognize.dir/main.cpp.o" | ||
| 8 | ) | ||
| 9 | set(CMAKE_CXX_COMPILER_ID "GNU") | ||
| 10 | |||
| 11 | # The include file search paths: | ||
| 12 | set(CMAKE_CXX_TARGET_INCLUDE_PATH | ||
| 13 | "/home/situ/MNN/MNN1.1/MNN/include" | ||
| 14 | "../include" | ||
| 15 | "/usr/local/include/opencv4" | ||
| 16 | ) | ||
| 17 | |||
| 18 | # Targets to which this target links. | ||
| 19 | set(CMAKE_TARGET_LINKED_INFO_FILES | ||
| 20 | ) | ||
| 21 | |||
| 22 | # Fortran module output directory. | ||
| 23 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") |
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | # Delete rule output on recipe failure. | ||
| 5 | .DELETE_ON_ERROR: | ||
| 6 | |||
| 7 | |||
| 8 | #============================================================================= | ||
| 9 | # Special targets provided by cmake. | ||
| 10 | |||
| 11 | # Disable implicit rules so canonical targets will work. | ||
| 12 | .SUFFIXES: | ||
| 13 | |||
| 14 | |||
| 15 | # Remove some rules from gmake that .SUFFIXES does not remove. | ||
| 16 | SUFFIXES = | ||
| 17 | |||
| 18 | .SUFFIXES: .hpux_make_needs_suffix_list | ||
| 19 | |||
| 20 | |||
| 21 | # Suppress display of executed commands. | ||
| 22 | $(VERBOSE).SILENT: | ||
| 23 | |||
| 24 | |||
| 25 | # A target that is always out of date. | ||
| 26 | cmake_force: | ||
| 27 | |||
| 28 | .PHONY : cmake_force | ||
| 29 | |||
| 30 | #============================================================================= | ||
| 31 | # Set environment variables for the build. | ||
| 32 | |||
| 33 | # The shell in which to execute make rules. | ||
| 34 | SHELL = /bin/sh | ||
| 35 | |||
| 36 | # The CMake executable. | ||
| 37 | CMAKE_COMMAND = /usr/bin/cmake | ||
| 38 | |||
| 39 | # The command to remove a file. | ||
| 40 | RM = /usr/bin/cmake -E remove -f | ||
| 41 | |||
| 42 | # Escaping for special characters. | ||
| 43 | EQUALS = = | ||
| 44 | |||
| 45 | # The top-level source directory on which CMake was run. | ||
| 46 | CMAKE_SOURCE_DIR = /home/situ/qfs/sdk_project/speak_det_c | ||
| 47 | |||
| 48 | # The top-level build directory on which CMake was run. | ||
| 49 | CMAKE_BINARY_DIR = /home/situ/qfs/sdk_project/speak_det_c/build | ||
| 50 | |||
| 51 | # Include any dependencies generated for this target. | ||
| 52 | include CMakeFiles/speakrecognize.dir/depend.make | ||
| 53 | |||
| 54 | # Include the progress variables for this target. | ||
| 55 | include CMakeFiles/speakrecognize.dir/progress.make | ||
| 56 | |||
| 57 | # Include the compile flags for this target's objects. | ||
| 58 | include CMakeFiles/speakrecognize.dir/flags.make | ||
| 59 | |||
| 60 | CMakeFiles/speakrecognize.dir/main.cpp.o: CMakeFiles/speakrecognize.dir/flags.make | ||
| 61 | CMakeFiles/speakrecognize.dir/main.cpp.o: ../main.cpp | ||
| 62 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/speakrecognize.dir/main.cpp.o" | ||
| 63 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/speakrecognize.dir/main.cpp.o -c /home/situ/qfs/sdk_project/speak_det_c/main.cpp | ||
| 64 | |||
| 65 | CMakeFiles/speakrecognize.dir/main.cpp.i: cmake_force | ||
| 66 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/speakrecognize.dir/main.cpp.i" | ||
| 67 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/situ/qfs/sdk_project/speak_det_c/main.cpp > CMakeFiles/speakrecognize.dir/main.cpp.i | ||
| 68 | |||
| 69 | CMakeFiles/speakrecognize.dir/main.cpp.s: cmake_force | ||
| 70 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/speakrecognize.dir/main.cpp.s" | ||
| 71 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/situ/qfs/sdk_project/speak_det_c/main.cpp -o CMakeFiles/speakrecognize.dir/main.cpp.s | ||
| 72 | |||
| 73 | CMakeFiles/speakrecognize.dir/main.cpp.o.requires: | ||
| 74 | |||
| 75 | .PHONY : CMakeFiles/speakrecognize.dir/main.cpp.o.requires | ||
| 76 | |||
| 77 | CMakeFiles/speakrecognize.dir/main.cpp.o.provides: CMakeFiles/speakrecognize.dir/main.cpp.o.requires | ||
| 78 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/main.cpp.o.provides.build | ||
| 79 | .PHONY : CMakeFiles/speakrecognize.dir/main.cpp.o.provides | ||
| 80 | |||
| 81 | CMakeFiles/speakrecognize.dir/main.cpp.o.provides.build: CMakeFiles/speakrecognize.dir/main.cpp.o | ||
| 82 | |||
| 83 | |||
| 84 | # Object files for target speakrecognize | ||
| 85 | speakrecognize_OBJECTS = \ | ||
| 86 | "CMakeFiles/speakrecognize.dir/main.cpp.o" | ||
| 87 | |||
| 88 | # External object files for target speakrecognize | ||
| 89 | speakrecognize_EXTERNAL_OBJECTS = | ||
| 90 | |||
| 91 | speakrecognize: CMakeFiles/speakrecognize.dir/main.cpp.o | ||
| 92 | speakrecognize: CMakeFiles/speakrecognize.dir/build.make | ||
| 93 | speakrecognize: /usr/local/lib/libopencv_gapi.so.4.5.5 | ||
| 94 | speakrecognize: /usr/local/lib/libopencv_stitching.so.4.5.5 | ||
| 95 | speakrecognize: /usr/local/lib/libopencv_aruco.so.4.5.5 | ||
| 96 | speakrecognize: /usr/local/lib/libopencv_barcode.so.4.5.5 | ||
| 97 | speakrecognize: /usr/local/lib/libopencv_bgsegm.so.4.5.5 | ||
| 98 | speakrecognize: /usr/local/lib/libopencv_bioinspired.so.4.5.5 | ||
| 99 | speakrecognize: /usr/local/lib/libopencv_ccalib.so.4.5.5 | ||
| 100 | speakrecognize: /usr/local/lib/libopencv_cudabgsegm.so.4.5.5 | ||
| 101 | speakrecognize: /usr/local/lib/libopencv_cudafeatures2d.so.4.5.5 | ||
| 102 | speakrecognize: /usr/local/lib/libopencv_cudaobjdetect.so.4.5.5 | ||
| 103 | speakrecognize: /usr/local/lib/libopencv_cudastereo.so.4.5.5 | ||
| 104 | speakrecognize: /usr/local/lib/libopencv_dnn_objdetect.so.4.5.5 | ||
| 105 | speakrecognize: /usr/local/lib/libopencv_dnn_superres.so.4.5.5 | ||
| 106 | speakrecognize: /usr/local/lib/libopencv_dpm.so.4.5.5 | ||
| 107 | speakrecognize: /usr/local/lib/libopencv_face.so.4.5.5 | ||
| 108 | speakrecognize: /usr/local/lib/libopencv_freetype.so.4.5.5 | ||
| 109 | speakrecognize: /usr/local/lib/libopencv_fuzzy.so.4.5.5 | ||
| 110 | speakrecognize: /usr/local/lib/libopencv_hfs.so.4.5.5 | ||
| 111 | speakrecognize: /usr/local/lib/libopencv_img_hash.so.4.5.5 | ||
| 112 | speakrecognize: /usr/local/lib/libopencv_intensity_transform.so.4.5.5 | ||
| 113 | speakrecognize: /usr/local/lib/libopencv_line_descriptor.so.4.5.5 | ||
| 114 | speakrecognize: /usr/local/lib/libopencv_mcc.so.4.5.5 | ||
| 115 | speakrecognize: /usr/local/lib/libopencv_quality.so.4.5.5 | ||
| 116 | speakrecognize: /usr/local/lib/libopencv_rapid.so.4.5.5 | ||
| 117 | speakrecognize: /usr/local/lib/libopencv_reg.so.4.5.5 | ||
| 118 | speakrecognize: /usr/local/lib/libopencv_rgbd.so.4.5.5 | ||
| 119 | speakrecognize: /usr/local/lib/libopencv_saliency.so.4.5.5 | ||
| 120 | speakrecognize: /usr/local/lib/libopencv_stereo.so.4.5.5 | ||
| 121 | speakrecognize: /usr/local/lib/libopencv_structured_light.so.4.5.5 | ||
| 122 | speakrecognize: /usr/local/lib/libopencv_superres.so.4.5.5 | ||
| 123 | speakrecognize: /usr/local/lib/libopencv_surface_matching.so.4.5.5 | ||
| 124 | speakrecognize: /usr/local/lib/libopencv_tracking.so.4.5.5 | ||
| 125 | speakrecognize: /usr/local/lib/libopencv_videostab.so.4.5.5 | ||
| 126 | speakrecognize: /usr/local/lib/libopencv_wechat_qrcode.so.4.5.5 | ||
| 127 | speakrecognize: /usr/local/lib/libopencv_xfeatures2d.so.4.5.5 | ||
| 128 | speakrecognize: /usr/local/lib/libopencv_xobjdetect.so.4.5.5 | ||
| 129 | speakrecognize: /usr/local/lib/libopencv_xphoto.so.4.5.5 | ||
| 130 | speakrecognize: /usr/local/lib/libopencv_shape.so.4.5.5 | ||
| 131 | speakrecognize: /usr/local/lib/libopencv_highgui.so.4.5.5 | ||
| 132 | speakrecognize: /usr/local/lib/libopencv_datasets.so.4.5.5 | ||
| 133 | speakrecognize: /usr/local/lib/libopencv_plot.so.4.5.5 | ||
| 134 | speakrecognize: /usr/local/lib/libopencv_text.so.4.5.5 | ||
| 135 | speakrecognize: /usr/local/lib/libopencv_ml.so.4.5.5 | ||
| 136 | speakrecognize: /usr/local/lib/libopencv_phase_unwrapping.so.4.5.5 | ||
| 137 | speakrecognize: /usr/local/lib/libopencv_cudacodec.so.4.5.5 | ||
| 138 | speakrecognize: /usr/local/lib/libopencv_videoio.so.4.5.5 | ||
| 139 | speakrecognize: /usr/local/lib/libopencv_cudaoptflow.so.4.5.5 | ||
| 140 | speakrecognize: /usr/local/lib/libopencv_cudalegacy.so.4.5.5 | ||
| 141 | speakrecognize: /usr/local/lib/libopencv_cudawarping.so.4.5.5 | ||
| 142 | speakrecognize: /usr/local/lib/libopencv_optflow.so.4.5.5 | ||
| 143 | speakrecognize: /usr/local/lib/libopencv_ximgproc.so.4.5.5 | ||
| 144 | speakrecognize: /usr/local/lib/libopencv_video.so.4.5.5 | ||
| 145 | speakrecognize: /usr/local/lib/libopencv_imgcodecs.so.4.5.5 | ||
| 146 | speakrecognize: /usr/local/lib/libopencv_objdetect.so.4.5.5 | ||
| 147 | speakrecognize: /usr/local/lib/libopencv_calib3d.so.4.5.5 | ||
| 148 | speakrecognize: /usr/local/lib/libopencv_dnn.so.4.5.5 | ||
| 149 | speakrecognize: /usr/local/lib/libopencv_features2d.so.4.5.5 | ||
| 150 | speakrecognize: /usr/local/lib/libopencv_flann.so.4.5.5 | ||
| 151 | speakrecognize: /usr/local/lib/libopencv_photo.so.4.5.5 | ||
| 152 | speakrecognize: /usr/local/lib/libopencv_cudaimgproc.so.4.5.5 | ||
| 153 | speakrecognize: /usr/local/lib/libopencv_cudafilters.so.4.5.5 | ||
| 154 | speakrecognize: /usr/local/lib/libopencv_imgproc.so.4.5.5 | ||
| 155 | speakrecognize: /usr/local/lib/libopencv_cudaarithm.so.4.5.5 | ||
| 156 | speakrecognize: /usr/local/lib/libopencv_core.so.4.5.5 | ||
| 157 | speakrecognize: /usr/local/lib/libopencv_cudev.so.4.5.5 | ||
| 158 | speakrecognize: CMakeFiles/speakrecognize.dir/link.txt | ||
| 159 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable speakrecognize" | ||
| 160 | $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/speakrecognize.dir/link.txt --verbose=$(VERBOSE) | ||
| 161 | |||
| 162 | # Rule to build all files generated by this target. | ||
| 163 | CMakeFiles/speakrecognize.dir/build: speakrecognize | ||
| 164 | |||
| 165 | .PHONY : CMakeFiles/speakrecognize.dir/build | ||
| 166 | |||
| 167 | CMakeFiles/speakrecognize.dir/requires: CMakeFiles/speakrecognize.dir/main.cpp.o.requires | ||
| 168 | |||
| 169 | .PHONY : CMakeFiles/speakrecognize.dir/requires | ||
| 170 | |||
| 171 | CMakeFiles/speakrecognize.dir/clean: | ||
| 172 | $(CMAKE_COMMAND) -P CMakeFiles/speakrecognize.dir/cmake_clean.cmake | ||
| 173 | .PHONY : CMakeFiles/speakrecognize.dir/clean | ||
| 174 | |||
| 175 | CMakeFiles/speakrecognize.dir/depend: | ||
| 176 | cd /home/situ/qfs/sdk_project/speak_det_c/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/situ/qfs/sdk_project/speak_det_c /home/situ/qfs/sdk_project/speak_det_c /home/situ/qfs/sdk_project/speak_det_c/build /home/situ/qfs/sdk_project/speak_det_c/build /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/speakrecognize.dir/DependInfo.cmake --color=$(COLOR) | ||
| 177 | .PHONY : CMakeFiles/speakrecognize.dir/depend | ||
| 178 |
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | CMakeFiles/speakrecognize.dir/main.cpp.o | ||
| 5 | ../include/faceLandmarks.h | ||
| 6 | ../include/retinaface.h | ||
| 7 | ../include/speak_detector.h | ||
| 8 | ../include/speakcls.h | ||
| 9 | /home/situ/MNN/MNN1.1/MNN/include/MNN/ErrorCode.hpp | ||
| 10 | /home/situ/MNN/MNN1.1/MNN/include/MNN/HalideRuntime.h | ||
| 11 | /home/situ/MNN/MNN1.1/MNN/include/MNN/ImageProcess.hpp | ||
| 12 | /home/situ/MNN/MNN1.1/MNN/include/MNN/Interpreter.hpp | ||
| 13 | /home/situ/MNN/MNN1.1/MNN/include/MNN/MNNDefine.h | ||
| 14 | /home/situ/MNN/MNN1.1/MNN/include/MNN/MNNForwardType.h | ||
| 15 | /home/situ/MNN/MNN1.1/MNN/include/MNN/Matrix.h | ||
| 16 | /home/situ/MNN/MNN1.1/MNN/include/MNN/Rect.h | ||
| 17 | /home/situ/MNN/MNN1.1/MNN/include/MNN/Tensor.hpp | ||
| 18 | /home/situ/qfs/sdk_project/speak_det_c/main.cpp | ||
| 19 | /usr/local/include/opencv4/opencv2/./imgproc/segmentation.hpp | ||
| 20 | /usr/local/include/opencv4/opencv2/calib3d.hpp | ||
| 21 | /usr/local/include/opencv4/opencv2/core.hpp | ||
| 22 | /usr/local/include/opencv4/opencv2/core/affine.hpp | ||
| 23 | /usr/local/include/opencv4/opencv2/core/async.hpp | ||
| 24 | /usr/local/include/opencv4/opencv2/core/base.hpp | ||
| 25 | /usr/local/include/opencv4/opencv2/core/bufferpool.hpp | ||
| 26 | /usr/local/include/opencv4/opencv2/core/check.hpp | ||
| 27 | /usr/local/include/opencv4/opencv2/core/cuda.hpp | ||
| 28 | /usr/local/include/opencv4/opencv2/core/cuda.inl.hpp | ||
| 29 | /usr/local/include/opencv4/opencv2/core/cuda_types.hpp | ||
| 30 | /usr/local/include/opencv4/opencv2/core/cv_cpu_dispatch.h | ||
| 31 | /usr/local/include/opencv4/opencv2/core/cv_cpu_helper.h | ||
| 32 | /usr/local/include/opencv4/opencv2/core/cvdef.h | ||
| 33 | /usr/local/include/opencv4/opencv2/core/cvstd.hpp | ||
| 34 | /usr/local/include/opencv4/opencv2/core/cvstd.inl.hpp | ||
| 35 | /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp | ||
| 36 | /usr/local/include/opencv4/opencv2/core/fast_math.hpp | ||
| 37 | /usr/local/include/opencv4/opencv2/core/hal/interface.h | ||
| 38 | /usr/local/include/opencv4/opencv2/core/hal/msa_macros.h | ||
| 39 | /usr/local/include/opencv4/opencv2/core/mat.hpp | ||
| 40 | /usr/local/include/opencv4/opencv2/core/mat.inl.hpp | ||
| 41 | /usr/local/include/opencv4/opencv2/core/matx.hpp | ||
| 42 | /usr/local/include/opencv4/opencv2/core/neon_utils.hpp | ||
| 43 | /usr/local/include/opencv4/opencv2/core/operations.hpp | ||
| 44 | /usr/local/include/opencv4/opencv2/core/optim.hpp | ||
| 45 | /usr/local/include/opencv4/opencv2/core/ovx.hpp | ||
| 46 | /usr/local/include/opencv4/opencv2/core/persistence.hpp | ||
| 47 | /usr/local/include/opencv4/opencv2/core/saturate.hpp | ||
| 48 | /usr/local/include/opencv4/opencv2/core/traits.hpp | ||
| 49 | /usr/local/include/opencv4/opencv2/core/types.hpp | ||
| 50 | /usr/local/include/opencv4/opencv2/core/utility.hpp | ||
| 51 | /usr/local/include/opencv4/opencv2/core/utils/instrumentation.hpp | ||
| 52 | /usr/local/include/opencv4/opencv2/core/utils/tls.hpp | ||
| 53 | /usr/local/include/opencv4/opencv2/core/version.hpp | ||
| 54 | /usr/local/include/opencv4/opencv2/core/vsx_utils.hpp | ||
| 55 | /usr/local/include/opencv4/opencv2/dnn.hpp | ||
| 56 | /usr/local/include/opencv4/opencv2/dnn/dict.hpp | ||
| 57 | /usr/local/include/opencv4/opencv2/dnn/dnn.hpp | ||
| 58 | /usr/local/include/opencv4/opencv2/dnn/dnn.inl.hpp | ||
| 59 | /usr/local/include/opencv4/opencv2/dnn/layer.hpp | ||
| 60 | /usr/local/include/opencv4/opencv2/dnn/utils/inference_engine.hpp | ||
| 61 | /usr/local/include/opencv4/opencv2/dnn/version.hpp | ||
| 62 | /usr/local/include/opencv4/opencv2/features2d.hpp | ||
| 63 | /usr/local/include/opencv4/opencv2/flann.hpp | ||
| 64 | /usr/local/include/opencv4/opencv2/flann/all_indices.h | ||
| 65 | /usr/local/include/opencv4/opencv2/flann/allocator.h | ||
| 66 | /usr/local/include/opencv4/opencv2/flann/any.h | ||
| 67 | /usr/local/include/opencv4/opencv2/flann/autotuned_index.h | ||
| 68 | /usr/local/include/opencv4/opencv2/flann/composite_index.h | ||
| 69 | /usr/local/include/opencv4/opencv2/flann/config.h | ||
| 70 | /usr/local/include/opencv4/opencv2/flann/defines.h | ||
| 71 | /usr/local/include/opencv4/opencv2/flann/dist.h | ||
| 72 | /usr/local/include/opencv4/opencv2/flann/dynamic_bitset.h | ||
| 73 | /usr/local/include/opencv4/opencv2/flann/flann_base.hpp | ||
| 74 | /usr/local/include/opencv4/opencv2/flann/general.h | ||
| 75 | /usr/local/include/opencv4/opencv2/flann/ground_truth.h | ||
| 76 | /usr/local/include/opencv4/opencv2/flann/heap.h | ||
| 77 | /usr/local/include/opencv4/opencv2/flann/hierarchical_clustering_index.h | ||
| 78 | /usr/local/include/opencv4/opencv2/flann/index_testing.h | ||
| 79 | /usr/local/include/opencv4/opencv2/flann/kdtree_index.h | ||
| 80 | /usr/local/include/opencv4/opencv2/flann/kdtree_single_index.h | ||
| 81 | /usr/local/include/opencv4/opencv2/flann/kmeans_index.h | ||
| 82 | /usr/local/include/opencv4/opencv2/flann/linear_index.h | ||
| 83 | /usr/local/include/opencv4/opencv2/flann/logger.h | ||
| 84 | /usr/local/include/opencv4/opencv2/flann/lsh_index.h | ||
| 85 | /usr/local/include/opencv4/opencv2/flann/lsh_table.h | ||
| 86 | /usr/local/include/opencv4/opencv2/flann/matrix.h | ||
| 87 | /usr/local/include/opencv4/opencv2/flann/miniflann.hpp | ||
| 88 | /usr/local/include/opencv4/opencv2/flann/nn_index.h | ||
| 89 | /usr/local/include/opencv4/opencv2/flann/params.h | ||
| 90 | /usr/local/include/opencv4/opencv2/flann/random.h | ||
| 91 | /usr/local/include/opencv4/opencv2/flann/result_set.h | ||
| 92 | /usr/local/include/opencv4/opencv2/flann/sampling.h | ||
| 93 | /usr/local/include/opencv4/opencv2/flann/saving.h | ||
| 94 | /usr/local/include/opencv4/opencv2/flann/timer.h | ||
| 95 | /usr/local/include/opencv4/opencv2/highgui.hpp | ||
| 96 | /usr/local/include/opencv4/opencv2/imgcodecs.hpp | ||
| 97 | /usr/local/include/opencv4/opencv2/imgproc.hpp | ||
| 98 | /usr/local/include/opencv4/opencv2/ml.hpp | ||
| 99 | /usr/local/include/opencv4/opencv2/ml/ml.inl.hpp | ||
| 100 | /usr/local/include/opencv4/opencv2/objdetect.hpp | ||
| 101 | /usr/local/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp | ||
| 102 | /usr/local/include/opencv4/opencv2/objdetect/face.hpp | ||
| 103 | /usr/local/include/opencv4/opencv2/opencv.hpp | ||
| 104 | /usr/local/include/opencv4/opencv2/opencv_modules.hpp | ||
| 105 | /usr/local/include/opencv4/opencv2/photo.hpp | ||
| 106 | /usr/local/include/opencv4/opencv2/stitching.hpp | ||
| 107 | /usr/local/include/opencv4/opencv2/stitching/detail/blenders.hpp | ||
| 108 | /usr/local/include/opencv4/opencv2/stitching/detail/camera.hpp | ||
| 109 | /usr/local/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp | ||
| 110 | /usr/local/include/opencv4/opencv2/stitching/detail/matchers.hpp | ||
| 111 | /usr/local/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp | ||
| 112 | /usr/local/include/opencv4/opencv2/stitching/detail/seam_finders.hpp | ||
| 113 | /usr/local/include/opencv4/opencv2/stitching/detail/util.hpp | ||
| 114 | /usr/local/include/opencv4/opencv2/stitching/detail/util_inl.hpp | ||
| 115 | /usr/local/include/opencv4/opencv2/stitching/detail/warpers.hpp | ||
| 116 | /usr/local/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp | ||
| 117 | /usr/local/include/opencv4/opencv2/stitching/warpers.hpp | ||
| 118 | /usr/local/include/opencv4/opencv2/video.hpp | ||
| 119 | /usr/local/include/opencv4/opencv2/video/background_segm.hpp | ||
| 120 | /usr/local/include/opencv4/opencv2/video/tracking.hpp | ||
| 121 | /usr/local/include/opencv4/opencv2/videoio.hpp |
This diff is collapsed.
Click to expand it.
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | # compile CXX with /usr/bin/c++ | ||
| 5 | CXX_FLAGS = -std=gnu++11 | ||
| 6 | |||
| 7 | CXX_DEFINES = | ||
| 8 | |||
| 9 | CXX_INCLUDES = -I/home/situ/MNN/MNN1.1/MNN/include -I/home/situ/qfs/sdk_project/speak_det_c/include -isystem /usr/local/include/opencv4 | ||
| 10 |
build/CMakeFiles/speakrecognize.dir/link.txt
0 → 100644
| 1 | /usr/bin/c++ CMakeFiles/speakrecognize.dir/main.cpp.o -o speakrecognize -L/usr/local/cuda-10.1/lib64 -L/home/situ/MNN/MNN1.1/MNN/build -L/home/situ/qfs/sdk_project/speak_det_c/lib -Wl,-rpath,/usr/local/cuda-10.1/lib64:/home/situ/MNN/MNN1.1/MNN/build:/home/situ/qfs/sdk_project/speak_det_c/lib:/usr/local/lib -lspeakrecognize -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
build/Makefile
0 → 100644
| 1 | # CMAKE generated file: DO NOT EDIT! | ||
| 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 | ||
| 3 | |||
| 4 | # Default target executed when no arguments are given to make. | ||
| 5 | default_target: all | ||
| 6 | |||
| 7 | .PHONY : default_target | ||
| 8 | |||
| 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. | ||
| 10 | .NOTPARALLEL: | ||
| 11 | |||
| 12 | |||
| 13 | #============================================================================= | ||
| 14 | # Special targets provided by cmake. | ||
| 15 | |||
| 16 | # Disable implicit rules so canonical targets will work. | ||
| 17 | .SUFFIXES: | ||
| 18 | |||
| 19 | |||
| 20 | # Remove some rules from gmake that .SUFFIXES does not remove. | ||
| 21 | SUFFIXES = | ||
| 22 | |||
| 23 | .SUFFIXES: .hpux_make_needs_suffix_list | ||
| 24 | |||
| 25 | |||
| 26 | # Suppress display of executed commands. | ||
| 27 | $(VERBOSE).SILENT: | ||
| 28 | |||
| 29 | |||
| 30 | # A target that is always out of date. | ||
| 31 | cmake_force: | ||
| 32 | |||
| 33 | .PHONY : cmake_force | ||
| 34 | |||
| 35 | #============================================================================= | ||
| 36 | # Set environment variables for the build. | ||
| 37 | |||
| 38 | # The shell in which to execute make rules. | ||
| 39 | SHELL = /bin/sh | ||
| 40 | |||
| 41 | # The CMake executable. | ||
| 42 | CMAKE_COMMAND = /usr/bin/cmake | ||
| 43 | |||
| 44 | # The command to remove a file. | ||
| 45 | RM = /usr/bin/cmake -E remove -f | ||
| 46 | |||
| 47 | # Escaping for special characters. | ||
| 48 | EQUALS = = | ||
| 49 | |||
| 50 | # The top-level source directory on which CMake was run. | ||
| 51 | CMAKE_SOURCE_DIR = /home/situ/qfs/sdk_project/speak_det_c | ||
| 52 | |||
| 53 | # The top-level build directory on which CMake was run. | ||
| 54 | CMAKE_BINARY_DIR = /home/situ/qfs/sdk_project/speak_det_c/build | ||
| 55 | |||
| 56 | #============================================================================= | ||
| 57 | # Targets provided globally by CMake. | ||
| 58 | |||
| 59 | # Special rule for the target rebuild_cache | ||
| 60 | rebuild_cache: | ||
| 61 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." | ||
| 62 | /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
| 63 | .PHONY : rebuild_cache | ||
| 64 | |||
| 65 | # Special rule for the target rebuild_cache | ||
| 66 | rebuild_cache/fast: rebuild_cache | ||
| 67 | |||
| 68 | .PHONY : rebuild_cache/fast | ||
| 69 | |||
| 70 | # Special rule for the target edit_cache | ||
| 71 | edit_cache: | ||
| 72 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." | ||
| 73 | /usr/bin/cmake-gui -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
| 74 | .PHONY : edit_cache | ||
| 75 | |||
| 76 | # Special rule for the target edit_cache | ||
| 77 | edit_cache/fast: edit_cache | ||
| 78 | |||
| 79 | .PHONY : edit_cache/fast | ||
| 80 | |||
| 81 | # The main all target | ||
| 82 | all: cmake_check_build_system | ||
| 83 | $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles/progress.marks | ||
| 84 | $(MAKE) -f CMakeFiles/Makefile2 all | ||
| 85 | $(CMAKE_COMMAND) -E cmake_progress_start /home/situ/qfs/sdk_project/speak_det_c/build/CMakeFiles 0 | ||
| 86 | .PHONY : all | ||
| 87 | |||
| 88 | # The main clean target | ||
| 89 | clean: | ||
| 90 | $(MAKE) -f CMakeFiles/Makefile2 clean | ||
| 91 | .PHONY : clean | ||
| 92 | |||
| 93 | # The main clean target | ||
| 94 | clean/fast: clean | ||
| 95 | |||
| 96 | .PHONY : clean/fast | ||
| 97 | |||
| 98 | # Prepare targets for installation. | ||
| 99 | preinstall: all | ||
| 100 | $(MAKE) -f CMakeFiles/Makefile2 preinstall | ||
| 101 | .PHONY : preinstall | ||
| 102 | |||
| 103 | # Prepare targets for installation. | ||
| 104 | preinstall/fast: | ||
| 105 | $(MAKE) -f CMakeFiles/Makefile2 preinstall | ||
| 106 | .PHONY : preinstall/fast | ||
| 107 | |||
| 108 | # clear depends | ||
| 109 | depend: | ||
| 110 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 | ||
| 111 | .PHONY : depend | ||
| 112 | |||
| 113 | #============================================================================= | ||
| 114 | # Target rules for targets named speakrecognize | ||
| 115 | |||
| 116 | # Build rule for target. | ||
| 117 | speakrecognize: cmake_check_build_system | ||
| 118 | $(MAKE) -f CMakeFiles/Makefile2 speakrecognize | ||
| 119 | .PHONY : speakrecognize | ||
| 120 | |||
| 121 | # fast build rule for target. | ||
| 122 | speakrecognize/fast: | ||
| 123 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/build | ||
| 124 | .PHONY : speakrecognize/fast | ||
| 125 | |||
| 126 | main.o: main.cpp.o | ||
| 127 | |||
| 128 | .PHONY : main.o | ||
| 129 | |||
| 130 | # target to build an object file | ||
| 131 | main.cpp.o: | ||
| 132 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/main.cpp.o | ||
| 133 | .PHONY : main.cpp.o | ||
| 134 | |||
| 135 | main.i: main.cpp.i | ||
| 136 | |||
| 137 | .PHONY : main.i | ||
| 138 | |||
| 139 | # target to preprocess a source file | ||
| 140 | main.cpp.i: | ||
| 141 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/main.cpp.i | ||
| 142 | .PHONY : main.cpp.i | ||
| 143 | |||
| 144 | main.s: main.cpp.s | ||
| 145 | |||
| 146 | .PHONY : main.s | ||
| 147 | |||
| 148 | # target to generate assembly for a file | ||
| 149 | main.cpp.s: | ||
| 150 | $(MAKE) -f CMakeFiles/speakrecognize.dir/build.make CMakeFiles/speakrecognize.dir/main.cpp.s | ||
| 151 | .PHONY : main.cpp.s | ||
| 152 | |||
| 153 | # Help Target | ||
| 154 | help: | ||
| 155 | @echo "The following are some of the valid targets for this Makefile:" | ||
| 156 | @echo "... all (the default if no target is provided)" | ||
| 157 | @echo "... clean" | ||
| 158 | @echo "... depend" | ||
| 159 | @echo "... rebuild_cache" | ||
| 160 | @echo "... speakrecognize" | ||
| 161 | @echo "... edit_cache" | ||
| 162 | @echo "... main.o" | ||
| 163 | @echo "... main.i" | ||
| 164 | @echo "... main.s" | ||
| 165 | .PHONY : help | ||
| 166 | |||
| 167 | |||
| 168 | |||
| 169 | #============================================================================= | ||
| 170 | # Special targets to cleanup operation of make. | ||
| 171 | |||
| 172 | # Special rule to run CMake to check the build system integrity. | ||
| 173 | # No rule that depends on this can have commands that come from listfiles | ||
| 174 | # because they might be regenerated. | ||
| 175 | cmake_check_build_system: | ||
| 176 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | ||
| 177 | .PHONY : cmake_check_build_system | ||
| 178 |
build/cmake_install.cmake
0 → 100644
| 1 | # Install script for directory: /home/situ/qfs/sdk_project/speak_det_c | ||
| 2 | |||
| 3 | # Set the install prefix | ||
| 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) | ||
| 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") | ||
| 6 | endif() | ||
| 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") | ||
| 8 | |||
| 9 | # Set the install configuration name. | ||
| 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) | ||
| 11 | if(BUILD_TYPE) | ||
| 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" | ||
| 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") | ||
| 14 | else() | ||
| 15 | set(CMAKE_INSTALL_CONFIG_NAME "") | ||
| 16 | endif() | ||
| 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") | ||
| 18 | endif() | ||
| 19 | |||
| 20 | # Set the component getting installed. | ||
| 21 | if(NOT CMAKE_INSTALL_COMPONENT) | ||
| 22 | if(COMPONENT) | ||
| 23 | message(STATUS "Install component: \"${COMPONENT}\"") | ||
| 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") | ||
| 25 | else() | ||
| 26 | set(CMAKE_INSTALL_COMPONENT) | ||
| 27 | endif() | ||
| 28 | endif() | ||
| 29 | |||
| 30 | # Install shared libraries without execute permission? | ||
| 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) | ||
| 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") | ||
| 33 | endif() | ||
| 34 | |||
| 35 | # Is this installation the result of a crosscompile? | ||
| 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) | ||
| 37 | set(CMAKE_CROSSCOMPILING "FALSE") | ||
| 38 | endif() | ||
| 39 | |||
| 40 | if(CMAKE_INSTALL_COMPONENT) | ||
| 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") | ||
| 42 | else() | ||
| 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") | ||
| 44 | endif() | ||
| 45 | |||
| 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT | ||
| 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") | ||
| 48 | file(WRITE "/home/situ/qfs/sdk_project/speak_det_c/build/${CMAKE_INSTALL_MANIFEST}" | ||
| 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") |
build/speakrecognize
0 → 100755
No preview for this file type
eval.cpp
0 → 100644
This diff is collapsed.
Click to expand it.
faceLandmarks.cpp
0 → 100644
| 1 | #include "faceLandmarks.h" | ||
| 2 | #include <stdio.h> | ||
| 3 | |||
| 4 | vector<vector<float>> FaceLandmarks::detect_landmarks(string image_path){ | ||
| 5 | cv::Mat image=cv::imread(image_path); | ||
| 6 | float w_r=image.cols/input_size[0]; | ||
| 7 | float h_r=image.rows/input_size[1]; | ||
| 8 | |||
| 9 | cv::Mat blob = cv::dnn::blobFromImage(image,1.0,Size(input_size[0],input_size[1])); // 由图片加载数据 这里还可以进行缩放、归一化等预处理 | ||
| 10 | net.setInput(blob); // 设置模型输入 | ||
| 11 | std::vector<cv::Mat> netOutputImg; | ||
| 12 | net.forward(netOutputImg,net.getUnconnectedOutLayersNames()); // 推理出结果 | ||
| 13 | cv::Mat predict_landmarks = netOutputImg[0].reshape(1,106); | ||
| 14 | vector<vector<float>> result_landmarks; | ||
| 15 | for(int i=0;i<predict_landmarks.rows;++i){ | ||
| 16 | // cout<<predict_landmarks.at<float>(i,0)<<" "<<predict_landmarks.at<float>(i,1)<<endl; | ||
| 17 | vector<float> tmp_landm={predict_landmarks.at<float>(i,0)*w_r,predict_landmarks.at<float>(i,1)*h_r}; | ||
| 18 | result_landmarks.push_back(tmp_landm); | ||
| 19 | } | ||
| 20 | return result_landmarks; | ||
| 21 | } | ||
| 22 | vector<vector<float>> FaceLandmarks::detect_image_landmarks(cv::Mat image){ | ||
| 23 | float w_r=image.cols/input_size[0]; | ||
| 24 | float h_r=image.rows/input_size[1]; | ||
| 25 | |||
| 26 | cv::Mat blob = cv::dnn::blobFromImage(image,1.0,Size(input_size[0],input_size[1])); // 由图片加载数据 这里还可以进行缩放、归一化等预处理 | ||
| 27 | net.setInput(blob); // 设置模型输入 | ||
| 28 | std::vector<cv::Mat> netOutputImg; | ||
| 29 | net.forward(netOutputImg,net.getUnconnectedOutLayersNames()); // 推理出结果 | ||
| 30 | cv::Mat predict_landmarks = netOutputImg[0].reshape(1,106); | ||
| 31 | vector<vector<float>> result_landmarks; | ||
| 32 | for(int i=0;i<predict_landmarks.rows;++i){ | ||
| 33 | // cout<<predict_landmarks.at<float>(i,0)<<" "<<predict_landmarks.at<float>(i,1)<<endl; | ||
| 34 | vector<float> tmp_landm={predict_landmarks.at<float>(i,0)*w_r,predict_landmarks.at<float>(i,1)*h_r}; | ||
| 35 | result_landmarks.push_back(tmp_landm); | ||
| 36 | } | ||
| 37 | return result_landmarks; | ||
| 38 | } | ||
| 39 | |||
| 40 |
include/faceLandmarks.h
0 → 100644
| 1 | #ifndef FACELANDMARKS_H | ||
| 2 | #define FACELANDMARKS_H | ||
| 3 | |||
| 4 | #include <opencv2/opencv.hpp> | ||
| 5 | |||
| 6 | using namespace std; | ||
| 7 | using namespace cv; | ||
| 8 | |||
| 9 | class FaceLandmarks{ | ||
| 10 | private: | ||
| 11 | vector<float> input_size={112,112}; | ||
| 12 | cv::dnn::Net net; | ||
| 13 | |||
| 14 | |||
| 15 | public: | ||
| 16 | FaceLandmarks(){}; | ||
| 17 | FaceLandmarks(string model_path){ | ||
| 18 | net=cv::dnn::readNetFromONNX(model_path); | ||
| 19 | } | ||
| 20 | vector<vector<float>> detect_landmarks(string image_path); | ||
| 21 | vector<vector<float>> detect_image_landmarks(Mat image); | ||
| 22 | |||
| 23 | }; | ||
| 24 | |||
| 25 | |||
| 26 | #endif | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
include/retinaface.h
0 → 100644
| 1 | #ifndef RETINAFACE_H | ||
| 2 | #define RETINAFACE_H | ||
| 3 | #include<opencv2/opencv.hpp> | ||
| 4 | |||
| 5 | using namespace std; | ||
| 6 | using namespace cv; | ||
| 7 | struct Bbox{ | ||
| 8 | float xmin; | ||
| 9 | float ymin; | ||
| 10 | float xmax; | ||
| 11 | float ymax; | ||
| 12 | float score; | ||
| 13 | float x1; | ||
| 14 | float y1; | ||
| 15 | float x2; | ||
| 16 | float y2; | ||
| 17 | float x3; | ||
| 18 | float y3; | ||
| 19 | float x4; | ||
| 20 | float y4; | ||
| 21 | float x5; | ||
| 22 | float y5; | ||
| 23 | }; | ||
| 24 | class RetinaFace{ | ||
| 25 | |||
| 26 | private: | ||
| 27 | bool use_gpu=true; | ||
| 28 | vector<float> input_size={640,640}; | ||
| 29 | vector<float> variances={0.1,0.2}; | ||
| 30 | vector<float> mean_data={104,117,128}; | ||
| 31 | float confidence_threshold = 0.8; | ||
| 32 | float keep_top_k = 100; | ||
| 33 | float vis_threshold = 0.2; | ||
| 34 | float nms_threshold = 0.4; | ||
| 35 | float resize_scale = 1.0; | ||
| 36 | bool is_bbox_process=true; | ||
| 37 | |||
| 38 | cv::dnn::Net net; | ||
| 39 | vector<vector<float>> anchors; | ||
| 40 | |||
| 41 | private: | ||
| 42 | // 生成anchors | ||
| 43 | vector<vector<float>> priorBox(vector<float> image_size); | ||
| 44 | // 解析bounding box landmarks 包含置信度 | ||
| 45 | vector<Bbox> decode(Mat loc,Mat score,Mat pre,vector<vector<float>> priors,vector<float> variances); | ||
| 46 | // 解析landmarks | ||
| 47 | // vector<vector<float>> decode_landm(vector<vector<float>> pre,vector<vector<float>> priors,vector<float> variances); | ||
| 48 | //NMS | ||
| 49 | void nms_cpu(std::vector<Bbox> &bboxes, float threshold); | ||
| 50 | // Mat转vector | ||
| 51 | vector<vector<float>> mat2vector(Mat mat); | ||
| 52 | // 根据阈值筛选 | ||
| 53 | vector<Bbox> select_score(vector<Bbox> bboxes,float threshold,float w_r,float h_r); | ||
| 54 | // vector转Bbox | ||
| 55 | // vector<Bbox> vec2Bbox(vector<vector<float>> bbox,float w_r,float h_r); | ||
| 56 | // 数据后处理 | ||
| 57 | vector<Bbox> bbox_process(bool is_bbox_process,vector<Bbox> bboxes,float frame_w,float frame_h); | ||
| 58 | |||
| 59 | public: | ||
| 60 | RetinaFace(){}; | ||
| 61 | RetinaFace(string model_path){ | ||
| 62 | net = cv::dnn::readNetFromONNX(model_path); | ||
| 63 | if(use_gpu){ | ||
| 64 | net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); | ||
| 65 | net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); | ||
| 66 | } | ||
| 67 | anchors=priorBox(input_size); | ||
| 68 | } | ||
| 69 | |||
| 70 | // 推理 | ||
| 71 | vector<Bbox> detect(string image_path); | ||
| 72 | vector<Bbox> detect_image(Mat image); | ||
| 73 | }; | ||
| 74 | #endif | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
include/speak_detector.h
0 → 100644
| 1 | #ifndef SPEAKCLS_DETECTOR | ||
| 2 | #define SPEALCLS_DETECTOR | ||
| 3 | #include "speakcls.h" | ||
| 4 | #include "retinaface.h" | ||
| 5 | #include "faceLandmarks.h" | ||
| 6 | |||
| 7 | class SpeakDetector{ | ||
| 8 | private: | ||
| 9 | RetinaFace face_det; | ||
| 10 | FaceLandmarks landm_det; | ||
| 11 | SpeakCls speak_cls; | ||
| 12 | |||
| 13 | |||
| 14 | public: | ||
| 15 | SpeakDetector(){}; | ||
| 16 | void init_model(string face_det_model,string landm_det_model,string speak_cls_model); | ||
| 17 | float iou_compute(Bbox b1, Bbox b2); | ||
| 18 | vector<vector<cv::Mat>> mouth_process(vector<vector<vector<vector<float>>>> batch_landmarks, vector<cv::Mat> batch_images); | ||
| 19 | void image_reader(string file_path,int segment_num,vector<Mat> &bgr_frames,vector<vector<int>> &indices); | ||
| 20 | |||
| 21 | |||
| 22 | void speak_recognize(string image_path); | ||
| 23 | |||
| 24 | }; | ||
| 25 | |||
| 26 | |||
| 27 | #endif | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
include/speakcls.h
0 → 100644
| 1 | #ifndef SPEAKCLS_H | ||
| 2 | #define SPEALCLS_H | ||
| 3 | #include<opencv2/opencv.hpp> | ||
| 4 | #include<MNN/Interpreter.hpp> | ||
| 5 | #include<MNN/ImageProcess.hpp> | ||
| 6 | #include<typeinfo> | ||
| 7 | using namespace std; | ||
| 8 | using namespace cv; | ||
| 9 | using namespace MNN; | ||
| 10 | class SpeakCls{ | ||
| 11 | private: | ||
| 12 | std::shared_ptr<MNN::Interpreter> net; | ||
| 13 | ScheduleConfig config; | ||
| 14 | public: | ||
| 15 | SpeakCls(){}; | ||
| 16 | SpeakCls(string model_path){ | ||
| 17 | |||
| 18 | //"/home/situ/qfs/sdk_project/mnn_demo/cls_speak_v0.2.2.mnn" | ||
| 19 | net= std::shared_ptr<MNN::Interpreter>(MNN::Interpreter::createFromFile("/home/situ/qfs/sdk_project/mnn_demo/cls_speak_v0.2.2.mnn"));//创建解释器 | ||
| 20 | config.numThread = 8; | ||
| 21 | config.type = MNN_FORWARD_CPU; | ||
| 22 | |||
| 23 | } | ||
| 24 | |||
| 25 | public: | ||
| 26 | cv::Mat standardize(cv::Mat image); | ||
| 27 | cv::Mat data_process(vector<Mat> images); | ||
| 28 | vector<double> softmax(vector<double> input); | ||
| 29 | bool detect_speak(vector<Mat> images); | ||
| 30 | |||
| 31 | }; | ||
| 32 | #endif | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
lib/libspeakrecognize.so
0 → 100755
No preview for this file type
main.cpp
0 → 100644
| 1 | #include "speak_detector.h" | ||
| 2 | |||
| 3 | int main(){ | ||
| 4 | |||
| 5 | SpeakDetector speak = SpeakDetector(); | ||
| 6 | speak.init_model("/home/situ/qfs/sdk_project/speak_det_c/model/det_face_retina_torch_1.4_v0.0.2.onnx","/home/situ/qfs/sdk_project/speak_det_c/model/det_landmarks_106_v0.0.1.onnx","/home/situ/qfs/sdk_project/speak_det_c/model/cls_speak_v0.2.2.mnn"); | ||
| 7 | speak.speak_recognize("/data/speak/bank_test/speak/2327QUESTION_ANSWER"); | ||
| 8 | return 0; | ||
| 9 | } |
model/cls_speak_v0.2.2.mnn
0 → 100644
No preview for this file type
model/det_face_retina_torch_1.4_v0.0.2.onnx
0 → 100644
No preview for this file type
model/det_landmarks_106_v0.0.1.onnx
0 → 100644
No preview for this file type
retinaface.cpp
0 → 100644
| 1 | #include "retinaface.h" | ||
| 2 | #include<iostream> | ||
| 3 | // 生成anchors | ||
| 4 | vector<vector<float>> RetinaFace::priorBox(vector<float> image_size){ | ||
| 5 | vector<int> tmp1={16,32}; | ||
| 6 | vector<int> tmp2={64,128}; | ||
| 7 | vector<int> tmp3={256,512}; | ||
| 8 | vector<vector<int>> min_sizes_; | ||
| 9 | min_sizes_.push_back(tmp1); | ||
| 10 | min_sizes_.push_back(tmp2); | ||
| 11 | min_sizes_.push_back(tmp3); | ||
| 12 | vector<int> steps={8,16,32}; | ||
| 13 | vector<vector<int>> feature_maps; | ||
| 14 | vector<vector<float>> anchors; | ||
| 15 | for(int &step:steps){ | ||
| 16 | vector<int> tmp(2,0); | ||
| 17 | tmp[0]=ceil(image_size[0]/step); | ||
| 18 | tmp[1]=ceil(image_size[1]/step); | ||
| 19 | feature_maps.push_back(tmp); | ||
| 20 | } | ||
| 21 | for(int k=0;k<feature_maps.size();k++){ | ||
| 22 | vector<int> min_sizes=min_sizes_[k]; | ||
| 23 | |||
| 24 | for(int i=0;i<feature_maps[k][0];i++){ | ||
| 25 | for(int j=0;j<feature_maps[k][1];j++){ | ||
| 26 | for(int &min_size:min_sizes){ | ||
| 27 | float s_kx=float(min_size)/float(image_size[1]); | ||
| 28 | float s_ky=float(min_size)/float(image_size[0]); | ||
| 29 | float dense_cx=float((float(j)+float(0.5))*steps[k])/float(image_size[1]); | ||
| 30 | float dense_cy=float((float(i)+float(0.5))*steps[k])/float(image_size[1]); | ||
| 31 | vector<float> tmp_anchor={dense_cx,dense_cy,s_kx,s_ky}; | ||
| 32 | anchors.push_back(tmp_anchor); | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
| 37 | return anchors; | ||
| 38 | } | ||
| 39 | |||
| 40 | // 解析bounding box 包含置信度 | ||
| 41 | vector<Bbox> RetinaFace::decode(Mat loc,Mat score,Mat pre,vector<vector<float>> priors,vector<float> variances){ | ||
| 42 | vector<Bbox> boxes; | ||
| 43 | for(int i=0;i<priors.size();++i){ | ||
| 44 | float b1=priors[i][0]+loc.at<float>(i,0)*variances[0]*priors[i][2]; | ||
| 45 | float b2=priors[i][1]+loc.at<float>(i,1)*variances[0]*priors[i][3]; | ||
| 46 | float b3=priors[i][2]*exp(loc.at<float>(i,2)*variances[1]); | ||
| 47 | float b4=priors[i][3]*exp(loc.at<float>(i,3)*variances[1]); | ||
| 48 | b1=b1-b3/float(2); | ||
| 49 | b2=b2-b4/float(2); | ||
| 50 | b3=b3+b1; | ||
| 51 | b4=b4+b2; | ||
| 52 | float l1=priors[i][0]+pre.at<float>(i,0)*variances[0]*priors[i][2]; | ||
| 53 | float l2=priors[i][1]+pre.at<float>(i,1)*variances[0]*priors[i][3]; | ||
| 54 | float l3=priors[i][0]+pre.at<float>(i,2)*variances[0]*priors[i][2]; | ||
| 55 | float l4=priors[i][1]+pre.at<float>(i,3)*variances[0]*priors[i][3]; | ||
| 56 | float l5=priors[i][0]+pre.at<float>(i,4)*variances[0]*priors[i][2]; | ||
| 57 | float l6=priors[i][1]+pre.at<float>(i,5)*variances[0]*priors[i][3]; | ||
| 58 | float l7=priors[i][0]+pre.at<float>(i,6)*variances[0]*priors[i][2]; | ||
| 59 | float l8=priors[i][1]+pre.at<float>(i,7)*variances[0]*priors[i][3]; | ||
| 60 | float l9=priors[i][0]+pre.at<float>(i,8)*variances[0]*priors[i][2]; | ||
| 61 | float l10=priors[i][1]+pre.at<float>(i,9)*variances[0]*priors[i][3]; | ||
| 62 | Bbox tmp_box={.xmin=b1*input_size[0]/resize_scale,.ymin=b2*input_size[1]/resize_scale,.xmax=b3*input_size[0]/resize_scale,.ymax=b4*input_size[1]/resize_scale, | ||
| 63 | .score=score.at<float>(i,0),.x1=(l1*input_size[0])/resize_scale,.y1=l2*input_size[1]/resize_scale,.x2=l3*input_size[0]/resize_scale,.y2=l4*input_size[1]/resize_scale, | ||
| 64 | .x3=l5*input_size[0]/resize_scale,.y3=l6*input_size[1]/resize_scale,.x4=l7*input_size[0]/resize_scale,.y4=l8*input_size[1]/resize_scale,.x5=l9*input_size[0]/resize_scale,.y5=l10*input_size[1]/resize_scale}; | ||
| 65 | boxes.push_back(tmp_box); | ||
| 66 | } | ||
| 67 | return boxes; | ||
| 68 | } | ||
| 69 | |||
| 70 | // // 解析landmarks | ||
| 71 | // vector<vector<float>> RetinaFace::decode_landm(vector<vector<float>> pre,vector<vector<float>> priors,vector<float> variances){ | ||
| 72 | // vector<vector<float>> landms; | ||
| 73 | // for(int i=0;i<priors.size();i++){ | ||
| 74 | |||
| 75 | // vector<float> tmp_landm={l1,l2,l3,l4,l5,l6,l7,l8,l9,l10}; | ||
| 76 | // landms.push_back(tmp_landm); | ||
| 77 | // } | ||
| 78 | // return landms; | ||
| 79 | // } | ||
| 80 | |||
| 81 | //NMS | ||
| 82 | void RetinaFace::nms_cpu(std::vector<Bbox> &bboxes, float threshold){ | ||
| 83 | if (bboxes.empty()){ | ||
| 84 | return ; | ||
| 85 | } | ||
| 86 | // 1.之前需要按照score排序 | ||
| 87 | std::sort(bboxes.begin(), bboxes.end(), [&](Bbox b1, Bbox b2){return b1.score>b2.score;}); | ||
| 88 | // 2.先求出所有bbox自己的大小 | ||
| 89 | std::vector<float> area(bboxes.size()); | ||
| 90 | for (int i=0; i<bboxes.size(); ++i){ | ||
| 91 | area[i] = (bboxes[i].xmax - bboxes[i].xmin + 1) * (bboxes[i].ymax - bboxes[i].ymin + 1); | ||
| 92 | } | ||
| 93 | // 3.循环 | ||
| 94 | for (int i=0; i<bboxes.size(); ++i){ | ||
| 95 | for (int j=i+1; j<bboxes.size(); ){ | ||
| 96 | float left = std::max(bboxes[i].xmin, bboxes[j].xmin); | ||
| 97 | float right = std::min(bboxes[i].xmax, bboxes[j].xmax); | ||
| 98 | float top = std::max(bboxes[i].ymin, bboxes[j].ymin); | ||
| 99 | float bottom = std::min(bboxes[i].ymax, bboxes[j].ymax); | ||
| 100 | float width = std::max(right - left + 1, 0.f); | ||
| 101 | float height = std::max(bottom - top + 1, 0.f); | ||
| 102 | float u_area = height * width; | ||
| 103 | float iou = (u_area) / (area[i] + area[j] - u_area); | ||
| 104 | if (iou>=threshold){ | ||
| 105 | bboxes.erase(bboxes.begin()+j); | ||
| 106 | area.erase(area.begin()+j); | ||
| 107 | }else{ | ||
| 108 | ++j; | ||
| 109 | } | ||
| 110 | } | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 114 | // 根据阈值筛选 | ||
| 115 | vector<Bbox> RetinaFace::select_score(vector<Bbox> bboxes,float threshold,float w_r,float h_r){ | ||
| 116 | vector<Bbox> results; | ||
| 117 | for(Bbox &box:bboxes){ | ||
| 118 | if (float(box.score)>=threshold){ | ||
| 119 | box.xmin=box.xmin/w_r; | ||
| 120 | box.ymin=box.ymin/h_r; | ||
| 121 | box.xmax=box.xmax/w_r; | ||
| 122 | box.ymax=box.ymax/h_r; | ||
| 123 | box.x1=box.x1/w_r; | ||
| 124 | box.y1=box.y1/h_r; | ||
| 125 | box.x2=box.x2/w_r; | ||
| 126 | box.y2=box.y2/h_r; | ||
| 127 | box.x3=box.x3/w_r; | ||
| 128 | box.y3=box.y3/h_r; | ||
| 129 | box.x4=box.x4/w_r; | ||
| 130 | box.y4=box.y4/h_r; | ||
| 131 | box.x5=box.x5/w_r; | ||
| 132 | box.y5=box.y5/h_r; | ||
| 133 | results.push_back(box); | ||
| 134 | } | ||
| 135 | } | ||
| 136 | return results; | ||
| 137 | } | ||
| 138 | // vector转Bbox | ||
| 139 | // vector<Bbox> RetinaFace::vec2Bbox(vector<vector<float>> bbox,float w_r,float h_r){ | ||
| 140 | // vector<Bbox> result_bboxes; | ||
| 141 | // for(auto &c:bbox){ | ||
| 142 | // Bbox tmp_box={.xmin=c[0]/w_r,.ymin=c[1]/h_r,.xmax=c[2]/w_r,.ymax=c[3]/h_r}; | ||
| 143 | // result_bboxes.push_back(tmp_box); | ||
| 144 | // } | ||
| 145 | // return result_bboxes; | ||
| 146 | // } | ||
| 147 | // 数据后处理 | ||
| 148 | vector<Bbox> RetinaFace::bbox_process(bool is_bbox_process,vector<Bbox> bboxes,float frame_w,float frame_h){ | ||
| 149 | vector<Bbox> result_bboxes; | ||
| 150 | if(is_bbox_process){ | ||
| 151 | for(Bbox &bbox:bboxes){ | ||
| 152 | Bbox new_bbox; | ||
| 153 | float face_w=bbox.xmax-bbox.xmin; | ||
| 154 | float face_h=bbox.ymax-bbox.ymin; | ||
| 155 | new_bbox.xmin=bbox.xmin-face_w*0.15; | ||
| 156 | new_bbox.xmax=bbox.xmax+face_w*0.15; | ||
| 157 | new_bbox.ymin=bbox.ymin; | ||
| 158 | new_bbox.ymax=bbox.ymax+face_h*0.15; | ||
| 159 | new_bbox.xmin=new_bbox.xmin>0?new_bbox.xmin:0; | ||
| 160 | new_bbox.ymin=new_bbox.ymin>0?new_bbox.ymin:0; | ||
| 161 | new_bbox.xmax=new_bbox.xmax>frame_w?frame_w:new_bbox.xmax; | ||
| 162 | new_bbox.ymax=new_bbox.ymax>frame_h?frame_h:new_bbox.ymax; | ||
| 163 | new_bbox.score=bbox.score; | ||
| 164 | // cout<<bbox.x1<<endl; | ||
| 165 | new_bbox.x1=bbox.x1>0?bbox.x1:0; | ||
| 166 | new_bbox.y1=bbox.y1>0?bbox.y1:0; | ||
| 167 | new_bbox.x2=bbox.x2>0?bbox.x2:0; | ||
| 168 | new_bbox.y2=bbox.y2>0?bbox.y2:0; | ||
| 169 | new_bbox.x3=bbox.x3>0?bbox.x3:0; | ||
| 170 | new_bbox.y3=bbox.y3>0?bbox.y3:0; | ||
| 171 | new_bbox.x4=bbox.x4>0?bbox.x4:0; | ||
| 172 | new_bbox.y4=bbox.y4>0?bbox.y4:0; | ||
| 173 | new_bbox.x5=bbox.x5>0?bbox.x5:0; | ||
| 174 | new_bbox.y5=bbox.y5>0?bbox.y5:0; | ||
| 175 | result_bboxes.push_back(new_bbox); | ||
| 176 | } | ||
| 177 | }else{ | ||
| 178 | for(Bbox &bbox:bboxes){ | ||
| 179 | Bbox new_bbox; | ||
| 180 | float face_w=bbox.xmax-bbox.xmin; | ||
| 181 | float face_h=bbox.ymax-bbox.ymin; | ||
| 182 | new_bbox.xmin=bbox.xmin-face_w; | ||
| 183 | new_bbox.xmax=bbox.xmax+face_w; | ||
| 184 | new_bbox.ymin=bbox.ymin; | ||
| 185 | new_bbox.ymax=bbox.ymax+face_h; | ||
| 186 | new_bbox.xmin=new_bbox.xmin>0?new_bbox.xmin:0; | ||
| 187 | new_bbox.ymin=new_bbox.ymin>0?new_bbox.ymin:0; | ||
| 188 | new_bbox.xmax=new_bbox.xmax>frame_w?frame_w:new_bbox.xmax; | ||
| 189 | new_bbox.ymax=new_bbox.ymax>frame_h?frame_h:new_bbox.ymax; | ||
| 190 | new_bbox.score=bbox.score; | ||
| 191 | new_bbox.x1=bbox.x1>0?bbox.x1:0; | ||
| 192 | new_bbox.y1=bbox.y1>0?bbox.y1:0; | ||
| 193 | new_bbox.x2=bbox.x2>0?bbox.x2:0; | ||
| 194 | new_bbox.y2=bbox.y2>0?bbox.y2:0; | ||
| 195 | new_bbox.x3=bbox.x3>0?bbox.x3:0; | ||
| 196 | new_bbox.y3=bbox.y3>0?bbox.y3:0; | ||
| 197 | new_bbox.x4=bbox.x4>0?bbox.x4:0; | ||
| 198 | new_bbox.y4=bbox.y4>0?bbox.y4:0; | ||
| 199 | new_bbox.x5=bbox.x5>0?bbox.x5:0; | ||
| 200 | new_bbox.y5=bbox.y5>0?bbox.y5:0; | ||
| 201 | result_bboxes.push_back(new_bbox); | ||
| 202 | } | ||
| 203 | } | ||
| 204 | return result_bboxes; | ||
| 205 | } | ||
| 206 | // 推理 | ||
| 207 | |||
| 208 | // vector<Bbox> RetinaFace::detect_image(Mat image){ | ||
| 209 | vector<Bbox> RetinaFace::detect_image(Mat image){ | ||
| 210 | float w_r=float(640)/float(image.cols); | ||
| 211 | float h_r=float(640)/float(image.rows); | ||
| 212 | cv::Mat blob = cv::dnn::blobFromImage(image,resize_scale,Size(input_size[0],input_size[1]),Scalar(mean_data[0],mean_data[1],mean_data[2])); // 由图片加载数据 这里还可以进行缩放、归一化等预处理 | ||
| 213 | net.setInput(blob); // 设置模型输入 | ||
| 214 | std::vector<cv::Mat> netOutputImg; | ||
| 215 | net.forward(netOutputImg,net.getUnconnectedOutLayersNames()); // 推理出结果 | ||
| 216 | |||
| 217 | cv::Mat scores = netOutputImg[2].reshape(1,16800); | ||
| 218 | cv::Mat boxes = netOutputImg[0].reshape(1,16800); | ||
| 219 | cv::Mat landms = netOutputImg[1].reshape(1,16800); | ||
| 220 | |||
| 221 | vector<Bbox> result_boxes=decode(boxes,scores,landms,anchors,variances); | ||
| 222 | vector<Bbox> results=select_score(result_boxes,confidence_threshold,w_r,h_r); | ||
| 223 | |||
| 224 | nms_cpu(results,nms_threshold); | ||
| 225 | |||
| 226 | if(is_bbox_process){ | ||
| 227 | vector<Bbox> res_bboxes=bbox_process(true,results,image.cols,image.rows); | ||
| 228 | return res_bboxes; | ||
| 229 | |||
| 230 | }else{ | ||
| 231 | vector<Bbox> res_bboxes=bbox_process(false,results,image.cols,image.rows); | ||
| 232 | return res_bboxes; | ||
| 233 | } | ||
| 234 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
speak_detector.cpp
0 → 100644
| 1 | #include "speak_detector.h" | ||
| 2 | |||
| 3 | void SpeakDetector::init_model(string face_det_model,string landm_det_model,string speak_cls_model){ | ||
| 4 | face_det = RetinaFace(face_det_model); | ||
| 5 | landm_det = FaceLandmarks(landm_det_model); | ||
| 6 | speak_cls = SpeakCls(speak_cls_model); | ||
| 7 | } | ||
| 8 | |||
| 9 | float SpeakDetector::iou_compute(Bbox b1, Bbox b2) | ||
| 10 | { | ||
| 11 | float tmp_w=min(b1.xmax,b2.xmax) - max(b1.xmin, b2.xmin); | ||
| 12 | float tmp_h=min(b1.ymax, b2.ymax) - max(b1.ymin, b2.ymin); | ||
| 13 | float w = max(tmp_w, float(0)); | ||
| 14 | float h = max(tmp_h, float(0)); | ||
| 15 | return w*h / ((b1.xmax-b1.xmin)*(b1.ymax-b1.ymin) + (b2.xmax-b2.xmin)*(b2.ymax-b2.ymin) - w*h); | ||
| 16 | } | ||
| 17 | vector<vector<cv::Mat>> SpeakDetector::mouth_process(vector<vector<vector<vector<float>>>> batch_landmarks, vector<cv::Mat> batch_images){ | ||
| 18 | int input_size=112; | ||
| 19 | vector<vector<cv::Mat>> align_mouths; | ||
| 20 | for(int i=0;i<batch_images.size();++i){ | ||
| 21 | cv::Mat image = batch_images[i]; | ||
| 22 | vector<cv::Mat> tmp_mouths; | ||
| 23 | for(int j=0;j<batch_landmarks[i].size();++j){ | ||
| 24 | vector<float> mouth_xs; | ||
| 25 | vector<float> mouth_ys; | ||
| 26 | for(int k=84;k<int(104);++k){ | ||
| 27 | float x_q = round(batch_landmarks[i][j][k][0]); | ||
| 28 | float y_q = round(batch_landmarks[i][j][k][1]); | ||
| 29 | mouth_xs.push_back(x_q); | ||
| 30 | mouth_ys.push_back(y_q); | ||
| 31 | } | ||
| 32 | float mouth_width=*max_element(mouth_xs.begin(),mouth_xs.end())-*min_element(mouth_xs.begin(),mouth_xs.end()); | ||
| 33 | float mouth_height=*max_element(mouth_ys.begin(),mouth_ys.end())-*min_element(mouth_ys.begin(),mouth_ys.end()); | ||
| 34 | int mouth_min_x=ceil(*min_element(mouth_xs.begin(),mouth_xs.end())-mouth_width*0.2); | ||
| 35 | int mouth_min_y=ceil(*min_element(mouth_ys.begin(),mouth_ys.end())-mouth_height*0.1); | ||
| 36 | int mouth_max_x=ceil(*max_element(mouth_xs.begin(),mouth_xs.end())+mouth_width*0.2); | ||
| 37 | int mouth_max_y=ceil(*max_element(mouth_ys.begin(),mouth_ys.end())+mouth_height*0.1); | ||
| 38 | |||
| 39 | mouth_min_x=mouth_min_x>0?mouth_min_x:0; | ||
| 40 | mouth_min_y=mouth_min_y>0?mouth_min_y:0; | ||
| 41 | cv::Rect mouth_rect = Rect(mouth_min_x,mouth_min_y,mouth_max_x-mouth_min_x,mouth_max_y-mouth_min_y); | ||
| 42 | cv::Mat mouth_crop = image(mouth_rect); | ||
| 43 | cv::Mat resize_mouth_crop; | ||
| 44 | cv::resize(mouth_crop,resize_mouth_crop,Size(input_size,input_size)); | ||
| 45 | Point center=Point(input_size/2,input_size/2); | ||
| 46 | float dx = batch_landmarks[i][j][90][0]-batch_landmarks[i][j][84][0]; | ||
| 47 | float dy = batch_landmarks[i][j][90][1]-batch_landmarks[i][j][84][1]; | ||
| 48 | double angle = atan2(dy,dx)*180/float(M_PI); | ||
| 49 | cv::Mat rotate_matrix = cv::getRotationMatrix2D(center,double(angle),1); | ||
| 50 | cv::Mat rot_img; | ||
| 51 | cv::warpAffine(resize_mouth_crop,rot_img,rotate_matrix,Size(input_size,input_size)); | ||
| 52 | tmp_mouths.push_back(rot_img); | ||
| 53 | } | ||
| 54 | align_mouths.push_back(tmp_mouths); | ||
| 55 | } | ||
| 56 | return align_mouths; | ||
| 57 | } | ||
| 58 | //视频/图像数据切片 | ||
| 59 | //图像 | ||
| 60 | void SpeakDetector::image_reader(string file_path,int segment_num,vector<Mat> &bgr_frames,vector<vector<int>> &indices){ | ||
| 61 | int new_length = 1; | ||
| 62 | vector<String> image_files; | ||
| 63 | glob(file_path, image_files, false); | ||
| 64 | int total_frames_num = (int)image_files.size(); | ||
| 65 | float tick = float(total_frames_num - new_length + 1) / float(segment_num); | ||
| 66 | vector<int> indice; | ||
| 67 | for(int x=0;x<segment_num;++x){ | ||
| 68 | indice.push_back(int(tick / 2.0 + tick * x)); | ||
| 69 | } | ||
| 70 | indices.push_back(indice); | ||
| 71 | |||
| 72 | for(auto im_file:image_files){ | ||
| 73 | Mat bgr_img=cv::imread(im_file); | ||
| 74 | bgr_frames.push_back(bgr_img); | ||
| 75 | } | ||
| 76 | } | ||
| 77 | void SpeakDetector::speak_recognize(string image_path){ | ||
| 78 | vector<Mat> all_bgr_images; | ||
| 79 | vector<vector<int>> total_split_indices; | ||
| 80 | image_reader(image_path,10,all_bgr_images,total_split_indices); | ||
| 81 | // vector<json> all_results; | ||
| 82 | |||
| 83 | bool is_talk=false; | ||
| 84 | |||
| 85 | for(int im_i=0;im_i<total_split_indices.size();++im_i){ | ||
| 86 | vector<vector<cv::Mat>> face_list; | ||
| 87 | vector<vector<Bbox>> bbox_list; | ||
| 88 | vector<cv::Mat> rgb_frames; | ||
| 89 | vector<cv::Mat> bgr_frames; | ||
| 90 | int tmp_rows,tmp_cols; | ||
| 91 | for(int im_j=0;im_j<total_split_indices[im_i].size();++im_j){ | ||
| 92 | Mat tmp_img=all_bgr_images[total_split_indices[im_i][im_j]]; | ||
| 93 | if(im_j !=0){ | ||
| 94 | if(tmp_img.rows!=tmp_rows&&tmp_img.cols!=tmp_cols){ | ||
| 95 | cv::resize(tmp_img,tmp_img,Size(int(tmp_img.cols),int(tmp_img.rows))); | ||
| 96 | } | ||
| 97 | } | ||
| 98 | tmp_rows=tmp_img.rows; | ||
| 99 | tmp_cols=tmp_img.cols; | ||
| 100 | Mat rgb_tmp_img; | ||
| 101 | cv::cvtColor(tmp_img,rgb_tmp_img,cv::COLOR_BGR2RGB); | ||
| 102 | bgr_frames.push_back(tmp_img); | ||
| 103 | rgb_frames.push_back(rgb_tmp_img); | ||
| 104 | |||
| 105 | } | ||
| 106 | for(auto bgr_frame:bgr_frames){ | ||
| 107 | vector<Bbox> boxes=face_det.detect_image(bgr_frame); | ||
| 108 | vector<cv::Mat> tmp_face_areas; | ||
| 109 | vector<Bbox> tmp_bbox_list; | ||
| 110 | for(auto box:boxes){ | ||
| 111 | tmp_bbox_list.push_back(box); | ||
| 112 | |||
| 113 | // cout<<box.xmin<<" "<<box.ymin<<" "<<box.xmax-box.xmin<<" "<<box.ymax-box.ymin<<endl; | ||
| 114 | |||
| 115 | Rect m_select = Rect(box.xmin,box.ymin,box.xmax-box.xmin,box.ymax-box.ymin); | ||
| 116 | |||
| 117 | cv::Mat face_area=bgr_frame(m_select); | ||
| 118 | tmp_face_areas.push_back(face_area); | ||
| 119 | // cv::imshow("123",face_area); | ||
| 120 | // cv::waitKey(0); | ||
| 121 | } | ||
| 122 | face_list.push_back(tmp_face_areas); | ||
| 123 | bbox_list.push_back(tmp_bbox_list); | ||
| 124 | } | ||
| 125 | |||
| 126 | vector<vector<vector<vector<float>>>> landms_list; | ||
| 127 | for(int i=0;i<face_list.size();++i){ | ||
| 128 | vector<vector<vector<float>>> tmp_landm_list; | ||
| 129 | for(int j=0;j<face_list[i].size();++j){ | ||
| 130 | vector<vector<float>> tmp_landms=landm_det.detect_image_landmarks(face_list[i][j]); | ||
| 131 | for(int k=0;k<tmp_landms.size();++k){ | ||
| 132 | tmp_landms[k][0]=tmp_landms[k][0]+bbox_list[i][j].xmin; | ||
| 133 | tmp_landms[k][1]=tmp_landms[k][1]+bbox_list[i][j].ymin; | ||
| 134 | } | ||
| 135 | tmp_landm_list.push_back(tmp_landms); | ||
| 136 | } | ||
| 137 | landms_list.push_back(tmp_landm_list); | ||
| 138 | } | ||
| 139 | vector<vector<cv::Mat>> mouth_list=mouth_process(landms_list,rgb_frames); | ||
| 140 | |||
| 141 | vector<vector<Bbox>> last_bboxes=bbox_list; | ||
| 142 | vector<Bbox> first_bboxes = bbox_list[0]; | ||
| 143 | vector<vector<Bbox>>::iterator k = last_bboxes.begin(); | ||
| 144 | last_bboxes.erase(k); | ||
| 145 | |||
| 146 | vector<vector<Bbox>> all_track_bbox_list; | ||
| 147 | vector<vector<cv::Mat>> all_face_list,all_mouth_list; | ||
| 148 | |||
| 149 | for(int i=0;i<first_bboxes.size();++i){ | ||
| 150 | Bbox first_bbox=first_bboxes[i]; | ||
| 151 | vector<Bbox> track_bbox_list; | ||
| 152 | vector<cv::Mat> trace_face_list,trace_mouth_list; | ||
| 153 | track_bbox_list.push_back(first_bbox); | ||
| 154 | trace_face_list.push_back(face_list[0][i]); | ||
| 155 | trace_mouth_list.push_back(mouth_list[0][i]); | ||
| 156 | for(int j=0;j<last_bboxes.size();++j){ | ||
| 157 | vector<Bbox> next_bboxes=last_bboxes[j]; | ||
| 158 | for(int k=0;k<next_bboxes.size();++k){ | ||
| 159 | |||
| 160 | Bbox next_bbox = next_bboxes[k]; | ||
| 161 | float iou=iou_compute(first_bbox,next_bbox); | ||
| 162 | if(iou>=0.4){ | ||
| 163 | track_bbox_list.push_back(next_bbox); | ||
| 164 | trace_face_list.push_back(face_list[j+1][k]); | ||
| 165 | trace_mouth_list.push_back(mouth_list[j+1][k]); | ||
| 166 | break; | ||
| 167 | } | ||
| 168 | } | ||
| 169 | } | ||
| 170 | all_track_bbox_list.push_back(track_bbox_list); | ||
| 171 | all_face_list.push_back(trace_face_list); | ||
| 172 | all_mouth_list.push_back(trace_mouth_list); | ||
| 173 | } | ||
| 174 | for(int j=0;j<all_mouth_list.size();j++){ | ||
| 175 | vector<cv::Mat> select_mouth_list=all_mouth_list[j]; | ||
| 176 | |||
| 177 | /** | ||
| 178 | * @brief 模型推理部分代码,返回result 0/1 ,其中1为说话,0为未说话 | ||
| 179 | * | ||
| 180 | */ | ||
| 181 | bool result=speak_cls.detect_speak(select_mouth_list); | ||
| 182 | |||
| 183 | // bool result=true; | ||
| 184 | if(result){ | ||
| 185 | is_talk=true; | ||
| 186 | // speak_duration = (split_indices[0], split_indices[-1]) | ||
| 187 | // Mat speaker = all_face_list[j][0]; | ||
| 188 | // speaker_str = cv::imencode('.jpg', speaker)[1].tostring() | ||
| 189 | // speaker_str = base64.b64encode(speaker_str).decode() | ||
| 190 | // int position = j | ||
| 191 | // json cur_output={ | ||
| 192 | // "is_talk":true, | ||
| 193 | // "speak_duration":[str(speak_duration[0]), str(speak_duration[1])], | ||
| 194 | // "speaker":speaker_str, | ||
| 195 | // "position":position | ||
| 196 | // } | ||
| 197 | // all_results.push_back(cur_output); | ||
| 198 | cout<<is_talk<<endl; | ||
| 199 | }else{ | ||
| 200 | cout<<is_talk<<endl; | ||
| 201 | } | ||
| 202 | |||
| 203 | } | ||
| 204 | |||
| 205 | // return 0; | ||
| 206 | } | ||
| 207 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
speakcls.cpp
0 → 100644
| 1 | #include "speakcls.h" | ||
| 2 | |||
| 3 | cv::Mat SpeakCls::standardize(cv::Mat image){ | ||
| 4 | cv::Mat image_f,dst; | ||
| 5 | image.convertTo(image_f, CV_32F); | ||
| 6 | Scalar max_pix = Scalar(255.0f,255.0f,255.0f); | ||
| 7 | Scalar mean = Scalar(0.485f, 0.456f, 0.406f); | ||
| 8 | Scalar std = Scalar(0.229f, 0.224f, 0.225f); | ||
| 9 | dst=image_f/max_pix; | ||
| 10 | dst = (dst-mean)/std; | ||
| 11 | return dst; | ||
| 12 | } | ||
| 13 | |||
| 14 | cv::Mat SpeakCls::data_process(vector<Mat> images){ | ||
| 15 | std::vector<cv::Mat> all_image_channels; | ||
| 16 | for(auto f:images){ | ||
| 17 | Mat tmp_image = standardize(f); | ||
| 18 | std::vector<cv::Mat> tmp_channels; | ||
| 19 | cv::split(tmp_image,tmp_channels); | ||
| 20 | all_image_channels.push_back(tmp_channels[0]); | ||
| 21 | all_image_channels.push_back(tmp_channels[1]); | ||
| 22 | all_image_channels.push_back(tmp_channels[2]); | ||
| 23 | } | ||
| 24 | Mat input_data; | ||
| 25 | cv::merge(all_image_channels,input_data); | ||
| 26 | return input_data; | ||
| 27 | } | ||
| 28 | |||
| 29 | vector<double> SpeakCls::softmax(vector<double> input){ | ||
| 30 | double total=0; | ||
| 31 | for(auto x:input) | ||
| 32 | { | ||
| 33 | total+=exp(x); | ||
| 34 | } | ||
| 35 | vector<double> result; | ||
| 36 | for(auto x:input) | ||
| 37 | { | ||
| 38 | result.push_back(exp(x)/total); | ||
| 39 | } | ||
| 40 | return result; | ||
| 41 | } | ||
| 42 | |||
| 43 | bool SpeakCls::detect_speak(vector<Mat> images){ | ||
| 44 | |||
| 45 | auto session = net->createSession(config);//创建session | ||
| 46 | Mat input_data=data_process(images); | ||
| 47 | // cout << _Tensor->elementSize() << endl; | ||
| 48 | std::vector<std::vector<cv::Mat>> nChannels; | ||
| 49 | std::vector<cv::Mat> rgbChannels(30); | ||
| 50 | cv::split(input_data, rgbChannels); | ||
| 51 | nChannels.push_back(rgbChannels); // NHWC 转NCHW | ||
| 52 | auto *pvData = malloc(1 * 30 * 112 * 112 *sizeof(float)); | ||
| 53 | int nPlaneSize = 112 * 112; | ||
| 54 | for (int c = 0; c < 30; ++c) | ||
| 55 | { | ||
| 56 | cv::Mat matPlane = nChannels[0][c]; | ||
| 57 | memcpy((float *)(pvData) + c * nPlaneSize,\ | ||
| 58 | matPlane.data, nPlaneSize * sizeof(float)); | ||
| 59 | } | ||
| 60 | auto inTensor = net->getSessionInput(session, NULL); | ||
| 61 | auto nchwTensor = new Tensor(inTensor, Tensor::CAFFE); | ||
| 62 | ::memcpy(nchwTensor->host<float>(), pvData, nPlaneSize * 30 * sizeof(float)); | ||
| 63 | |||
| 64 | |||
| 65 | inTensor->copyFromHostTensor(nchwTensor); | ||
| 66 | //推理 | ||
| 67 | net->runSession(session); | ||
| 68 | auto output= net->getSessionOutput(session, NULL); | ||
| 69 | |||
| 70 | MNN::Tensor feat_tensor(output, output->getDimensionType()); | ||
| 71 | output->copyToHostTensor(&feat_tensor); | ||
| 72 | auto scores_dataPtr = feat_tensor.host<float>(); | ||
| 73 | // cout<<scores_dataPtr[0]<<" "<<scores_dataPtr[1]<<endl; | ||
| 74 | vector<double> outputs={scores_dataPtr[0],scores_dataPtr[1]}; | ||
| 75 | // softmax | ||
| 76 | vector<double> result=softmax(outputs); | ||
| 77 | printf("output belong to class: %f %f\n", result[0],result[1]); | ||
| 78 | if(result[0]>result[1]){ | ||
| 79 | return false; | ||
| 80 | }else{ | ||
| 81 | return true; | ||
| 82 | } | ||
| 83 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment