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: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,13 +110,15 @@ make USER_C_MODULES=../../../../micropython-camera-API/src/micropython.cmake BOA
110
110
```
111
111
112
112
If you experience problems, visit [MicroPython external C modules](https://docs.micropython.org/en/latest/develop/cmodules.html).
113
+
113
114
## Notes
114
115
115
116
- The OV5640 pinout is compatible with boards designed for the OV2640 but the voltage supply is too high for the internal 1.5V regulator, so the camera overheats unless a heat sink is applied. For recording purposes the OV5640 should only be used with an ESP32S3 board. Frame sizes above FHD framesize should only be used for still images due to memory limitations.
116
117
- If your target board is a ESP32, I recommend using IDF >= 5.2, since older versions may lead to IRAM overflow during build. Alternatively you can modify your sdkconfig-file (see [issue #1](https://github.com/cnadler86/micropython-camera-API/issues/1)).
117
118
118
119
## Plans for the future
119
-
-[ ] imolrment structure in repo to include other boards like xiao sense
120
+
121
+
-[ ] implement structure in repo to include other boards like xiao sense
120
122
-[ ] harmonize properties to standard ones at API level, e.g. jpeg quality to the range 100=very good, 1/0= very bad
121
123
-[ ] edge case: enable usage of pins such as i2c for other applications
122
-
-[ ] provide examples in binary image with lfs-merge
124
+
-[ ] provide examples in binary image with lfs-merge
Copy file name to clipboardExpand all lines: src/modcamera.c
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ void mp_camera_hal_construct(
91
91
// configure camera based on arguments
92
92
self->camera_config.pixel_format=pixel_format;
93
93
self->camera_config.frame_size=frame_size;
94
-
self->camera_config.jpeg_quality=jpeg_quality; //0-63 lower number means higher quality. TODO: Harmonization in API and Validation
94
+
self->camera_config.jpeg_quality=(int8_t)map(jpeg_quality,0,100,63,0); //0-63 lower number means higher quality. TODO: Harmonization in API and Validation
0 commit comments