归一化坐标改用result.original_image.shape[:2]
This commit is contained in:
parent
d4151c2dab
commit
3d6210adb8
@ -459,7 +459,7 @@ class YOLOSegmentationInference:
|
||||
approx = cv2.approxPolyDP(contour, epsilon, True)
|
||||
|
||||
# 归一化坐标
|
||||
h, w = mask.shape
|
||||
h, w = result.original_image.shape[:2]
|
||||
points = []
|
||||
for point in approx:
|
||||
x = point[0][0] / w
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user