Skip to content

Commit 3ad8dfe

Browse files
committed
Update
1 parent bab4b3b commit 3ad8dfe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ def showNormalizedImage(name, normalized_image):
3232
x4 = result.x4
3333
y4 = result.y4
3434

35+
print(x1, y1, x2, y2, x3, y3, x4, y4)
36+
3537
normalized_image = scanner.normalizeFile("images/1.png", x1, y1, x2, y2, x3, y3, x4, y4)
36-
showNormalizedImage("Normalized Image", normalized_image)
37-
cv2.drawContours(image, [np.int0([(x1, y1), (x2, y2), (x3, y3), (x4, y4)])], 0, (0, 255, 0), 2)
38+
# showNormalizedImage("Normalized Image", normalized_image)
39+
# cv2.drawContours(image, [np.int0([(x1, y1), (x2, y2), (x3, y3), (x4, y4)])], 0, (0, 255, 0), 2)
3840

39-
cv2.imshow('Document Image', image)
40-
cv2.waitKey(0)
41+
# cv2.imshow('Document Image', image)
42+
# cv2.waitKey(0)
4143

4244

4345
# detectMat()

0 commit comments

Comments
 (0)