소스 검색

int0异常

AnlaAnla 3 주 전
부모
커밋
26bd0fdd72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):