未验证 提交 273ba198 编写于 作者: W wangna11BD 提交者: GitHub

fix issue233 (#239)

上级 feb32626
...@@ -43,10 +43,10 @@ def get_max_face(faces): ...@@ -43,10 +43,10 @@ def get_max_face(faces):
# find max face # find max face
areas = [] areas = []
for face in faces: for face in faces:
left = face.rect.left() left = face.left()
top = face.rect.top() top = face.top()
right = face.rect.right() right = face.right()
bottom = face.rect.bottom() bottom = face.bottom()
areas.append((bottom - top) * (right - left)) areas.append((bottom - top) * (right - left))
max_face_index = np.argmax(areas) max_face_index = np.argmax(areas)
return faces[max_face_index] return faces[max_face_index]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册