The rotation_corr fails even at QQVGA with a MemoryError: out of fast Frame Buffer Stack memory.
I can see between the boards that some blocks have moved to different ram.
#define OMV_FB_MEMORY AXI_SRAM => became DRAM
#define OMV_JPEG_MEMORY SRAM3 => became DRAM
But I can't see how this would cause an issue because it all seems bigger.
The rotation_corr has fb_alloc in it, but I don't see how that could fail given the size of frame_buffer.
Also I don't see any changes to this function recently.
Code: Select all
import sensor, image # Camera Init sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QQVGA) sensor.skip_frames(time = 2000) # Camera Defs while(True): # Capture an image img = sensor.snapshot() img.rotation_corr(x_translation=1,y_translation=1)