Reputation: 1
I am able to get the RGB camera to work but not the IR sensor Here's the code that allows me to use the RGB camera
vid = cv2.VideoCapture(0)
while vid.isOpened():
ret, frame = vid.read()
if not ret:
break
cv2.imshow('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
vid.release()
cv2.destroyAllWindows()
Upvotes: 0
Views: 156