|
| 1 | +menuconfig CAMERA_OS02N10 |
| 2 | + bool "OS02N10" |
| 3 | + default n |
| 4 | + depends on SOC_MIPI_CSI_SUPPORTED |
| 5 | + help |
| 6 | + Enable support for the OS02N10 CMOS image sensor. |
| 7 | + |
| 8 | +if CAMERA_OS02N10 |
| 9 | + menu "Auto detect OS02N10" |
| 10 | + config CAMERA_OS02N10_AUTO_DETECT_MIPI_INTERFACE_SENSOR |
| 11 | + bool "Detect for MIPI CSI interface sensor" |
| 12 | + default y |
| 13 | + depends on SOC_MIPI_CSI_SUPPORTED |
| 14 | + help |
| 15 | + When enabled, the OS02N10 sensor will be automatically detected |
| 16 | + and initialized on the MIPI CSI interface at startup without requiring |
| 17 | + manual detection call(os02n10_detect) in your application. |
| 18 | + endmenu |
| 19 | + |
| 20 | + config CAMERA_OS02N10_SID_HIGH |
| 21 | + bool "Set SID pin to high" |
| 22 | + default n |
| 23 | + help |
| 24 | + This option allows you to configure the sensor ID. When the SID pin uses a high level, |
| 25 | + the sensor ID will be configured as 0x3d, otherwise, the sensor ID will be configured as 0x3c. |
| 26 | + |
| 27 | + choice CAMERA_OS02N10_MIPI_DEFAULT_FMT |
| 28 | + prompt "Select default output format for MIPI CSI interface" |
| 29 | + default CAMERA_OS02N10_MIPI_RAW8_1920X1080_25FPS |
| 30 | + depends on SOC_MIPI_CSI_SUPPORTED |
| 31 | + help |
| 32 | + This option allows you to select the default video format for the OS02N10 sensor |
| 33 | + when it is initialized on the MIPI CSI interface. The selected format will be used |
| 34 | + when the sensor is detected and initialized, and can be changed later when the |
| 35 | + sensor is in stream off state. |
| 36 | + |
| 37 | + config CAMERA_OS02N10_MIPI_RAW10_1920X1080_25FPS |
| 38 | + bool "RAW10 1920x1080 25fps, MIPI 2-lane, 24M input" |
| 39 | + help |
| 40 | + RAW10 color format at 1920x1080 resolution (HD) with 25fps framerate. |
| 41 | + Requires MIPI CSI-2 2-lane interface with 24MHz input clock. |
| 42 | + config CAMERA_OS02N10_MIPI_RAW10_1280X720_50FPS |
| 43 | + bool "RAW10 1280x720 50fps, MIPI 2-lane, 24M input" |
| 44 | + help |
| 45 | + RAW10 color format at 1280x720 resolution (HD) with 50fps framerate. |
| 46 | + Requires MIPI CSI-2 2-lane interface with 24MHz input clock. |
| 47 | + config CAMERA_OS02N10_MIPI_RAW8_1920X1080_25FPS |
| 48 | + bool "RAW8 1920x1080 25fps, MIPI 2-lane, 24M input" |
| 49 | + help |
| 50 | + RAW8 color format at 1920x1080 resolution (HD) with 25fps framerate. |
| 51 | + Requires MIPI CSI-2 2-lane interface with 24MHz input clock. |
| 52 | + config CAMERA_OS02N10_MIPI_RAW8_1280X720_50FPS |
| 53 | + bool "RAW8 1280x720 50fps, MIPI 2-lane, 24M input" |
| 54 | + help |
| 55 | + RAW8 color format at 1280x720 resolution (HD) with 50fps framerate. |
| 56 | + Requires MIPI CSI-2 2-lane interface with 24MHz input clock. |
| 57 | + config CAMERA_OS02N10_MIPI_RAW8_960x540_25FPS |
| 58 | + bool "RAW8 960x540 25fps, MIPI 2-lane, 24M input" |
| 59 | + help |
| 60 | + RAW8 color format at 960x540 resolution with 25fps framerate. |
| 61 | + Requires MIPI CSI-2 2-lane interface with 24MHz input clock. |
| 62 | + endchoice # CAMERA_OS02N10_MIPI_DEFAULT_FMT |
| 63 | + |
| 64 | + config CAMERA_OS02N10_MIPI_IF_FORMAT_INDEX_DEFAULT |
| 65 | + int |
| 66 | + depends on SOC_MIPI_CSI_SUPPORTED |
| 67 | + default 0 if CAMERA_OS02N10_MIPI_RAW10_1920X1080_25FPS |
| 68 | + default 1 if CAMERA_OS02N10_MIPI_RAW10_1280X720_50FPS |
| 69 | + default 2 if CAMERA_OS02N10_MIPI_RAW8_1920X1080_25FPS |
| 70 | + default 3 if CAMERA_OS02N10_MIPI_RAW8_1280X720_50FPS |
| 71 | + default 4 if CAMERA_OS02N10_MIPI_RAW8_960x540_25FPS |
| 72 | + help |
| 73 | + Sets the default configuration for the MIPI CSI interface. |
| 74 | + Use query_support_formats() API to get more format options. |
| 75 | + |
| 76 | + config CAMERA_OS02N10_ABSOLUTE_GAIN_LIMIT |
| 77 | + int "Maximum absolute gain limit (x1000)" |
| 78 | + default 10000 |
| 79 | + range 4000 16468 |
| 80 | + help |
| 81 | + Set the maximum gain limit that can be applied by upper-level applications. |
| 82 | + |
| 83 | + Value is gain multiplied by 1000 to avoid floating-point arithmetic: |
| 84 | + - 4000 = 4x gain (minimum) |
| 85 | + - 16000 = 16x gain (default) |
| 86 | + - 16468 = 16.468x gain (maximum) |
| 87 | + |
| 88 | + Lower values reduce noise but may limit low-light performance. |
| 89 | + Higher values improve low-light sensitivity but increase noise and |
| 90 | + may cause sensor overheating. |
| 91 | + |
| 92 | + choice CAMERA_OS02N10_IPA_JSON_CONFIGURATION_FILE |
| 93 | + prompt "IPA Configuration File" |
| 94 | + default CAMERA_OS02N10_DEFAULT_IPA_JSON_CONFIGURATION_FILE |
| 95 | + help |
| 96 | + Select the Image Processing Algorithm (IPA) JSON configuration file |
| 97 | + for the OS02N10 sensor. |
| 98 | + |
| 99 | + config CAMERA_OS02N10_DEFAULT_IPA_JSON_CONFIGURATION_FILE |
| 100 | + bool "Use default configuration" |
| 101 | + help |
| 102 | + Use the built-in default IPA configuration file: |
| 103 | + "esp_cam_sensor/sensors/os02n10/cfg/os02n10_default.json" |
| 104 | + |
| 105 | + This configuration provides optimized settings for general use cases |
| 106 | + and is recommended for most applications. |
| 107 | + |
| 108 | + config CAMERA_OS02N10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE |
| 109 | + bool "Use custom configuration" |
| 110 | + help |
| 111 | + Use a custom IPA configuration file with your own optimized settings. |
| 112 | + |
| 113 | + This option allows you to fine-tune sensor parameters for specific |
| 114 | + lighting conditions, color requirements, or application needs. |
| 115 | + |
| 116 | + You must specify the custom file path in the configuration below. |
| 117 | + endchoice |
| 118 | + |
| 119 | + config CAMERA_OS02N10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE_PATH |
| 120 | + string "Custom IPA configuration file path" |
| 121 | + depends on CAMERA_OS02N10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE |
| 122 | + help |
| 123 | + Specify the path to your custom OS02N10 IPA JSON configuration file. |
| 124 | + |
| 125 | + The path is relative to your project root directory. |
| 126 | + |
| 127 | + Example: "components/my_camera_config/os02n10_custom.json" |
| 128 | + |
| 129 | + Ensure the file exists and contains valid JSON configuration |
| 130 | + parameters compatible with the OS02N10 sensor. |
| 131 | +endif |
0 commit comments