Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4060

MicroPython • Re: Memory allocation failed (OV5640 VGA format, RGB565) with Raspberry Pico

$
0
0
Modifying it to do partial frames won't be trivial.
One trick which can make things easier is to read multiple frames and only store a few bytes from incrementing offsets each time. That can often be as simple as wrapping writes to memory in an 'if' to limit the number.

That means tearing if the image changes but might be tolerable, at least better than nothing.
Alternatively, is there a way to increase Pico RAM?
You could perhaps add external PSRAM but you would still have to hack something somewhere within CircuitPython itself to make that usable.
For my project, I need to capture at least a VGA-sized image.
Which requires nearly 1 MB for 640 x 480 at 24-bit.

I would suggest a Pi SBC is a better option than a Pico.

If you can accept HVGA, 480 x 320 at 8-bit, that's just 150 KB which should be doable on a Pico.

Statistics: Posted by hippy — Tue Jan 16, 2024 6:49 pm



Viewing all articles
Browse latest Browse all 4060

Trending Articles