mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
182 stars 88 forks source link

ImportError: no module named 'camera' #108

Open shooorf opened 1 year ago

shooorf commented 1 year ago

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?

SergiuDeveloper commented 1 year ago

I encountered the same issue.

Tiago-Ferreira-Git commented 1 year ago

Same problem with an ai thinker esp32 cam

Constantin-dcx commented 1 year ago

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.