1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #20742 from UnaNancyOwen:fix_text_detection

This commit is contained in:
Alexander Alekhin
2021-09-24 10:56:22 +00:00
+2 -2
View File
@@ -214,8 +214,8 @@ def main():
0.5, (255, 0, 0))
for j in range(4):
p1 = (vertices[j][0], vertices[j][1])
p2 = (vertices[(j + 1) % 4][0], vertices[(j + 1) % 4][1])
p1 = (int(vertices[j][0]), int(vertices[j][1]))
p2 = (int(vertices[(j + 1) % 4][0]), int(vertices[(j + 1) % 4][1]))
cv.line(frame, p1, p2, (0, 255, 0), 1)
# Put efficiency information