ESP32-CAM coding error with CameraWebServer

Hello! I am very new to ESP32 boards so I have started using ESP32-CAM and tried the CameraWebServer example code. I didn't edit anything besides the internet ssid and password and identifying my board, and I have gotten an error message saying:

Arduino: 1.8.17 Hourly Build 2021/09/06 02:34 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

/Users/niko/Documents/Arduino/CameraWebServer/app_httpd.cpp: In function 'esp_err_t capture_handler(httpd_req_t*)':
app_httpd.cpp:286:25: error: 'box_array_t {aka struct tag_box_list}' has no member named 'score'
free(net_boxes->score);
^
/Users/niko/Documents/Arduino/CameraWebServer/app_httpd.cpp: In function 'esp_err_t stream_handler(httpd_req_t*)':
app_httpd.cpp:385:49: error: 'box_array_t {aka struct tag_box_list}' has no member named 'score'
free(net_boxes->score);
^
/Users/niko/Documents/Arduino/CameraWebServer/app_httpd.cpp: In function 'esp_err_t status_handler(httpd_req_t*)':
app_httpd.cpp:551:50: error: 'struct camera_status_t' has no member named 'sharpness'
p+=sprintf(p, ""sharpness":%d,", s->status.sharpness);
^
/Users/niko/Documents/Arduino/CameraWebServer/app_httpd.cpp: In function 'esp_err_t index_handler(httpd_req_t*)':
app_httpd.cpp:585:22: error: 'OV3660_PID' was not declared in this scope
if (s->id.PID == OV3660_PID) {
^
/Users/niko/Documents/Arduino/CameraWebServer/app_httpd.cpp: In function 'void startCameraServer()':
app_httpd.cpp:632:17: error: 'struct mtmn_config_t' has no member named 'type'
mtmn_config.type = FAST;
^
app_httpd.cpp:632:24: error: 'FAST' was not declared in this scope
mtmn_config.type = FAST;
^
app_httpd.cpp:635:17: error: 'struct mtmn_config_t' has no member named 'pyramid_times'
mtmn_config.pyramid_times = 4;
^
/Users/niko/Documents/Arduino/CameraWebServer/CameraWebServer.ino: In function 'void setup()':
CameraWebServer:80:20: error: 'OV3660_PID' was not declared in this scope
if (s->id.PID == OV3660_PID) {
^
Multiple libraries were found for "WiFi.h"
Used: /Users/niko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/WiFi
Not used: /private/var/folders/rs/djh9ph251kg3_bd99vcglbn00000gn/T/AppTranslocation/5A6B529F-9334-4B6D-BEBA-477538BD1676/d/Arduino.app/Contents/Java/libraries/WiFi
exit status 1
'box_array_t {aka struct tag_box_list}' has no member named 'score'

any help would be greatly appreciated :slight_smile:

Oh boy! Did you start with the egg frying machine? May God bless your steps!

As far as I know the ESP32-CAM has the OV2640. Did you change the camera model?

Specifications:

Try using a tutorial for getting started:

Is this an ESP32-CAM board that you have selected? ... looks like a standard ESP32 board.

Perhaps try the "AI Thinker ESP32-CAM" board.

No I definitely picked the AI thinker ESP32-CAM

I’m following the random nerd tutorials one and that is why I’m doing the CameraWebServer

Do you have a link?

Many tutorials are based on other tutorials. Generally you need to have fulfilled some prerequisite before doing something more advanced. Initially, in the most basic tutorials, libraries are installed and some configurations are performed. It is probably missing some initial part of the tutorial, or a prerequisite is missing.

Here is the link: https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/

To upload the code, follow the next steps:

  1. Go to Tools > Board and select AI-Thinker ESP32-CAM.

Did you follow all the steps correctly?

Did you manage to get the other referenced tutorial to work?

Related project: ESP32-CAM Video Streaming Web Server (works with Home Assistant and Node-Red)

I have already added the ai thinker ESP32-CAM and followed all the steps. I have also downloaded later models of it and still get this message. Are you sure there is nothing wrong with the code?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.