Changes

Jump to navigation Jump to search
Line 478: Line 478:     
==== ISP ====
 
==== ISP ====
<br />
     −
==== Special Functions ====
+
===== gamma =====
<br />
+
<code>./mv_mipi_i2c.sh -r -f gamma</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f gamma -p1 [gamma]</code>
 +
 
 +
Range (0,4.0],accurate is 0.01.
 +
 
 +
For now, gamma only works on 8bit depth image.
 +
 
 +
===== gammaenable =====
 +
<code>./mv_mipi_i2c.sh -r -f gammaenable</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f gammaenable -p1 [0,1]</code>
 +
 
 +
Enable/Disable gamma function.
 +
 
 +
===== dpcenable =====
 +
<code>./mv_mipi_i2c.sh -r -f dpcenable</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f dpcenable -p1 [0,1]</code>
 +
 
 +
Enable/Disable DPC(Defect Point Correction) function.
 +
 
 +
===== lutenable =====
 +
<code>./mv_mipi_i2c.sh -r -f lutenable</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f lutenable -p1 [0,1]</code>
 +
 
 +
Enable/Disable LUT(Look-Up-Table) function.
 +
 
 +
===== lut =====
 +
<code>./mv_mipi_i2c.sh -r -f lut -p1 [lutfilename]</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f lut -p1 [lutfilename]</code>
 +
 
 +
Import or export a lut curve to a file, refer to the provided lut_linear.txt for the file format.
 +
 
 +
===== expmode =====
 +
<code>./mv_mipi_i2c.sh -r -f expmode</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f expmode -p1 [0,2]</code>
 +
{| class="wikitable"
 +
!value
 +
!description
 +
|-
 +
|0
 +
|ME: manual exposure
 +
|-
 +
|1
 +
|AE once: auto exposure once
 +
|-
 +
|2
 +
|AE: auto exposure continuous
 +
|}
 +
Both ME and AE are easy to understand.
 +
 
 +
AE once: Execute one automatic exposure in the set range, then stop the adjustment.
 +
 
 +
===== metime =====
 +
<code>./mv_mipi_i2c.sh -w -f metime -p1 [us]</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -r -f metime</code>
 +
 
 +
 
 +
read back to confirm the real metime take effect
 +
 
 +
===== gainmode =====
 +
<code>./mv_mipi_i2c.sh -r -f gainmode</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -w -f gainmode -p1 [0,3]</code>
 +
{| class="wikitable"
 +
!value
 +
!description
 +
|-
 +
|0
 +
|MG: manual gain
 +
|-
 +
|1
 +
|AG once: auto gain once
 +
|-
 +
|2
 +
|AG: auto gain continuous
 +
|}
 +
Both MG and AG are easy to understand.
 +
 
 +
AG once: Execute one automatic gain in the set range, then stop the adjustment.
 +
 
 +
 
 +
 
 +
<nowiki>#</nowiki> read back to confirm the real mgain take effect
 +
 
 +
./mv_mipi_i2c.sh -w -f mgain -p1 2.3
 +
 
 +
./mv_mipi_i2c.sh -r -f mgain
 +
 
 +
./mv_mipi_i2c.sh -r -f aatarget
 +
 
 +
./mv_mipi_i2c.sh -w -f aatarget -p1 [1,255]
 +
 
 +
./mv_mipi_i2c.sh -r -f aemaxtime
 +
 
 +
./mv_mipi_i2c.sh -w -f aemaxtime -p1 []
 +
 
 +
./mv_mipi_i2c.sh -r -f exptime
 +
 
 +
./mv_mipi_i2c.sh -r -f curgain
 +
 
 +
./mv_mipi_i2c.sh -r -f agmaxgain
 +
 
 +
./mv_mipi_i2c.sh -w -f agmaxgain -p1 []
 +
 
 +
./mv_mipi_i2c.sh -w -f aaroi -p1 [x] -p2 [y] -p3 [width] -p4 [height]
 +
 
 +
./mv_mipi_i2c.sh -r -f aaroi
 +
 
 +
./mv_mipi_i2c.sh -w -f aaroienable -p1 [0,1]
 +
 
 +
./mv_mipi_i2c.sh -r -f aaroienable
 +
 
 +
<nowiki>#</nowiki>run ae ag once and save as manual value
 +
 
 +
./mv_mipi_i2c.sh -w -f aeag_run_once_save<br />
 +
 
 +
==== Notes: ====
 +
Note1: All parameters of exposure time are in microseconds. However, due to the properties of the sensor, the actual exposure time unit of the sensor is 1 line, can not be accurate to 1us.
 +
 
 +
Note2:For all gain-related parameters, the register value is 10 times the number of dB. For example, if the register is 101, it means 10.1dB. The range and step vary according to the model.
 +
 
 +
Note3: AE: Auto exposure; AG: Auto Gain; AA: AE and AG.
 +
 
 +
Note4: The AAROI coordinates are relative coordinates within the roi range.<br />

Navigation menu