Advertisement
CamolaZ

Webcam

Jan 24th, 2020
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import cv2, time
  2.  
  3. #1. Create an object. Zero for external camera
  4. video=cv2.VideoCapture(0)
  5.  
  6. #3. Create a frame object
  7. check, frame = video.read()
  8.  
  9. print(check)
  10. print(frame) #Representing image
  11.  
  12.  
  13. #2. Shutdown the camera
  14. video.release()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement