/install apriltag-detector
Pywayne AprilTag Detector
This module detects AprilTag fiducial markers for camera calibration and pose estimation.
Quick Start
from pywayne.cv.apriltag_detector import ApriltagCornerDetector
# Create detector
detector = ApriltagCornerDetector()
# Detect from file path
detections = detector.detect('test.png', show_result=True)
# Detect from numpy array
import cv2
image = cv2.imread('test.png')
detections = detector.detect(image)
Detection Methods
detect()
Detect AprilTags in an image:
detections = detector.detect(
image, # File path, Path object, or numpy array
show_result=False # Show visualization window
)
Returns list of detection results with:
id: Tag IDhamming_distance: Detection confidencecenter: Tag center coordinates (x, y)corners: 4 corner coordinates
detect_and_draw()
Detect AprilTags and draw results on original image:
result_image = detector.detect_and_draw(image)
cv2.imshow('Detection Result', result_image)
cv2.waitKey(0)
Visualization includes:
- Green polygon outlines
- Red corner circles
- Red ID labels at tag centers
Requirements
cv2(OpenCV) - Image processingnumpy- Array operationsgettool- Downloads apriltag_detection library automatically
Library Installation
The detector automatically checks for and installs the apriltag_detection library using gettool if not found.
Detection Result Format
Each detection contains:
| Field | Description |
|---|---|
id |
Tag identifier |
hamming_distance |
Hamming distance (lower = more confident) |
center |
Tag center as (x, y) tuple |
corners |
4 corner coordinates as [(x1, y1), (x2, y2), (x3, y3), (x4, y4)] |
Notes
- Supports both grayscale and BGR images
- Automatic grayscale conversion for detection
- Visualization sizes scale with image dimensions
- Uses AprilTag 36h11 tag family
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install apriltag-detector - 安装完成后,直接呼叫该 Skill 的名称或使用
/apriltag-detector触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Pywayne Cv Apriltag Detector 是什么?
AprilTag corner detection for camera calibration and pose estimation. Use when working with pywayne.cv.apriltag_detector module to detect AprilTag fiducial m... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 561 次。
如何安装 Pywayne Cv Apriltag Detector?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install apriltag-detector」即可一键安装,无需额外配置。
Pywayne Cv Apriltag Detector 是免费的吗?
是的,Pywayne Cv Apriltag Detector 完全免费(开源免费),可自由下载、安装和使用。
Pywayne Cv Apriltag Detector 支持哪些平台?
Pywayne Cv Apriltag Detector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pywayne Cv Apriltag Detector?
由 wangyendt(@wangyendt)开发并维护,当前版本 v0.1.0。