Micropython on ESP32 does not leave much space in RAM, a SPIRAM is recommended, but the platform can however work, it is then necessary to limit the number of servers used. In the version without spiram, micropython leaves 103 kb, which is extremely little to run a platform like this. In this case to limit RAM consumption, you must edit the main.py, and replace the "=True", with "=False", on all the unwanted functionalities.
For motion capture you absolutely need an ESP32CAM or FREENOVE CAM S3.
Below are the devices compatible with pycameresp :
Note on the freenove cam S3, I had problems with wifi disruption, which limited the video streaming speed, to correct this I unsoldered the two connectors from the edges of the card, it's tedious, but the speed has become maximum.