tensorflow-micropython-examples icon indicating copy to clipboard operation
tensorflow-micropython-examples copied to clipboard

ImportError: no module named 'camera'

Open shooorf opened this issue 2 years ago • 3 comments

Can't use camera on my LILYGO® TTGO T-Camera Plus with OV2640 module I've flashed microlite-spiram-cam-esp32-firmware from commit 3ed56ec

Everything is working fine, except camera module (ImportError: no module named 'camera')

Also tried 76ffd01 with same result

How to use camera on this firmware?

shooorf avatar Jan 27 '23 18:01 shooorf

I encountered the same issue.

SergiuDeveloper avatar Feb 03 '23 15:02 SergiuDeveloper

Same problem with an ai thinker esp32 cam

Tiago-Ferreira-Git avatar May 25 '23 09:05 Tiago-Ferreira-Git

Hello, I faced the same issue and found that MICROPY_PY_CAMERA in modcamera.c was not defined anywhere. There might have been an error in naming since mpconfigboard.h for the MICROLITE_SPIRAM_CAM defines MODULE_CAMERA_ENABLED instead.

To fix this I simply added #define MICROPY_PY_CAMERA to the mpconfigboard.h.

Constantin-dcx avatar Nov 13 '23 05:11 Constantin-dcx