Skip to main content

pi vision lib

Project description

🏷️ 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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upicvision-0.1.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upicvision-0.1.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file upicvision-0.1.1.tar.gz.

File metadata

  • Download URL: upicvision-0.1.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.2 CPython/3.11.12 Linux/6.11.0-1015-azure

File hashes

Hashes for upicvision-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8cc63c9d8e4adf7bbab994e8dbac2d96b0c63fb3e8a2f0000ad19a4044a7e908
MD5 2894122c55ccc70f7fa767c84fe4e2ab
BLAKE2b-256 04a1b536fbcc295e62fbaaadb7e2145da7bab0eb4ed57bbc84067249e468f7da

See more details on using hashes here.

File details

Details for the file upicvision-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: upicvision-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.2 CPython/3.11.12 Linux/6.11.0-1015-azure

File hashes

Hashes for upicvision-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b48fab52702b25f8a1a9744d86022eef14559ef5d7929aa8d3fdeeac9490af2
MD5 4c6bd1448fe665e9f1c689672057debf
BLAKE2b-256 e9be00ab5057a56d54a22f447db6647476e90b9c5d9f72faad53313c4deb8b92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page