Skip to main content

Ultralytics YOLO plugin for GetStream

Project description

Ultralytics Plugin

This plugin provides YOLO-based pose detection capabilities for vision-agents using the Ultralytics YOLO library.

Features

  • Real-time pose detection using YOLO models
  • Hand and wrist tracking with detailed connections
  • Video processing with pose annotations
  • Configurable confidence thresholds and processing intervals
  • Support for both CPU and GPU inference

Installation

pip install vision-agents-plugins-ultralytics

Usage

from vision_agents.plugins import ultralytics

# Create a YOLO pose processor
processor = ultralytics.YOLOPoseProcessor(
    model_path="yolo11n-pose.pt",
    conf_threshold=0.5,
    device="cpu",
    enable_hand_tracking=True,
    enable_wrist_highlights=True
)

Configuration

  • model_path: Path to YOLO pose model file (default: "yolo11n-pose.pt")
  • conf_threshold: Confidence threshold for pose detection (default: 0.5)
  • imgsz: Image size for YOLO inference (default: 512)
  • device: Device to run inference on ('cpu' or 'cuda')
  • max_workers: Number of worker threads for processing (default: 2)
  • interval: Processing interval in seconds (0 for every frame)
  • enable_hand_tracking: Whether to draw detailed hand connections
  • enable_wrist_highlights: Whether to highlight wrist positions

Dependencies

  • ultralytics>=8.0.0
  • opencv-python>=4.8.0
  • numpy>=1.24.0
  • pillow>=10.0.0
  • aiortc>=1.6.0
  • av>=10.0.0

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

vision_agents_plugins_ultralytics-0.2.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file vision_agents_plugins_ultralytics-0.2.5.tar.gz.

File metadata

File hashes

Hashes for vision_agents_plugins_ultralytics-0.2.5.tar.gz
Algorithm Hash digest
SHA256 426956a2a0c071ce9cc792bc554a92e0bebf33a330868295d0994814ff41e5cc
MD5 cc6c8dd0936214dc47105980905be934
BLAKE2b-256 62e17a6d92ffaf7af33cefff248300fbc5e8c0755a21b8b71848b9268f163552

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_ultralytics-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for vision_agents_plugins_ultralytics-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0ed4e1b8a4e20b06175fc5ff8e47a33edd7d446dcfe388d2658bb6173a941d20
MD5 30ea9b9304da10712eb85d794596e3fb
BLAKE2b-256 c41ef4c62058cc0aa7c2b5f07ac69c6278e0803a11fbec6eebe4183461e77671

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