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

Camera board • Re: Camera Module 3 Wide - Cannot allocate memory

$
0
0
Hello therealdavidp,

thank you for your advice and for pushing me to python.
I rewrote my script from bash to python and now everything works as expected. There is no problem with CMA and I can save the powerbank consuption.
In principle I did it like follows:

Code:

import timefrom picamera2 import Picamera2picam2 = Picamera2()config = picam2.create_still_configuration()while True:    picam2.start(config)    time.sleep(2)    picam2.capture_file(f"image_{i:04}.jpg")    picam2.stop()    time.sleep(28)
The script is a bit more complicated but this is the basic.
Definitelly there is a problem with CMA usage in rpicam-still application. I hope, that developers are aware.
Thank you, bye.

Statistics: Posted by opino — Wed Aug 21, 2024 5:17 pm



Viewing all articles
Browse latest Browse all 5077

Trending Articles