/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install apriltag-detector - After installation, invoke the skill by name or use
/apriltag-detector - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 561 downloads so far.
How do I install Pywayne Cv Apriltag Detector?
Run "/install apriltag-detector" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Pywayne Cv Apriltag Detector free?
Yes, Pywayne Cv Apriltag Detector is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Pywayne Cv Apriltag Detector support?
Pywayne Cv Apriltag Detector is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Pywayne Cv Apriltag Detector?
It is built and maintained by wangyendt (@wangyendt); the current version is v0.1.0.