Hello. I have two scripts to get image from sensor:
By argus:
gst-launch-1.0 nvarguscamerasrc exposuretimerange="100000 100000" ispdigitalgainrange="1 1" gainrange="18 18" saturation = 2 sensor_mode=1 aelock=true silent=false wbmode="off" ! 'video/x-raw(memory:NVMM),width=4096, height=3072, framerate=10/1, format=NV12' ! nvjpegenc ! multifilesink post-messages=true location="frame%d.jpg"
And by v4l2
v4l2-ctl -d /dev/video0 --verbose --set-fmt-video=width=4096,height=3072,pixelformat=GB12 --set-ctrl bypass_mode=0,sensor_mode=0,exposure=100,gain=18,frame_rate=10000000 --stream-mmap --stream-to=frame.raw --stream-count=10 With then debayering frame.raw by opencv.
Here results.
Which argus controls/settings need I disable to get image similar to what I get with v4l2?
Hello @kasapovamir9
This could be related to the pixel phase you are using for your camera.
What sensor are you working with? Could you please share your device tree? What value are you using for the pixel_phase of your sensor node?
Regards,
Francis Guindon
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: http://www.ridgerun.com/
What’s the problem? distorts or color?
Looks like different sensor mode for this two command.
Hello. Problem in color. With v4l2-ctl -d /dev/video0 --verbose --set-fmt-video=width=4096,height=3072,pixelformat=GB12 --set-ctrl bypass_mode=0,sensor_mode=1,exposure=100,gain=18,frame_rate=10000000 --stream-mmap --stream-to=frame.raw --stream-count=10I get the same picture as with sensor_mode=0 on v4l2.
Hello. Sensor is GMAX3412. pixel_phase is set to gbrg.
- Dump the device tree to check the badge information.
sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree
- Remove the ISP file *.isp *.bin at /var/nvidia/nvcam/settings/
modules {
module1 {
badge = "jakku_rear_RBP194";
position = "rear";
orientation = [31 00];
phandle = <0x495>;
drivernode0 {
devname = "gmax3412 10-0010";
proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/iv_gmax3412_c@10";
pcl_id = "v4l2_sensor";
phandle = <0x496>;
};
drivernode1 {
proc-device-tree = "/proc/device-tree/lens_gmax3412@RBPCV2/";
pcl_id = "v4l2_lens";
phandle = <0x497>;
};
};
module0 {
badge = "jakku_front_RBP194";
position = "front";
orientation = [31 00];
phandle = <0x492>;
drivernode0 {
devname = "gmax3412 9-0010";
proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/iv_gmax3412_a@10";
pcl_id = "v4l2_sensor";
phandle = <0x493>;
};
drivernode1 {
proc-device-tree = "/proc/device-tree/lens_gmax3412@RBPCV2/";
pcl_id = "v4l2_lens";
phandle = <0x494>;
};
};
};
- In
/var/nvidia/nvcam/settings/there are onlynvcam_cache_1.binandserial_no_1.bin.
Don’t use “_RBP194” strings from any reference sensors.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

