没能在图像中返回一条直线
-
# Hello World Example # # Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script! import sensor, image, time red_thresholds = (33, 77, 12, 82, -4, 59) sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QQQVGA) sensor.skip_frames(time = 2000) clock = time.clock() while(True): clock.tick() img = sensor.snapshot().binary([red_thresholds]) line = img.get_regression([(100,100,0,0,0,0)], robust = True) if (line): img.draw_line(line.line(), color = 127) print(clock.fps())
请在这里粘贴代码
-
固件有bug,升级到最新的3.4.1固件解决。
-
@kidswong999 谢了