Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Basics/Read_Image_Video_Webcam.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

######################## READ IMAGE ############################
# import cv2
# # LOAD AN IMAGE USING 'IMREAD'
Expand All @@ -20,6 +19,7 @@
# break
######################### READ WEBCAM ############################
import cv2

frameWidth = 640
frameHeight = 480
cap = cv2.VideoCapture(0)
Expand All @@ -28,5 +28,5 @@
while True:
success, img = cap.read()
cv2.imshow("Result", img)
if cv2.waitKey(1) & 0xFF == ord('q'):
if cv2.waitKey(1) & 0xFF == ord("q"):
break