import cv2 import numpy as np WINDOW_NAME=("WEBCAM") webcam = cv2.VideoCapture(0) #Read Shooting images while 1: ret, Shooting_images = webcam.read() cv2.imshow(WINDOW_NAME,Shooting_images) k = cv2.waitKey(5) & 0xFF if k == 27: break #press ESC leave cv2.destroyAllWindows()
No comments:
Post a Comment