> ## Documentation Index
> Fetch the complete documentation index at: https://visionagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Ultralytics YOLO

[Ultralytics YOLO](https://ultralytics.com) provides state-of-the-art computer vision for object detection, pose estimation, and segmentation. The plugin enables real-time pose detection with skeleton overlays.

> [!NOTE]
>
> Vision Agents uses [Stream Video](https://getstream.io/video/) for real-time WebRTC transport by default. [External WebRTC transports](https://visionagents.ai/integrations/introduction-to-integrations.md#edge-transport) are supported as well. Most AI providers offer free tiers to get started.

## Installation

```sh theme={null}
uv add "vision-agents[ultralytics]"
```

## Quick Start

```python theme={null}
from vision_agents.core import Agent, User
from vision_agents.plugins import ultralytics, gemini, getstream

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Fitness Coach", id="agent"),
    instructions="Analyze the user's form and provide feedback.",
    llm=gemini.Realtime(fps=10),
    processors=[
        ultralytics.YOLOPoseProcessor(
            model_path="yolo11n-pose.pt",
            conf_threshold=0.5,
            enable_hand_tracking=True,
        )
    ],
)
```

> [!NOTE]
>
> YOLO models download automatically on first use.

## Parameters

| Name | Type | Default | Description |
| - | - | - | - |
| `model_path` | `str` | `"yolo11n-pose.pt"` | YOLO pose model |
| `conf_threshold` | `float` | `0.5` | Keypoint confidence threshold |
| `device` | `str` | `"cpu"` | Device (`"cpu"` or `"cuda"`) |
| `enable_hand_tracking` | `bool` | `True` | Draw hand skeleton connections |
| `enable_wrist_highlights` | `bool` | `True` | Highlight wrist positions |

## Model Sizes

| Model | Speed | Use Case |
| - | - | - |
| `yolo11n-pose.pt` | Fastest | Real-time on CPU |
| `yolo11s-pose.pt` | Fast | Real-time on GPU |
| `yolo11m-pose.pt` | Medium | Quality-focused |
| `yolo11l-pose.pt` | Slower | Maximum accuracy |

## Next Steps

> [card] [Build a Voice Agent](https://visionagents.ai/introduction/voice-agents.md)
>
> Get started with voice

> [card] [Build a Video Agent](https://visionagents.ai/introduction/video-agents.md)
>
> Add video processing


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.