提交 88a8be12 编写于 作者: W WenmuZhou

add assert

上级 fdaf1f15
......@@ -625,6 +625,7 @@ def get_rotate_crop_image(img, points):
points[:, 0] = points[:, 0] - left
points[:, 1] = points[:, 1] - top
'''
assert len(points) == 4, "shape of points must be 4*2"
img_crop_width = int(
max(
np.linalg.norm(points[0] - points[1]),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册