@@ -96,7 +96,7 @@ class ClassifyEdgeCorner:
# 获取内框的四个角点
inner_box = cv2.boxPoints(inner_rect)
- inner_box = np.int0(inner_box) # 转换为整数点以便于 polygon test
+ inner_box = np.int32(inner_box) # 转换为整数点以便于 polygon test
return inner_box
def classify_defects_location(self, defect_data, outer_box_data):