Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c005580

Browse files
committed
image
1 parent 44fb652 commit c005580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

my10-识别二维码/QR_Scaner1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
def main():
1717
fp = 'macbookPro.jpg'
18-
# img = Image.open(fp)
19-
# img.show()
18+
# image = Image.open(fp)
19+
# image.show()
2020
image = cv2.imread(fp)
2121
barcodes = decode(image)
2222
decoded = barcodes[0]
@@ -51,7 +51,7 @@ def main():
5151

5252
# show the output image
5353
cv2.imshow("Image", image)
54-
cv2.imwrite('macbook_qr_rect.jpg', image)
54+
# cv2.imwrite('macbook_qr_rect.jpg', image)
5555
cv2.waitKey(0) # 按任意键退出
5656

5757

0 commit comments

Comments
 (0)