FIFO Clock Setup for CMOS Detector
FIFO may be too slow.

You will want to use DMA access.

The M5Stack ESP32 Camera Module is using a OV2640 with a "hack" of the I2S interface because this ESP32 subsystem is able to DMA for the data. I read  that the  m5stack-grey ID for board option in "platformio. PICO-8 cartridges can be saved.

https://m5stack.com/products/esp32-camera
$8.39



Hopefully this gets you started with M5Camera using your phone.

Open source https://github.com/m5stack
https://github.com/m5stack/Applications-cam    

also
Face recognition https://github.com/m5stack/m5stack-cam-psram/tree/master/face_recognize