Bruce
0
Q:

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()
1

New to Communities?

Join the community