-
Camera Usage in Seeed Studio XIAO ESP32S3 Sense | Seeed Studio WikiThis tutorial will explain how to properly use the camera on the XIAO ESP32S3 Sense. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Some observations about the camera code on "Project I: Making a handheld camera":
|
Beta Was this translation helpful? Give feedback.
-
Hey, |
Beta Was this translation helpful? Give feedback.
-
Hi. Can the OV5640 5MP Image Sensor? |
Beta Was this translation helpful? Give feedback.
-
I was mean to ask, Can the OV5640 5MP Images sensor be connected instad of the supplied sensor? |
Beta Was this translation helpful? Give feedback.
Some observations about the camera code on "Project I: Making a handheld camera":
If you want to use the SD card reader available on the XIAO ESP32S Sense, you should change the SD.begin(D2) to SD.begin(21), so it is not necessary to cut off J3.
The file saved on the SD card is not JPEG. It is raw data. It is necessary to convert the raw image to jpeg before saving. This is the code:
if(display_is_pressed()){
Serial.println("display is touched");
char filename[32];
sprintf(filename, "/image%d.jpg", imageCount);
// Save photo to file
size_t out_len = 0;
uint8_t* out_buf = NULL;
esp_err_t ret = frame2jpg(fb, 12, &out_buf, &out_len);
if (ret == false) {
Serial.printf("JPEG conversion fai…