I see there are two methods, detect_face() and detect_face_limited(). The detect_face() signature is
img: numpy array, bgr order of shape (1, 3, n, m)
input image
But the actual shape checking treats an image as a [height, width, channel] array:
# only works for color image
if len(img.shape) != 3:
return None
# detected boxes
total_boxes = []
height, width, _ = img.shape
Therefore the detection fails at some point.
I also tried detect_face_limited(), and saw the [1] and [2] of threshold getting used to do the filtering and decreased those values to get more results. But still, e.g. this picture has four faces, and I'm getting as many as only one.
I see there are two methods,
detect_face()
anddetect_face_limited()
. Thedetect_face()
signature isBut the actual shape checking treats an image as a
[height, width, channel]
array:Therefore the detection fails at some point.
I also tried
detect_face_limited()
, and saw the[1]
and[2]
of threshold getting used to do the filtering and decreased those values to get more results. But still, e.g. this picture has four faces, and I'm getting as many as only one.How can I get all those faces?