scrfd-opencv icon indicating copy to clipboard operation
scrfd-opencv copied to clipboard

使用OpenCV部署SCRFD人脸检测,包含C++和Python两种版本的程序实现,本套程序只依赖opencv库就可以运行, 从而彻底摆脱对任何深度学习框架的依赖。

Results 8 scrfd-opencv issues
Sort by recently updated
recently updated
newest added

ValueError: operands could not be broadcast together with shapes (12800,) (3200,)

File "d:\AI\Face\Face_detect\SCRFD\scrfd-opencv\main.py", line 12, in __init__ self.net = cv2.dnn.readNet(onnxmodel) #加载失败 cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\include\opencv2/dnn/dnn.inl.hpp:349: error: (-204:Requested object was not found) Required argument "starts" not found into dictionary in function 'cv::dnn::dnn4_v20191202::Dict::get' 我试了其他scrfd的onnx模型,加载都是各种报错.不懂你有没有出现这种问题....

Traceback (most recent call last): File "main.py", line 125, in outimg = mynet.detect(srcimg) File "main.py", line 107, in detect i = i[0] IndexError: invalid index to scalar variable.

main.py detects 123 faces in selfie.jpg main.cpp detects 1334 faces in slelfie.jpg (ERROR) Why? How to solve it?

C++版本报错: 1>------ 已启动生成: 项目: ConsoleApplication2, 配置: Release x64 ------ 1>main.obj : error LNK2001: 无法解析的外部符号 "void __cdecl cv::imshow(class std::basic_string const &,class cv::_InputArray const &)" (?imshow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@1@@Z) 1>已完成生成项目“ConsoleApplication2.vcxproj”的操作 - 失败。 ========== 生成: 0...

For the same input image, thresholds and setting, the generated confidence scores for all the detected faces are different in precision. How can we fix that?