Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

a quick experiment reveals, there is a maximum of 200 possible detections (in this model):

>>> net = cv2.dnn.readNet("opencv_face_detector_uint8.pb", "opencv_face_detector.pbtxt")
>>> net.setInput(np.ones((1,3,300,300),np.float32))
>>> out = net.forward()
>>> out.shape
(1, 1, 200, 7)

a quick experiment reveals, there is a maximum of 200 possible detections (in this model):

>>> net = cv2.dnn.readNet("opencv_face_detector_uint8.pb", "opencv_face_detector.pbtxt")
>>> net.setInput(np.ones((1,3,300,300),np.float32))
>>> out = net.forward()
>>> out.shape
(1, 1, 200, 7)

This is also not about the resolution

it probably is. the ratio of the crop size you give to blobFromImage() and your original image size determies the quality of the detection