Line 123: |
Line 123: |
| <code>./mv_mipi_i2c.sh -w -f imgacq -p1 [0/1]</code> | | <code>./mv_mipi_i2c.sh -w -f imgacq -p1 [0/1]</code> |
| | | |
| + | Start/Stop acquisition |
| | | |
− | ./mv_mipi_i2c.sh -r -f maxwh | + | There is no image output after the camera is powered on, which means it is in the '''standby state'''. |
| | | |
− | ./mv_mipi_i2c.sh -r -f maxfps | + | After writing 1 to this register, it enters the '''running state''' and starts outputting images or waiting for the trigger signal. |
| | | |
− | 0 normal, | + | Writing 0 will stop the output image and enter the standby state. |
| | | |
− | 1 mirror,
| + | ===== trgmode ===== |
| + | <code>./mv_mipi_i2c.sh -w -f trgmode -p1 [0,2]</code> |
| | | |
− | 2 flip, | + | <code>./mv_mipi_i2c.sh -r -f trgmode</code> |
| + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0 |
| + | |Video streaming mode |
| + | |- |
| + | |1 |
| + | |Normal trigger mode. |
| + | |- |
| + | |2 |
| + | |High-speed continuous trigger mode. |
| + | |} |
| + | See product manual for details. |
| | | |
− | 3 flip&mirror
| + | ===== trgsrc ===== |
| + | <code>./mv_mipi_i2c.sh -w -f trgsrc -p1 [0,1]</code> |
| | | |
− | ./mv_mipi_i2c.sh -w -f imgdir -p1 [0,3] | + | <code>./mv_mipi_i2c.sh -r -f trgsrc</code> |
| + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0 |
| + | |Software trigger |
| + | |- |
| + | |1 |
| + | |Hardware trigger |
| + | |} |
| | | |
− | ./mv_mipi_i2c.sh -r -f imgdir | + | ===== trgnum ===== |
| + | <code>./mv_mipi_i2c.sh -w -f trgnum -p1 [1,255]</code> |
| | | |
− | 0 raw8
| + | <code>./mv_mipi_i2c.sh -r -f trgnum</code> |
| | | |
− | 1 raw10
| + | The number of image frames output by one trigger signal in trigger mode. |
| | | |
− | 2 raw12
| + | ===== trginterval ===== |
| + | <code>./mv_mipi_i2c.sh -w -f trginterval -p1 [us]</code> |
| | | |
− | 3 raw14
| + | <code>./mv_mipi_i2c.sh -r -f trginterval</code> |
| | | |
− | 4 UYVY
| + | Trigger interval in normal trigger mode, in microseconds. Range:[0.0xFFFFFF]. |
| | | |
− | ./mv_mipi_i2c.sh -w -f pixelformat -p1 [0,2] | + | ===== trgone ===== |
| + | <code>./mv_mipi_i2c.sh -w -f trgone</code> |
| | | |
− | ./mv_mipi_i2c.sh -r -f pixelformat | + | Software trigger command.One execution will perform a soft trigger. |
| | | |
− | ./mv_mipi_i2c.sh -w -f blacklevel -p1 [] | + | ===== trgcount ===== |
| + | <code>./mv_mipi_i2c.sh -r -f trgcount</code> |
| | | |
− | ./mv_mipi_i2c.sh -r -f blacklevel | + | Trigger count statistics. |
| | | |
− | ./mv_mipi_i2c.sh -w -f roi -p1 [x] -p2 [y] -p3 [width] -p4 [height] | + | Get the total number of triggers and the number of trigger loss. |
| | | |
− | ./mv_mipi_i2c.sh -r -f roi | + | <code>./mv_mipi_i2c.sh -w -f trgcountclr</code> |
| | | |
− | 1 宽竖条纹
| + | Clear trigger count. |
| | | |
− | 2 细密竖条纹
| + | ==== IO Control ==== |
| + | <br /> |
| | | |
− | ./mv_mipi_i2c.sh -w -f testimg -p1 []
| + | ==== Image Features ==== |
| | | |
− | ./mv_mipi_i2c.sh -r -f testimg | + | ===== maxwh ===== |
| + | <code>./mv_mipi_i2c.sh -r -f maxwh</code> |
| | | |
− | ./mv_mipi_i2c.sh -w -f fps -p1 [] | + | Get the maximum supported resolution of the sensor. |
| | | |
− | ./mv_mipi_i2c.sh -r -f fps | + | ===== maxfps ===== |
| + | <code>./mv_mipi_i2c.sh -r -f maxfps</code> |
| | | |
− | <br /> | + | The maximum frame rate supported in the current mode. |
| + | |
| + | Depending on the configured ROI, the maximum frame rate will be different. This parameter supports decimals. |
| + | |
| + | ===== fps ===== |
| + | <code>./mv_mipi_i2c.sh -w -f fps -p1 [framerate]</code> |
| + | |
| + | <code>./mv_mipi_i2c.sh -r -f fps</code> |
| + | |
| + | Configure the actual frame rate of the camera in the current mode. |
| + | |
| + | Range:(0,maxfps]. |
| + | |
| + | In video streaming mode, this parameter determines the actual frame rate. |
| + | |
| + | ===== roi ===== |
| + | <code>./mv_mipi_i2c.sh -w -f roi -p1 [x] -p2 [y] -p3 [width] -p4 [height]</code> |
| + | |
| + | <code>./mv_mipi_i2c.sh -r -f roi</code> |
| + | |
| + | ROI(region of interest) is the sensor output area, and the default is full screen output. |
| + | |
| + | Parameter requirements: |
| + | |
| + | [x] [y] [height] must be 4-aligned; |
| + | |
| + | [width] must be 8-aligned; |
| + | |
| + | The minimum ROI resolution will be different for different sensors. |
| + | |
| + | For example, IMX178 minimum resolution is: 376*320. |
| + | |
| + | The camera will make necessary adjustments to the user parameters to meet the parameter requirements. |
| + | |
| + | So it is highly recommended that you read out the actual ROI parameters after writing them. |
| + | |
| + | ===== imgdir ===== |
| + | <code>./mv_mipi_i2c.sh -w -f imgdir -p1 [0,3]</code> |
| + | |
| + | <code>./mv_mipi_i2c.sh -r -f imgdir</code> |
| + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0 |
| + | |normal |
| + | |- |
| + | |1 |
| + | |mirror |
| + | |- |
| + | |2 |
| + | |flip |
| + | |- |
| + | |3 |
| + | |flip&mirror |
| + | |} |
| + | The image is first flipped/mirrored and then ROI cropped. For details, please refer to the manual. |
| + | |
| + | ===== pixelformat ===== |
| + | <code>./mv_mipi_i2c.sh -w -f pixelformat -p1 [0,2]</code> |
| + | |
| + | <code>./mv_mipi_i2c.sh -r -f pixelformat</code> |
| + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0 |
| + | |Mono8 |
| + | |- |
| + | |1 |
| + | |Mono10 |
| + | |- |
| + | |2 |
| + | |Mono12 |
| + | |- |
| + | |4 |
| + | |UYVY |
| + | |} |
| + | Note that for the MV-MIPI-IMX178, the AD bits of the sensor is always 12 bits, and the logic unit performs data rounding to achieve a different pixel format. |
| + | |
| + | ===== blacklevel ===== |
| + | <code>./mv_mipi_i2c.sh -w -f blacklevel -p1 [blacklevel]</code> |
| + | |
| + | <code>./mv_mipi_i2c.sh -r -f blacklevel</code> |
| + | |
| + | This black level value will be set directly to the sensor. |
| + | |
| + | ===== testimg ===== |
| + | <code>./mv_mipi_i2c.sh -w -f testimg -p1 [0,2]</code> |
| | | |
− | ==== Image Features ====
| + | <code>./mv_mipi_i2c.sh -r -f testimg</code> |
− | <br /> | + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0 |
| + | |Normal image |
| + | |- |
| + | |1 |
| + | |Test image 1 |
| + | |- |
| + | |2 |
| + | |Test image 2 |
| + | |} |
| | | |
| ==== ISP ==== | | ==== ISP ==== |
− | <br />
| |
− |
| |
− | ==== IO Control ====
| |
| <br /> | | <br /> |
| | | |
| ==== Special Functions ==== | | ==== Special Functions ==== |
| <br /> | | <br /> |