Error compiling for board AI thinker ESP32-CAM in Arduino IDE

You can't use STM32 libraries on the ESP32 processor. SOMEBODY added a bunch of libraries to the top of that sketch. Those libraries are NOT in the original source: