logo

怎么统计图像中apriltag或者是数字的数量?

2019-07-09 20:07
Z
_2clp

图片中有很多apriltag或者数字,怎么统计下它们的数量?

2019-07-09 21:24
I
网红小智智 星瞳科技

https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#image.find_apriltags

返回的的数组。

tags = img.find_apriltags()
len(tags)就是数量
for tag in tags:
    就可以遍历数组。