Answers for "how to capture a single photo with webcam opencv"

1

how to capture a single photo with webcam opencv

cam = cv2.VideoCapture(0)

image = cam.read()[1]

cv2.imshow("image", image)

cv2.waitKey(0)
cv2.destroyAllWindows()
Posted by: Guest on December-01-2020

Code answers related to "how to capture a single photo with webcam opencv"

Python Answers by Framework

Browse Popular Code Answers by Language