First time here? Check out the FAQ!
answered 2017-04-07 23:36:26 -0600
typical n00b error, you forgot to check:
cam.isOpened()
ret==True
so, cv2.cvtColor encountered an empty image, and thew an exception.
cv2.cvtColor