Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c91a777

Browse files
Update webcam-capture-v1.01.py
1 parent 4dc5e47 commit c91a777

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎webcam-capture-v1.01.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
img_new = cv2.imshow("Captured Image", img_new)
1717
cv2.waitKey(1650)
1818
cv2.destroyAllWindows()
19+
print("Processing image...")
1920
img_ = cv2.imread('saved_img.jpg', cv2.IMREAD_ANYCOLOR)
2021
gray = cv2.cvtColor(img_, cv2.COLOR_BGR2GRAY)
2122
img_ = cv2.resize(gray,(28,28))
2223
img_resized = cv2.imwrite(filename='saved_img-final.jpg', img=img_)
23-
24+
print("Image saved!")
25+
2426
break
2527
elif key == ord('q'):
2628
print("Turning off camera.")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /