Hi @tcontrada, you can already use the Arduino and C++ Library exports on the ESP32, so you just need to hook up the camera output to the impulse and it will work!
I just ordered an ESP32 CAM, and this will be my first time trying out your application.
I was wondering if there might be a sample or example of such with the ESP32 CAM in order to help with my first attempt?
Hi, I created a simple ML for recognizing a computer in an image and created the model via your application and exported the model for the Arduino.
I actually have the ESP32 CAM set as the board to compile, but when I try to compile the static_buffer example I get the following compile error: âfminâ is not a member of âstdâ return std::fmin(x, y);
Is there a reference issue in the header file, or something else?
I have ESP32 1.0.4 installed. So it must be a software library.
Is there a list of all libraries and their respective versions, else I wonât be able to compile the example application?
There are no dependencies in the Arduino library that we export so that shouldnât be it. But based on the error I suspect either a broken standard library or something weird with a compiler version. Will take a look today.
@tcontrada I see the same thing as @aurel, I can build fine with this target against an Arduino library created today with this package and the ESP32 Wrover Module:
I reinstalled the ESP32 Board Files (1.0.4) and getting basically the same compile error. âfmaxâ is not a member of âstdâ return std::fmax(x, y);
I am also running the Arduino IDE 1.8.13 which is the latest version.
I did adjust the URL as suggested, but get the same compile error.
I think the problem is the fmin and fmax functions where the error occurs. First, these functions are not part of the std library, but the math library. Your code references std::fmax which is not correct, it should be math::fmax.
See if you can make this change in your code/libraries as I think it will fix the issue.
@tcontrada You can modify where we call this (the source of all files is in the libraries folder of the IDE, e.g. ~/Documents/Arduino/libraries/ on macOS), would be interested to see if that helps, but std::fmax is valid and part of cmath (see https://en.cppreference.com/w/cpp/numeric/math/fmax).
Iâve fixed that issue a while back after reading your documentation. But I got another issue which is below.
fork/exec C:\Users\elect\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-gcc.exe: The filename or extension is too long.
Thatâs a similar issue but as itâs a different compiler, youâll need another platform.local.txt to fix it. Iâll try to have a look at it.
FYI there is a pull request on the Arduino side but itâs still in progress: https://github.com/arduino/arduino-cli/pull/961