Merge pull request #21590 from berak:patch-1
This commit is contained in:
commit
e8db363431
@ -187,7 +187,7 @@ def main():
|
|||||||
indices = cv.dnn.NMSBoxesRotated(boxes, confidences, confThreshold, nmsThreshold)
|
indices = cv.dnn.NMSBoxesRotated(boxes, confidences, confThreshold, nmsThreshold)
|
||||||
for i in indices:
|
for i in indices:
|
||||||
# get 4 corners of the rotated rect
|
# get 4 corners of the rotated rect
|
||||||
vertices = cv.boxPoints(boxes[i[0]])
|
vertices = cv.boxPoints(boxes[i])
|
||||||
# scale the bounding box coordinates based on the respective ratios
|
# scale the bounding box coordinates based on the respective ratios
|
||||||
for j in range(4):
|
for j in range(4):
|
||||||
vertices[j][0] *= rW
|
vertices[j][0] *= rW
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user