百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

apriltag

> 编程语言
开源

APRIL Robotics Laboratory apriltag C 软件的扩展和调整

193 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

APRIL Robotics Laboratory apriltag C 软件的扩展和调整

apriltag

Small modifications/additions to http://april.eecs.umich.edu/media/apriltag/apriltag-2015-03-18.tgz

Added a new quad detector and a few various speedups.

Please note: I am not the maintainer of the pypi package listed at https://pypi.org/project/apriltag/ – GitHub issues filed here reporting problems with that package will be summarily closed. Sorry, I don't have time to support someone else's unofficial package.

Dependencies

  • OpenCV (optional)

Building

bash
cd /path/to/apriltag
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4

If you want to install the library and important binaries to your system directories, you can then type

bash
sudo make install

Running

You can run aprilag_opencv_demo to do stuff, run with -h to get help.

So for example, you can run

./apriltag_opencv_demo -B    ../images/mapping_feb_2014/*.JPG
./apriltag_opencv_demo -B -c ../images/mapping_feb_2014/*.JPG

to benchmark the new code against the old code.

Python

Note that you must build the software per the instructions above before the Python wrapper can be used. If you did not install the libraries to the system-wide library directory and you are not running Python code from the python directory in this repository, your Python code must specify the path for the apriltag shared library when constructing an apriltag.Detector object.

I recently added the ability to estimate 3D tag poses to the Python wrapper. To demonstrate this, after building the software, go to the python directory and run

bash
python apriltag.py -c -k '(765.00, 764.18, 393.72, 304.66)' -s .127 ../images/mapping_feb_2014/*JPG

To estimate tag pose, you need to know the intrinsic camera parameters, which can be estimated using the calibrate_camera.py script.

You also need to know the tag size in order to scale the estimated translation vectors correctly.

Although this functionality is implmemented in the C library, it is not yet coded into the C/C++ demos; I may add it someday if requested.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言