Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
78
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
  2.  
  3. capture=cv2.VideoCapture(0)
  4. img = capture.read()
  5. cv2.imwrite(img, "a.png")
  6. capture.release()
  7. cv2.destroyAllWindows()
  8.  
  9. Error:
  10. File "cv.py", line 5,...
  11.     cv2.imwrite(img, "a.png")
  12. TypeError : bad argument type for built-in operation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement