I try to compress image continuously (every 10s) and i have some problem with the level of compression (between 0 and 100)
Here is a test code :
import sensor, image, pyb red_led=pyb.LED(1) red_led.off() sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.VGA) sensor.skip_frames(time=500) quality = 95 while(True): red_led.toggle() img=sensor.snapshot().compress(quality)
When i run, there is OSError: Out of memory !
Do you know what happens ?
How i can test it before running compress ?
How can i avoid it (OMV_RAW_BUF_SIZE, JPEG_QUALITY_THRESH, JPEG_QUALTIY_LOW, JPEG_QUALITY_HIGH) ?