alliedvision / linux_nvidia_jetson

Allied Vision CSI-2 camera driver for NVIDIA Jetson Systems.
104 stars 41 forks source link

dark Images with Jetson Nano and Jetpack 4.3 #6

Open alexisguiter opened 4 years ago

alexisguiter commented 4 years ago

Hi,

I've just installed the drivers and tested the example codes (e.g. gstreamer_live.sh) and I get an image, but the exposure is very low. I can only see the lights in the room, everything else is dark.

For reference I have am using the 1800-158c and 1800-C-319c. Both via CSI interface. I don't get any error message either. I'm running on the Jetson Nano B01 revision and jetpack 4.3. I tried the Gstreamer and V4L scripts given by allied vision in their git repository and I keep getting the same issue

Any suggestions on how to solve this? I'm a little stuck

Attached is a picture of lights taken by the allied vision camera (319c), as you can see the exposure is too low.

out

alexisguiter commented 4 years ago

I believe I managed to figure it out.

In the example code "gstreamer_live.sh" provided by allied vision, I changed the pipline to this:

gst-launch-1.0 $VIDEOSRC extra-controls=s,exposure=1999999 device=$DEVICE ! video/x-raw, format=BGRx ! fpsdisplaysink text-overlay=true signal-fps-measurements=true video-sink= $VIDEOSINK

by adding "extra-controls" I was able to manually set the exposure. I still need to understand why the camera's auto exposure is malfunctioning, but this will do for now.

lorenzwu commented 4 years ago

you can set your settings via v4l2. for example: v4l2-ctl --set-ctrl exposure=... v4l2-ctl --set-ctrl exposure_absolute=... or v4l2-ctl --set-ctrl exposure_auto=0 (0 is auto)

you need sudo apt-get install v4l-utils if you don't have already

there is an open bug though, where the autoexposure lowers the frame rate but does not raise it back up for video streaming. I have already reported that and they said they were trying to fix this with the next driver update