调试ar0231 sensor宽动态范围

驱动配置

Ambarella Linux Configuration >Ambarella Private Drivers Configuration > Build Ambarella private Vin modules > Ambarella Sensor Configuration

sensor has to work under Wide Dynamic Range (WDR) mode, thus the LUA script used to enter preview needs to be modified as below:

vsrc_0 = {

vsrc_id = 0,

mode = "1080p",

- hdr_mode = "linear", -- options: "linear", "2x" or "3x"

+ hdr_mode = "wdr", -- options: "linear", "2x" or "3x"

fps = 30,

bits= 0,

}

vsrc_1 = {

vsrc_id = 1,

mode = "1080p",

- hdr_mode = "linear", -- options: "linear", "2x" or "3x"

+ hdr_mode = "wdr", -- options: "linear", "2x" or "3x"

fps = 30,

bits= 0,

}

    amba_debug -g 164 -d 1
    init.sh --na

rmmod ambarella_fb

 modprobe ambarella_fb mode=clut8bpp resolution=1920x1080

    modprobe ar0231_mipi vinc_id=0x13 slave=1 trigger_gpio=3
    test_encode --check-disable-all  1

preview:
    test_tuning -a &
    test_encode --resource-cfg /usr/local/bin/scripts/cv2_vin0_1_1080p_linear.lua --hdmi 1080p --enc-mode 0

下面这一步就是算disparity 并且显示
cv2 # test_stereo_server --fb-dsi 1 -f /root &
            test_stereo_server --fb-dsi 1 -n &
cv2 # modprobe cavalry
cv2 # cavalry_load -f /lib/firmware/cavalry.bin -r
cv2 # test_cavalry_stereo_live -b /usr/local/vproc/vproc.bin --sb 2

The stereo package consists of three parts: the calibration tool, the spreadsheet, and utility tools.

发布了52 篇原创文章 · 获赞 6 · 访问量 3073

猜你喜欢

转载自blog.csdn.net/lx123010/article/details/104029609