Adding The Board To The Arduino IDE
You can download the ESP32 Web Camera firmware from the official Espressif GitHub here or from the fork I made here(in case the previous link stops working at some point). You must download the entire ESP repository and copy out the arduino-esp32/libraries/ESP32/examples/Camera/CameraWebServer folder.
Open up the .ino file from the CameraWebServer project folder. Then uncomment the CAMERA_MODEL_AI_THINKER board and comment out any other. Finally set your wifi network and password.