LiveFaceReco_RaspberryPi
LiveFaceReco_RaspberryPi copied to clipboard
Face recognition and live estimation on Raspberry Pi 4B with average FPS around 20 and 2800+ faces loaded.
我是在int MTCNNDetection()函数 while(cap.isOpened())后面用double start = ncnn::get_current_time();开始计时在该循环的末尾 double end = ncnn::get_current_time(); double time = end - start; double fps = 1000.0 / time; printf("Detect Time:%7.2f \n",fps);来计算该项目的fps通过给给个模型推理过程添加多线程目前最大只能达到4-5左右有人知道是为啥吗
able to make j4, and generated LiveFaceReco to run but when there is a face in the camera the LiveFaceReco crashed with segment error. any experence to share ? Thanks...
编译完成,也成功运行无报错了,只是那个显示窗口一直不出来,暂时不知道怎么解决
root@raspberrypi:/home/pi/project/LiveFaceReco_RaspberryPi/build# make -j4 -- Found OpenCV: /usr (found version "4.5.1") -- Found OpenMP_C: -fopenmp -- Found OpenMP_CXX: -fopenmp -- Found OpenMP: TRUE OPENMP FOUND -- Configuring done -- Generating done...
/usr/bin/ld: /window10/Users/tai94/Documents/baolinh/cv/LiveFaceReco_RaspberryPi_2/include/lib/libncnn.a(gpu.cpp.o): in function `ncnn::destroy_gpu_instance()': gpu.cpp:(.text+0xdad): undefined reference to `glslang::FinalizeProcess()' /usr/bin/ld: /window10/Users/tai94/Documents/baolinh/cv/LiveFaceReco_RaspberryPi_2/include/lib/libncnn.a(gpu.cpp.o): in function `ncnn::create_gpu_instance()': gpu.cpp:(.text+0x44e9): undefined reference to `glslang::InitializeProcess()' /usr/bin/ld: /window10/Users/tai94/Documents/baolinh/cv/LiveFaceReco_RaspberryPi_2/include/lib/libncnn.a(gpu.cpp.o): in function `ncnn::compile_spirv_module(char const*, int, ncnn::Option const&, std::vector&)':...
/usr/bin/ld: convolution1d_arm_arm82.cpp:(.text+0x1394): undefined reference to `__logf_finite' /usr/bin/ld: /home/esec/LiveFaceReco_RaspberryPi/include/libs/RaspberryPi4B/libncnn.a(convolution1d_arm_arm82.cpp.o): in function `ncnn::Convolution1D_arm_arm82::forward_fp16sa(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.16]': convolution1d_arm_arm82.cpp:(.text+0x1a88): undefined reference to `__expf_finite' /usr/bin/ld: convolution1d_arm_arm82.cpp:(.text+0x1aa0): undefined reference to `__expf_finite' /usr/bin/ld:...
In file included from /home/pi/LiveFaceReco_RaspberryPi/src/arcface.cpp:1: /home/pi/LiveFaceReco_RaspberryPi/src/arcface.h:7:10: fatal error: net.h: 没有那个文件或目录 #include "net.h" ^~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/facedetect.dir/build.make:89:CMakeFiles/facedetect.dir/src/arcface.cpp.o] 错误 1 make[2]: *** 正在等待未完成的任务.... In file included from /home/pi/LiveFaceReco_RaspberryPi/src/live.cpp:5: /home/pi/LiveFaceReco_RaspberryPi/src/live.h:8:10: fatal...
/usr/bin/ld: libfacedetect.a(livefacereco.cpp.o): in function `MTCNNDetection()': livefacereco.cpp:(.text+0x3d40): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld: livefacereco.cpp:(.text+0x3e28): undefined reference to `std::filesystem::symlink_status(std::filesystem::__cxx11::path const&)' /usr/bin/ld: livefacereco.cpp:(.text+0x3e84): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)' /usr/bin/ld: livefacereco.cpp:(.text+0x4824): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'...