2Burnt4Bread
2Burnt4Bread

Reputation: 1

How to read the Kinect v2 IR sensor using Opencv in python

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

Answers (0)

Related Questions