我想知道的是如何控制转动角度,比如右转90度这样的,怎么控制
G
geik
@geik
0
声望
6
楼层
641
资料浏览
0
粉丝
0
关注
geik 发布的帖子
-
这个程序为什么偶尔会报错,但有时也会运行?
# QRCode Example # # This example shows the power of the OpenMV Cam to detect QR Codes # without needing lens correction. import sensor, image, time sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.VGA) sensor.set_windowing((240, 240)) # look at center 240x240 pixels of the VGA resolution. sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... clock = time.clock() while(True): clock.tick() img = sensor.snapshot() for code in img.find_qrcodes(): m=code.payload() break s=list(m) print(s)