fix extractor
This commit is contained in:
@@ -151,7 +151,9 @@ class ExtractSubprocessor(Subprocessor):
|
|||||||
if len(rects) != 0:
|
if len(rects) != 0:
|
||||||
data.rects_rotation = rot
|
data.rects_rotation = rot
|
||||||
break
|
break
|
||||||
if max_faces_from_image is not None and len(data.rects) > 1:
|
if max_faces_from_image is not None and \
|
||||||
|
max_faces_from_image > 0 and \
|
||||||
|
len(data.rects) > 0:
|
||||||
data.rects = data.rects[0:max_faces_from_image]
|
data.rects = data.rects[0:max_faces_from_image]
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user