You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ports/espressif/bindings/esp32_camera/Camera.c
+37-25Lines changed: 37 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,18 @@
65
65
//|
66
66
//| This driver requires that the ``CIRCUITPY_RESERVED_PSRAM`` in ``/.env`` be large enough to hold the camera frambuffer(s). Generally, boards with built-in cameras will have a default setting that is large enough. If the constructor raises a MemoryError, this probably indicates the setting is too small and should be increased.
67
67
//|
68
+
//|
69
+
//| .. IMPORTANT:
70
+
//| Not all supported sensors have all
71
+
//| of the properties listed below. For instance, the
72
+
//| OV5640 supports `denoise`, but the
73
+
//| OV2640 does not. The underlying esp32-camera
74
+
//| library does not provide a reliable API to check
75
+
//| which settings are supported. CircuitPython makes
76
+
//| a best effort to determine when an unsupported
77
+
//| property is set and will raise an exception in
78
+
//| that case.
79
+
//|
68
80
//| :param data_pins: The 8 data data_pins used for image data transfer from the camera module, least significant bit first
69
81
//| :param pixel_clock: The pixel clock output from the camera module
70
82
//| :param vsync: The vertical sync pulse output from the camera module
@@ -230,7 +242,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(esp32_camera_camera_take_obj, 1, 2, e
230
242
//| grab_mode: Optional[GrabMode] = None,
231
243
//| framebuffer_count: Optional[int] = None,
232
244
//| ) -> None:
233
-
//| """Set the frame size and pixel format
245
+
//| """Change multiple related camera settings simultaneously
234
246
//|
235
247
//| Because these settings interact in complex ways, and take longer than
236
248
//| the other properties to set, they are set together in a single function call.
//| """Access the contrast property of the camera sensor"""
319
+
//| """The sensor contrast. Positive values increase contrast, negative values lower it. The total range is device-specific but is often from -2 to +2 inclusive."""
//| """Access the brightness property of the camera sensor"""
341
+
//| """The sensor brightness. Positive values increase brightness, negative values lower it. The total range is device-specific but is often from -2 to +2 inclusive."""
//| """Access the saturation property of the camera sensor"""
363
+
//| """The sensor saturation. Positive values increase saturation (more vibrant colors), negative values lower it (more muted colors). The total range is device-specific but the value is often from -2 to +2 inclusive."""
//| """Access the sharpness property of the camera sensor"""
385
+
//| """The sensor sharpness. Positive values increase sharpness (more defined edges), negative values lower it (softer edges). The total range is device-specific but the value is often from -2 to +2 inclusive."""
//| """Access the denoise property of the camera sensor"""
407
+
//| """The sensor 'denoise' setting. Any camera sensor has inherent 'noise', especially in low brightness environments. Software algorithms can decrease noise at the expense of fine detail. A larger value increases the amount of software noise removal. The total range is device-specific but the value is often from 0 to 10."""
//| """Access the gain ceiling property of the camera sensor"""
429
+
//| """The sensor 'gain ceiling' setting. "Gain" is an analog multiplier applied to the raw sensor data. The 'ceiling' is the maximum gain value that the sensor will use. A higher gain means that the sensor has a greater response to light, but also makes sensor noise more visible."""
//| """Access the quality property of the camera sensor"""
451
+
//| """The 'quality' setting when capturing JPEG images. This is similar to the quality setting when exporting a jpeg image from photo editing software. Typical values range from 5 to 40, with higher numbers leading to larger image sizes and better overall image quality. However, when the quality is set to a high number, the total size of the JPEG data can exceed the size of an internal buffer, causing image capture to fail."""
//| """Access the gain_ctrl property of the camera sensor"""
517
+
//| """When `True`, the camera attempts to automatically control the sensor gain, up to the value in the `gain_ceiling` property. When `False`, the `agc_gain` setting is used instead."""
0 commit comments