hpc203 / 10kinds-light-face-detector-align-recognition

10种轻量级人脸检测算法的比拼,其中还包含人脸关键点检测与对齐,人脸特征向量提取和计算距离相似度

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当图像尺度较小时,facebox报错

licc0431 opened this issue · comments

当测试图像为w70 h154 时
in
facebox_dnn_result, _ = facebox_dnn_detect.detect(srcimg)facebox_dnn_result, _ = facebox_dnn_detect.detect(srcimg)
in detect
detections = self.net.forward()

cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-hfoi92lm\opencv\modules\dnn\src\dnn.cpp:3466: error: (-215:Assertion failed) total(os[i]) > 0 in function 'cv::dnn::dnn4_v20200609::Net::Impl::getLayerShapesRecursively'

是不图像太小了,无法前向计算?需要修改resize?

是的,如果输入图片尺寸很小,可以尝试用blazeface