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筛选一下
imut
@imut
1
声望
14
楼层
2280
资料浏览
1
粉丝
1
关注
imut 发布的帖子
-
RE: openmv怎么追踪特定的apriltag
-
RE: 江湖救急,求教树莓派Raspbian安装OpenMV IDE的方法!
之前编译是看了GitHub中的OpenmvIDE编译源码方式运行IDE的?
另外就是想研究一下算法的源码,IDE里好像是无法查看和修改源码的吧,通过修改源码,然后重新编译生成IDE?我是这个思路,自己挖坑自己跳……
QtRpi的安装也很麻烦,记得最后貌似也是卡在了pyusb这里,官方给出的编译环境是Ubuntu64。
-
RE: 江湖救急,求教树莓派Raspbian安装OpenMV IDE的方法!
谢天谢地~刷了stretch之后居然顺利安装成功了!!!!
切换的清华的国内源,校园网被墙,不过速度很快,依赖包都可以载下来。
之前jessie版本的总是在pyusb这一步卡住,这次也报了几个异常,不过连接上板子之后试试了试暂时没有发现什么问题。下面是返回的一些异常,不知道在不同的系统中安装会不会有区别,供参考吧,虽然不懂
Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run wb.build(autobuilding=True) File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url hashes=hashes File "/usr/lib/python2.7/dist-packages/pip/download.py", line 659, in unpack_http_url hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 853, in _download_http_url stream=True, File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get return self.request('GET', url, **kwargs) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 386, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send timeout=timeout File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment total -= 1 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
运行图:
无线连路由器,远程桌面调试美滋滋:
-
Openmv如何改善Apriltags识别中,Tag被遮挡的情况?
在提供的例程里,当标签被遮挡时(哪怕被挡住了一个小小的角或者临近边缘颜色相近时标签的识别率很低,基本无法识别)。 请问一下函数库中,或者有没有简单高效的办法改善这种情况呢? 另外插播一条广告。。版主大人能否提供下在树莓派中安装IDE的教程呢,需要将树莓派和OPENMV连,并实现远程调试,参照gayhub上的方法总是失败呀。。。
-
江湖救急,求教树莓派Raspbian安装OpenMV IDE的方法!
想要通过树莓派和Openmv实现远程编程和调试,个人水平有限,参考gayhub上在Pi3B上编译安装IDE的教程,在Raspbian(Jessie)上安装失败,能否可以提供在树莓派上详细的安装办法呢(MD文档应该是在Pi的Ubuntu下安装的,并且Raspbian里安装Qtrpi都不顺利)
还有就是希望能够提供通过源码编译IDE的教程……
-
关于OpenMV分辨率初始化命令的问题?
例如初始化语句sensor.set_framesize(sensor.VGA)…………
如果我想在程序运行时,还可以再次改变模块的分辨吗(不采用算法缩放)?
如果不能改变的话有什么方法可以实现这一功能呢?