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

122 Views Asked by At

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()
0

There are 0 best solutions below