I using the Nvidia Jetson Nano and a Paspberry Pi NoIR Camera V2. https://www.raspberrypi.org/products/pi-noir-camera-v2/
When ich using cv2, my output is a green srceen.
But when I using a normal USB-Cam than run fine.
I don’t know why. I hope any of you already solved this problem.
This is my code:
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, im= cap.read()
# Display the resulting frame
cv2.imshow('frame', im)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()