Line 1: |
Line 1: |
| + | [[5m mipi i2c user guide|English]] |
| + | |
| === 介绍 === | | === 介绍 === |
| 本脚本为开源程序,通过是对i2c寄存器的直接访问达到配置摄像头模组的目的。 | | 本脚本为开源程序,通过是对i2c寄存器的直接访问达到配置摄像头模组的目的。 |
Line 22: |
Line 24: |
| | | |
| -d [i2c addr] i2c addr if not default 0x3b | | -d [i2c addr] i2c addr if not default 0x3b |
| + | ===不同板子上的i2c序号=== |
| + | 请参考下面的文章,确定你所需要使用的-b参数。 |
| | | |
− | ==== i2c bus的说明 ====
| + | [http://wiki.veye.cc/index.php/I2c_bus_number_and_video_node i2c bus number on different boards] |
− | [[VEYE CS Camera for Jetson TX2#Video Control Toolkits Manual|jetson平台i2cbus的说明]]
| + | ===功能列表=== |
− | | |
− | ==== 格式说明 ====
| |
| 下列代码中[param]方括号中的部分,表示变量。 | | 下列代码中[param]方括号中的部分,表示变量。 |
− |
| |
− | ==== 使用详解 ====
| |
| | | |
| ===== manufacturer ===== | | ===== manufacturer ===== |
Line 259: |
Line 259: |
| | | |
| ===== mshutter ===== | | ===== mshutter ===== |
− | <code>./veye5_mipi_i2c.sh -w -f mshutter -p1 [0,0x0B]</code> | + | <code>./veye5_mipi_i2c.sh -w -f mshutter -p1 [0,0x0A]</code> |
| | | |
| <code>./veye5_mipi_i2c.sh -r -f mshutter</code> | | <code>./veye5_mipi_i2c.sh -r -f mshutter</code> |
Line 267: |
Line 267: |
| <nowiki>#</nowiki>0,auto; others, manual value | | <nowiki>#</nowiki>0,auto; others, manual value |
| {| class="wikitable" | | {| class="wikitable" |
− | ! rowspan="3" |mshutter value | + | ! rowspan="3" |手动快门参数 |
| (manual value) | | (manual value) |
− | ! colspan="5" |Exposure time | + | ! colspan="5" |曝光时间 |
| |- | | |- |
| ! rowspan="2" |4M 30FPS | | ! rowspan="2" |4M 30FPS |
Line 280: |
Line 280: |
| |- | | |- |
| |0x00 | | |0x00 |
− | |AUTO | + | |自动快门 |
− | |AUTO | + | |自动快门 |
− | |AUTO | + | |自动快门 |
− | |AUTO | + | |自动快门 |
− | |AUTO | + | |自动快门 |
| |- | | |- |
− | |0x01 | + | | 0x01 |
| |1/30 | | |1/30 |
| |1/25 | | |1/25 |
Line 355: |
Line 355: |
| |1/76923 | | |1/76923 |
| |1/50000 | | |1/50000 |
| + | |- |
| + | |0x0B - 0x0F |
| + | |1/30 |
| + | |1/25 |
| + | |1/20 |
| + | |1/20 |
| + | |1/12.5 |
| |} | | |} |
| | | |
Line 395: |
Line 402: |
| | | |
| ===== sharppen ===== | | ===== sharppen ===== |
− | <code>./veye5_mipi_i2c.sh -w -f sharppen -p1 [0,0x0f]</code> | + | <code>./veye5_mipi_i2c.sh -w -f sharppen -p1 [0x10,0x1D]</code> |
| | | |
| <code>./veye5_mipi_i2c.sh -r -f sharppen</code> | | <code>./veye5_mipi_i2c.sh -r -f sharppen</code> |
Line 404: |
Line 411: |
| !description | | !description |
| |- | | |- |
− | |0x00 | + | |0x10 |
| |关闭 | | |关闭 |
| |- | | |- |
− | | 0x09 | + | | 0x19 |
| |low | | |low |
| |- | | |- |
− | |0x0B | + | |0x1B |
| |middle | | |middle |
| |- | | |- |
− | |0x0C | + | |0x1D |
| |high | | |high |
| |} | | |} |
| | | |
− | <br /> | + | ===== saturation ===== |
| + | <code>./veye5_mipi_i2c.sh -w -f saturation -p1 [0,0x0A]</code> |
| + | |
| + | <code>./veye5_mipi_i2c.sh -r -f saturation</code> |
| + | |
| + | 饱和度配置,默认为0xA。 |
| + | |
| + | ===== extra_color_gain ===== |
| + | <code>./veye5_mipi_i2c.sh -w -f extra_color_gain -p1 [0,0xFF]</code> |
| + | |
| + | <code>./veye5_mipi_i2c.sh -r -f extra_color_gain</code> |
| + | |
| + | 额外色彩增益,默认为0xC0。 |