logo

关于识别有无apriltag

2019-01-05 20:44
7
n3cp

while(True):

clock.tick()

img = sensor.snapshot()

print(clock.fps())

a=img.find_apriltags()

if a:

print("you")

else:

print("wu")

f4940426-6fc2-4eb6-8984-306744e49925.png
I
网红小智智 星瞳科技

请上传全部的代码,否则我没办法运行。

7
n3cp

import sensor, image, time,math

sensor.reset()

sensor.set_pixformat(sensor.RGB565)

sensor.set_framesize(sensor.QVGA)

sensor.skip_frames(time = 2000)

clock = time.clock()

while(True):

clock.tick()

img = sensor.snapshot()

print(clock.fps())

a=img.find_apriltags()

if a:

print("you")

else:

print("wu")

I
网红小智智 星瞳科技

apriltag要使用QQVGA分辨率。

http://book.openmv.cc/image/apriltag.html#%E7%A8%8B%E5%BA%8F

7
n3cp

谢谢。。。。。。。。。