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.3.0.tar.gz (6.9 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.3.0.tar.gz.

File metadata

File hashes

Hashes for vision_agents_plugins_ultralytics-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4af38699034e3ac06207f22fac8c44e46aa01ef438e7d69aa073019a75c97b3b
MD5 b9a9015350b0dfe59a1b778bb0b29bfd
BLAKE2b-256 8f1ad26792726ebaf1eaf4e459ea96eeb7a26a56da7e95840aa1082395771696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vision_agents_plugins_ultralytics-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1676ab0a1efb925b8f7c511c2816f28c3bf2c68b8734b838c04ab6bffc8223e9
MD5 0f8d1bf42aacae9e221be376af3a435b
BLAKE2b-256 645c274b59a1190e1163382f4591ba2acd5198fe0193a2ba1ab2bf7447a738a0

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