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

fix issue233 (#239)

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