附录
APPENDIX
MIPI Camera Configuration File
The content, location, and file name of the parameter configuration file can be defined by the user, but the format and parameters must follow the requirements below:
- Configuration file must be in JSON format.
- Parameters marked as required or required due to enabled switch parameters must be configured.
- Parameter names (case-sensitive) and types must comply with the requirements in the table below.
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| cameraId | string | No | Camera ID |
| triggerWay | int | Yes | Trigger mode. 0: IO trigger, 1: Continuous trigger. |
| rimType | int | No | Edge setting. 0: Rising edge, 1: Falling edge. Required when trigger mode is IO trigger. |
| triggerDelay | int | No | Minimum trigger interval (ms). Required when trigger mode is IO trigger. |
| debounce | int | No | Debounce interval (ms). Required when trigger mode is IO trigger. |
| inputChannel | int | No | IO input type. |
| width | int | Yes | Image width. |
| height | int | Yes | Image height. |
| fps | int | FPS. Required when auto exposure is disabled. | |
| format | int | Yes | Camera encoding, only supports 35 (YUV_420_888). |
| exposureMeteringMode | int | No | Exposure metering mode. |
| autoExposure | bool | Yes | Auto exposure. true: enabled, false: disabled. |
| exposureCompensation | float | No | Exposure compensation. Required and effective when auto exposure is enabled. |
| exposureTime | long | No | Exposure time (us). Required when auto exposure is disabled. |
| sensitivity | int | No | ISO sensitivity. Required when auto exposure is disabled. |
| autoFocus | bool | Yes | Auto focus. |
| customWhiteBalance | bool | Yes | Custom white balance. |
| autoWhiteBalanceMode | int | No | Auto white balance mode. Required and effective when custom white balance is disabled. |
| autoWhiteBalanceLock | bool | No | Whether auto white balance is currently locked to the latest calculated value. Effective when auto white balance is enabled. |
| customWhiteBalanceMode | int | No | Custom white balance mode. Required and effective when custom white balance is enabled. |
| colorCorrectionGains | array | No | Color correction gains (4-element float array). Required and effective for RGB gains. Example: [1.0, 1.0, 1.0, 1.0] |
| colorCorrectionTransform | array | No | Color correction transform (18-element int array). Example: [1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1] |
| colorTemperature | int | No | Color temperature. Example: 5500 |
| saturationLevel | int | No | Saturation level control. |
| sharpnessControl | int | No | Sharpness control level. |
| enableMFNR | bool | No | Enable or disable multi-frame noise reduction (MFNR). |
| contrast | int | Yes | Contrast. Value: 0 - 100 |
| sharpness | int | Yes | Sharpness. Value: 0 - 100 |
| saturation | int | Yes | Saturation. Value: 0 - 100 |
Reference configuration file content:
json
{
"triggerWay": 1,
"rimType": 1,
"triggerDelay": 0,
"width": 640,
"height": 480,
"fps": 30,
"format": 35,
"autoExposure": true,
"exposureCompensation": 0,
"exposureTime": 20000,
"sensitivity": 500,
"autoFocus": true,
"customWhiteBalance": false,
"autoWhiteBalanceMode": 1,
"autoWhiteBalanceLock": false,
"customWhiteBalanceMode": 1,
"colorCorrectionGains": [1.0, 1.0, 1.0, 1.0],
"contrast": 0,
"sharpness": 0,
"saturation": 0
}