openmv怎么追踪特定的apriltag
-
http://book.openmv.cc/example/16-Codes/find-apriltags-3d-pose.html
这个代码里似乎没有注明Apriltag的id,请问如何追踪特定id的apriltag?
-
apriltag对象可以看id,代码里if判断一下。
https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#apriltag.id
-
while(True):
clock.tick()
img = sensor.snapshot()
for tag in img.find_apriltags(families=tag_families):
print(img.size())
img.draw_string(tag.cx()-65,tag.cy()+20, "TAG ID = %d"%tag.id(), color = (0), scale = 3, mono_space = False)
if tag.id() == 8 :这里用if筛选一下