Skip to content

附录

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 NameTypeRequiredDescription
cameraIdstringNoCamera ID
triggerWayintYesTrigger mode. 0: IO trigger, 1: Continuous trigger.
rimTypeintNoEdge setting. 0: Rising edge, 1: Falling edge. Required when trigger mode is IO trigger.
triggerDelayintNoMinimum trigger interval (ms). Required when trigger mode is IO trigger.
debounceintNoDebounce interval (ms). Required when trigger mode is IO trigger.
inputChannelintNoIO input type.
widthintYesImage width.
heightintYesImage height.
fpsintFPS. Required when auto exposure is disabled.
formatintYesCamera encoding, only supports 35 (YUV_420_888).
exposureMeteringModeintNoExposure metering mode.
autoExposureboolYesAuto exposure. true: enabled, false: disabled.
exposureCompensationfloatNoExposure compensation. Required and effective when auto exposure is enabled.
exposureTimelongNoExposure time (us). Required when auto exposure is disabled.
sensitivityintNoISO sensitivity. Required when auto exposure is disabled.
autoFocusboolYesAuto focus.
customWhiteBalanceboolYesCustom white balance.
autoWhiteBalanceModeintNoAuto white balance mode. Required and effective when custom white balance is disabled.
autoWhiteBalanceLockboolNoWhether auto white balance is currently locked to the latest calculated value. Effective when auto white balance is enabled.
customWhiteBalanceModeintNoCustom white balance mode. Required and effective when custom white balance is enabled.
colorCorrectionGainsarrayNoColor correction gains (4-element float array). Required and effective for RGB gains. Example: [1.0, 1.0, 1.0, 1.0]
colorCorrectionTransformarrayNoColor 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]
colorTemperatureintNoColor temperature. Example: 5500
saturationLevelintNoSaturation level control.
sharpnessControlintNoSharpness control level.
enableMFNRboolNoEnable or disable multi-frame noise reduction (MFNR).
contrastintYesContrast. Value: 0 - 100
sharpnessintYesSharpness. Value: 0 - 100
saturationintYesSaturation. 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
}