After updating the firmware and IDE sensor.set_windowing((213, 133, 213, 213)) don’t work
It generate: RuntimeError: “Frame size is not supported or is not set.”
sensor.set_windowing (210, 133, 213, 213) works fine
Board H7 OV5640 Firmware 4.1.0
Se code below
it seems that x larger than 210 don’t work.
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.VGA)
sensor.skip_frames(time=2000)
net = "trained.tflite"
time.sleep(2)
labels = [line.rstrip('\n') for line in open("labels.txt")]
clock = time.clock()
area=0
count=0
while(True):
clock.tick()
area = area +1
if area == 1:
sensor.set_windowing((0, 133, 213, 213))
if area == 2:
sensor.set_windowing((213, 133, 213, 213))
if area == 3:
sensor.set_windowing((426, 133, 213, 213))
img = sensor.snapshot()