logo

RuntimeError:Frame size is not supported or is not set 错误

2023-08-08 18:24
S
飞吧托利

openmv4H7 set_windowing后报错

94276911-d186-4c3f-9c0f-dc9c8e623bff.png
import sensor, image, time
from pyb import USB_VCP
usb = USB_VCP()
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.VGA)
sensor.skip_frames(time = 2000)
sensor.set_windowing((134,243,113,110))
clock = time.clock()
img = sensor.snapshot()
while(True):
	clock.tick()
	img = sensor.snapshot()

请问这是什么问题

2023-08-10 11:05
I
网红小智智 星瞳科技

set_windowing,里面的尺寸,必须是16的倍数。