Csi camera v2 rasberry noice (old tv static)

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,
You can try the gst-launch-1.0 commands like:

gst-launch-1.0 nvarguscamerasrc ! nvoverlaysink

to make sure it works in gst-launch-1.0 commands first, and then can apply the string to OpenCV like:

nvarguscamerasrc ! nvvidconv ! video/x-raw,format-BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink

You may also try the sample:
OpenCV Video Capture with GStreamer doesn't work on ROS-melodic - #3 by DaneLLL

gstreamer work but its really the noice graine option (tnr mode ) that i put in the open cv program who don’t work or maybe it work but no efficiently

I receive a image when using gstreamer but the noice grain make it horrible

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.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.