lemariva / micropython-camera-driver

add camera support to MicroPython
https://lemariva.com
Apache License 2.0
462 stars 100 forks source link

I can not init camera #13

Closed maysrp closed 3 years ago

maysrp commented 4 years ago

When I use JPG initialization, there is no problem, and I use rgb565 initialization will report an error。

camera.init(0, format=camera.RGB565) E (118749) camera: Allocating 3750 KB frame buffer Failed E (118749) camera: Failed to allocate frame buffer E (118749) camera: Camera init failed with error 0x101 E (118759) camera: Camera Init Failed Traceback (most recent call last): File "", line 1, in OSError: Camera Init Failed

maysrp commented 4 years ago

ESP32-cam

lemariva commented 3 years ago

yes, the problem is that the image it too big for the RAM. Check that with an smaller frame size. But, I think the format generates buffers which are too big for the RAM.