I'm having issues uploading any sketches to the esp32cam - i have tried all the fixes holding down buttons etc. to no awail
I am connected via an USB the weird part is that whichever usb port i connect the esp to in my laptop it keeps showing COM-4.
The ESP32CAm is showing wifi too!
I can't help you with ESP32 related stuff but in future please don't post screenshots of code or errors. Please read https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#posting-code-and-common-code-problems.
Not necessarily weird. Windows USB enumeration works in mysterious ways.
#include "esp_camera.h"
#include <WiFi.h>
//
// WARNING!!! PSRAM IC required for UXGA resolution and high JPEG quality
// Ensure ESP32 Wrover Module or other board with PSRAM is selected
// Partial images will be transmitted if image exceeds buffer size
//
// You must select partition scheme from the board menu that has at least 3MB APP space.
// Face Recognition is DISABLED for ESP32 and ESP32-S2, because it takes up from 15
// seconds to process single frame. Face Detection is ENABLED if PSRAM is enabled as well
// ===================
// Select camera model
// ===================
//#define CAMERA_MODEL_WROVER_KIT // Has PSRAM
//#define CAMERA_MODEL_ESP_EYE // Has PSRAM
//#define CAMERA_MODEL_ESP32S3_EYE // Has PSRAM
//#define CAMERA_MODEL_M5STACK_PSRAM // Has PSRAM
//#define CAMERA_MODEL_M5STACK_V2_PSRAM // M5Camera version B Has PSRAM
//#define CAMERA_MODEL_M5STACK_WIDE // Has PSRAM
//#define CAMERA_MODEL_M5STACK_ESP32CAM // No PSRAM
//#define CAMERA_MODEL_M5STACK_UNITCAM // No PSRAM
#define CAMERA_MODEL_AI_THINKER // Has PSRAM
//#define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM
//#define CAMERA_MODEL_XIAO_ESP32S3 // Has PSRAM
// ** Espressif Internal Boards **
//#define CAMERA_MODEL_ESP32_CAM_BOARD
//#define CAMERA_MODEL_ESP32S2_CAM_BOARD
//#define CAMERA_MODEL_ESP32S3_CAM_LCD
//#define CAMERA_MODEL_DFRobot_FireBeetle2_ESP32S3 // Has PSRAM
//#define CAMERA_MODEL_DFRobot_Romeo_ESP32S3 // Has PSRAM
#include "camera_pins.h"
// ===========================
// Enter your WiFi credentials
// ===========================
const char* ssid = "********";
const char* password = "*********";
void startCameraServer();
void setupLedFlash(int pin);
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.println();
camera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM;
config.pin_d1 = Y3_GPIO_NUM;
config.pin_d2 = Y4_GPIO_NUM;
config.pin_d3 = Y5_GPIO_NUM;
config.pin_d4 = Y6_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_pclk = PCLK_GPIO_NUM;
config.pin_vsync = VSYNC_GPIO_NUM;
config.pin_href = HREF_GPIO_NUM;
config.pin_sccb_sda = SIOD_GPIO_NUM;
config.pin_sccb_scl = SIOC_GPIO_NUM;
config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM;
config.xclk_freq_hz = 20000000;
config.frame_size = FRAMESIZE_UXGA;
config.pixel_format = PIXFORMAT_JPEG; // for streaming
//config.pixel_format = PIXFORMAT_RGB565; // for face detection/recognition
config.grab_mode = CAMERA_GRAB_WHEN_EMPTY;
config.fb_location = CAMERA_FB_IN_PSRAM;
config.jpeg_quality = 12;
config.fb_count = 1;
// if PSRAM IC present, init with UXGA resolution and higher JPEG quality
// for larger pre-allocated frame buffer.
if(config.pixel_format == PIXFORMAT_JPEG){
if(psramFound()){
config.jpeg_quality = 10;
config.fb_count = 2;
config.grab_mode = CAMERA_GRAB_LATEST;
} else {
// Limit the frame size when PSRAM is not available
config.frame_size = FRAMESIZE_SVGA;
config.fb_location = CAMERA_FB_IN_DRAM;
}
} else {
// Best option for face detection/recognition
config.frame_size = FRAMESIZE_240X240;
#if CONFIG_IDF_TARGET_ESP32S3
config.fb_count = 2;
#endif
}
#if defined(CAMERA_MODEL_ESP_EYE)
pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
#endif
// camera init
esp_err_t err = esp_camera_init(&config);
if (err != ESP_OK) {
Serial.printf("Camera init failed with error 0x%x", err);
return;
}
sensor_t * s = esp_camera_sensor_get();
// initial sensors are flipped vertically and colors are a bit saturated
if (s->id.PID == OV3660_PID) {
s->set_vflip(s, 1); // flip it back
s->set_brightness(s, 1); // up the brightness just a bit
s->set_saturation(s, -2); // lower the saturation
}
// drop down frame size for higher initial frame rate
if(config.pixel_format == PIXFORMAT_JPEG){
s->set_framesize(s, FRAMESIZE_QVGA);
}
#if defined(CAMERA_MODEL_M5STACK_WIDE) || defined(CAMERA_MODEL_M5STACK_ESP32CAM)
s->set_vflip(s, 1);
s->set_hmirror(s, 1);
#endif
#if defined(CAMERA_MODEL_ESP32S3_EYE)
s->set_vflip(s, 1);
#endif
// Setup LED FLash if LED pin is defined in camera_pins.h
#if defined(LED_GPIO_NUM)
setupLedFlash(LED_GPIO_NUM);
#endif
WiFi.begin(ssid, password);
WiFi.setSleep(false);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
startCameraServer();
Serial.print("Camera Ready! Use 'http://");
Serial.print(WiFi.localIP());
Serial.println("' to connect");
}
void loop() {
// Do nothing. Everything is done in another task by the web server
delay(10000);
}
This is my code - i blurred the wifi name / password
The error i get now is
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:207:44: error: 'std::list' has not been declared
207 | static void draw_face_boxes(fb_data_t *fb, std::list<dl::detect::result_t> *results, int face_id)
| ^~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:207:53: error: expected ',' or '...' before '<' token
207 | static void draw_face_boxes(fb_data_t *fb, std::list<dl::detect::result_t> *results, int face_id)
| ^
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp: In function 'void draw_face_boxes(fb_data_t*, int)':
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:211:9: error: 'face_id' was not declared in this scope
211 | if (face_id < 0)
| ^~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:224:15: error: expected unqualified-id before '<' token
224 | for (std::<dl::detect::result_t>::iterator prediction = results->begin(); prediction != results->end(); prediction++, i++)
| ^
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:224:16: error: 'dl' has not been declared
224 | for (std::<dl::detect::result_t>::iterator prediction = results->begin(); prediction != results->end(); prediction++, i++)
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:224:39: error: '::iterator' has not been declared; did you mean 'std::iterator'?
224 | for (std::<dl::detect::result_t>::iterator prediction = results->begin(); prediction != results->end(); prediction++, i++)
| ^~~~~~~~
| std::iterator
In file included from C:/Users/User/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2411/xtensa-esp-elf/include/c++/14.2.0/bits/stl_algobase.h:65,
from C:/Users/User/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2411/xtensa-esp-elf/include/c++/14.2.0/vector:62,
from C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:44:
C:/Users/User/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2411/xtensa-esp-elf/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: 'std::iterator' declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:224:79: error: 'prediction' was not declared in this scope
224 | for (std::<dl::detect::result_t>::iterator prediction = results->begin(); prediction != results->end(); prediction++, i++)
| ^~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:224:93: error: 'results' was not declared in this scope
224 | for (std::<dl::detect::result_t>::iterator prediction = results->begin(); prediction != results->end(); prediction++, i++)
| ^~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp: In function 'esp_err_t capture_handler(httpd_req_t*)':
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:432:9: error: 'HumanFaceDetectMSR01' was not declared in this scope
432 | HumanFaceDetectMSR01 s1(0.1F, 0.5F, 10, 0.2F);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:433:9: error: 'HumanFaceDetectMNP01' was not declared in this scope
433 | HumanFaceDetectMNP01 s2(0.5F, 0.3F, 5);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:434:14: error: 'list' is not a member of 'std'
434 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:45:1: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
44 | #include <vector>
+++ |+#include <list>
45 | // #include "human_face_detect_msr01.hpp"
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:434:19: error: 'dl' has not been declared
434 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:434:42: error: 'candidates' was not declared in this scope
434 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:434:55: error: 's1' was not declared in this scope; did you mean 's'?
434 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:435:14: error: 'list' is not a member of 'std'
435 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:435:14: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:435:19: error: 'dl' has not been declared
435 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:435:42: error: 'results' was not declared in this scope
435 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:435:52: error: 's2' was not declared in this scope; did you mean 's'?
435 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:482:9: error: 'HumanFaceDetectMSR01' was not declared in this scope
482 | HumanFaceDetectMSR01 s1(0.1F, 0.5F, 10, 0.2F);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:483:9: error: 'HumanFaceDetectMNP01' was not declared in this scope
483 | HumanFaceDetectMNP01 s2(0.5F, 0.3F, 5);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:484:14: error: 'list' is not a member of 'std'
484 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:484:14: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:484:19: error: 'dl' has not been declared
484 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:484:42: error: 'candidates' was not declared in this scope
484 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:484:55: error: 's1' was not declared in this scope; did you mean 's'?
484 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:485:14: error: 'list' is not a member of 'std'
485 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:485:14: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:485:19: error: 'dl' has not been declared
485 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:485:42: error: 'results' was not declared in this scope
485 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:485:52: error: 's2' was not declared in this scope; did you mean 's'?
485 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp: In function 'esp_err_t stream_handler(httpd_req_t*)':
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:542:5: error: 'HumanFaceDetectMSR01' was not declared in this scope
542 | HumanFaceDetectMSR01 s1(0.1F, 0.5F, 10, 0.2F);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:543:5: error: 'HumanFaceDetectMNP01' was not declared in this scope
543 | HumanFaceDetectMNP01 s2(0.5F, 0.3F, 5);
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:628:26: error: 'list' is not a member of 'std'
628 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:628:26: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:628:31: error: 'dl' has not been declared
628 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:628:54: error: 'candidates' was not declared in this scope
628 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:628:67: error: 's1' was not declared in this scope; did you mean 's'?
628 | std::list<dl::detect::result_t> &candidates = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:629:26: error: 'list' is not a member of 'std'
629 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:629:26: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:629:31: error: 'dl' has not been declared
629 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:629:54: error: 'results' was not declared in this scope
629 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:629:64: error: 's2' was not declared in this scope; did you mean 's'?
629 | std::list<dl::detect::result_t> &results = s2.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3}, candidates);
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:689:34: error: 'list' is not a member of 'std'
689 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:689:34: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:689:39: error: 'dl' has not been declared
689 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:689:62: error: 'candidates' was not declared in this scope
689 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~~~~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:689:75: error: 's1' was not declared in this scope; did you mean 's'?
689 | std::list<dl::detect::result_t> &candidates = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:690:34: error: 'list' is not a member of 'std'
690 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:690:34: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:690:39: error: 'dl' has not been declared
690 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:690:62: error: 'results' was not declared in this scope
690 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~~~~~~
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:690:72: error: 's2' was not declared in this scope; did you mean 's'?
690 | std::list<dl::detect::result_t> &results = s2.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3}, candidates);
| ^~
| s
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp: In function 'void setupLedFlash(int)':
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:1389:5: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
1389 | ledcSetup(LED_LEDC_CHANNEL, 5000, 8);
| ^~~~~~~~~
| ledc_stop
C:\Users\User\OneDrive - Hennlich d.o.o\Namizje\ESP32-Camera_Webserver-main\CameraWebServer\app_httpd.cpp:1390:5: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
1390 | ledcAttachPin(pin, LED_LEDC_CHANNEL);
| ^~~~~~~~~~~~~
| ledcAttach
exit status 1
Compilation error: 'std::list' has not been declared
The last error is easy, the current version of the boards is not compatible with ledcAttach and a few others. Here is the screen grab from the Migration document.
Your original error was an upload error on an MB board. I have a dozen or so of those, and they are problematic. Get an FTDI board to do the upload, which has never failed for me.