划分roi时报错如何解决?
-
请问如何解决?
sensor.reset() sensor.set_pixformat(sensor.RGB565) # grayscale is faster (160x120 max on OpenMV-M7) sensor.set_framesize(sensor.QQVGA) sensor.skip_frames(time = 2000) clock = time.clock() while(True): clock.tick() img = sensor.snapshot() img.draw_rectangle(roi=(0,0,80,80),color = (255, 0, 0))
报错信息:TypeError: function missing 1 required positional arguments
-
改成
img.draw_rectangle(0,0,80,80,color = (255, 0, 0))