Skip to main content

🏷️ upicvision

MIT License Python Versions PyPI Version Ask DeepWiki PyPI Downloads PyPI Downloads


📸 Overview

The TagDetector class is a powerful 🚀 real-time AprilTag detection system that transforms your camera into a smart tag recognition device!

🎯 Key Features:

  • 📷 Real-time Detection: Lightning-fast AprilTag identification using OpenCV and AprilTag libraries
  • 🎮 Easy Control: Simple start, stop, pause, and resume operations
  • ⚙️ Flexible Configuration: Customizable camera settings and resolution scaling
  • 🔧 Resource Management: Smart camera initialization and cleanup
  • 🎪 Thread-Safe: Built-in threading support for smooth performance

Perfect for robotics 🤖, augmented reality 🥽, and computer vision applications!

🚀 Quick Start Guide

🔧 Initialization

from upic import TagDetector

# 🎬 Create your detector with custom settings
detector = TagDetector(cam_id=0, resolution_multiplier=0.75)

📹 Camera Operations

# 🟢 Start the magic - open camera and begin detection
detector.open_camera().apriltag_detect_start()

# ⏸️ Pause detection temporarily (camera stays active)
detector.halt_detection()

# ▶️ Resume detection when ready
detector.resume_detection()

# 🔴 Clean shutdown - release camera resources
detector.release_camera()

🏷️ Getting the Detected Tag

# 🔍 Check what tag is currently detected
current_tag_id = detector.tag_id
print(f"🎯 Current Tag ID: {current_tag_id}")

💡 Complete Working Example

from upic import TagDetector

# 🚀 Initialize the detector
detector = TagDetector(cam_id=0, resolution_multiplier=0.75)

# 🎬 Start detection
detector.open_camera().apriltag_detect_start()

# 🎮 Control detection as needed
detector.halt_detection()  # ⏸️ Pause
detector.resume_detection()  # ▶️ Resume

# 🔍 Get the detected tag
current_tag_id = detector.tag_id
print(f"🎯 Detected Tag ID: {current_tag_id}")

# 🧹 Clean up when finished
detector.release_camera()

Metadata

Release files for upicvision 0.1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for upicvision 0.1.1.1
File Size Uploaded
upicvision-0.1.1.1.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for upicvision 0.1.1.1
File Interpreter ABI Platform
upicvision-0.1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.4 kB

Release files / upicvision-0.1.1.1.tar.gz

Download URL upicvision-0.1.1.1.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7a213a3723ff5a971df32c96631cb217979ab21c4e90c666eabd06436159aec7
BLAKE2b-256 checksum
How to use checksums
ba0c66af4a86710095066cd5b4ad903e095003c8d4192554dafd5d45113edbfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.27.0 CPython/3.11.15 Linux/6.17.0-1013-azure

Release files / upicvision-0.1.1.1-py3-none-any.whl

Download URL upicvision-0.1.1.1-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0801ab732113b2e5fc7dd1d69db729a333d214bcb1b673fb23ad6335e3f91033
BLAKE2b-256 checksum
How to use checksums
ccb2ea8c76ef16f1f02fd9c409f3eb9b6abddedc8ffac75dbcc6f51592fd8ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.27.0 CPython/3.11.15 Linux/6.17.0-1013-azure

Release history Release notifications | RSS feed

This release

0.1.1.1 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page