AnlaAnla 3 tygodni temu
rodzic
commit
26bd0fdd72
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/utils/defect_inference/ClassifyEdgeCorner.py

+ 1 - 1
app/utils/defect_inference/ClassifyEdgeCorner.py

@@ -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):