hello, i have run the camera rasberry using this code from toptechboy.com :
import cv2
print(cv2.version)
dispW=1280
dispH=720
flip=2 #Uncomment These next Two Line for Pi Camera
camSet=‘nvarguscamerasrc wbmode=3 tnr-mode=2 tnr-strength=1 ee-mode=2 ee-strength=1 gainrange=high ! video/x-raw(memory:NVMM), width=3264, height=2464, format=NV12, framerate=21/1 ! nvvidconv flip-method=’+str(flip)+’ ! video/x-raw, width=‘+str(dispW)+’, height=‘+str(dispH)+’, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! videobalance contrast=1.5 brightness=-.2 saturation=1.2 ! appsink’
cam= cv2.VideoCapture(camSet)
#Or, if you have a WEB cam, uncomment the next line
#cam=cv2.VideoCapture(‘/dev/video1’)
while True:
ret, frame = cam.read()
cv2.imshow(‘nanoCam’,frame)
cv2.moveWindow(‘nanoCam’,0,0)
if cv2.waitKey(1)==ord(‘q’):
break
cam.release()
cv2.destroyAllWindows()
i tried tnr-mode and gainrange but it do nothing and i know its a programmation problem cause when i run on the terminal :
gst-launch-1.0 nvarguscamerasrc ispdigitalgainrange=‘1 1’ ! capsfilter caps=‘video/x-raw(memory:NVMM),width=(int)1920,height=(int)1080,format=(string)NV12,framerate=(fraction)30/1’ ! nvvidconv flip-method=2 ! nvoverlaysink -e
there is no probleme but the camera detect nothing in the dark compare to when i use the code-oss
Hi,
If you are looking for camera with better image quality, you may consider use camera modules from our partners. Jetson Ecosystem | NVIDIA Developer
normally the v2 camera don’t have this problem i saw a video from toptechboy.com and his camera and setup are the same from mine and there is too much option in the link you give me could you suggest me a good camera that will fit the jetson nano board cause i know at a certain point even if the camera is good the jetson nano can’t no keep up.