已opencv直接加载caffe深度学习(ssd人脸检测)模型: (还是厉害的一笔)
下面是python代码:
使用 图片:
效果图:
python detect_faces.py --image...True,
help="path to input image")
ap.add_argument("-p", "--prototxt", required=True,
help="path to Caffe...'deploy' prototxt file")
ap.add_argument("-m", "--model", required=True,
help="path to Caffe pre-trained...object
box = detections[0, 0, i, 3:7] * np.array([w, h, w, h])
(startX, startY, endX, endY) = box.astype...object
box = detections[0, 0, i, 3:7] * np.array([w, h, w, h])
(startX, startY, endX, endY) = box.astype