Skip to content

Commit 3bd7440

Browse files
committed
Update
1 parent 258d59e commit 3bd7440

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/official/file.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def convertNormalizedImage2Mat(normalized_image):
9999
x4 = location.points[3].x
100100
y4 = location.points[3].y
101101

102+
del location
103+
102104
cv2.drawContours(
103105
cv_image, [np.intp([(x1, y1), (x2, y2), (x3, y3), (x4, y4)])], 0, (0, 255, 0), 2)
104106
cv2.imshow(

examples/official/orientation_detection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def convertNormalizedImage2Mat(normalized_image):
108108
x4 = location.points[3].x
109109
y4 = location.points[3].y
110110

111+
del location
112+
111113
cv2.drawContours(
112114
cv_image, [np.intp([(x1, y1), (x2, y2), (x3, y3), (x4, y4)])], 0, (0, 255, 0), 2)
113115
cv2.putText(cv_image, f"Rotation: {rotation_angle} degrees", (10, 50),

0 commit comments

Comments
 (0)