Skip to content

Playground: everything Ultralytics YOLO can do 🎨

Ultralytics CI PyPI Version Ultralytics Downloads Python Version Ultralytics Discord Ultralytics Forums Ultralytics Reddit Open Ultralytics In Colab Open Ultralytics In Kaggle

Seven tasks, one API

# all seven, saved in runs/tasks
python local_python/03_all_tasks.py

# one task from the CLI
yolo predict model=yolo26n-pose.pt source=https://ultralytics.com/images/zidane.jpg
from ultralytics import YOLO

YOLO("yolo26n-pose.pt").predict("https://ultralytics.com/images/zidane.jpg", save=True)

Tracking

Every person keeps the same ID across frames. Pick from six trackers (botsort, bytetrack, ocsort, deepocsort, fasttrack and tracktrack) with any detect, segment, pose or obb model and with exported formats too.

# people in the sample video
python local_python/04_track.py

# another tracker
yolo track model=yolo26n.pt source=video.mp4 tracker=bytetrack.yaml

# pick the device: cpu, 0 for NVIDIA, mps for Apple silicon
yolo track model=yolo26n.pt source=video.mp4 device=0

# OpenVINO on an Intel GPU
yolo track model=yolo26n_openvino_model source=video.mp4 device=intel:gpu

# your webcam
yolo track model=yolo26n.pt source=0 show=True

Tracking demo

Real world use cases with Solutions

# people crossing a line
python local_python/06_solutions.py count

# where people spend time
python local_python/06_solutions.py heatmap

# privacy blur
python local_python/06_solutions.py blur

# speed estimation
python local_python/06_solutions.py speed

# any solution straight from the CLI
yolo solutions heatmap source=video.mp4 show=True

Counting, heatmap, privacy blur and speed estimation

Automatic annotation

Labeling by hand is slow. On your own machine, Ultralytics YOLO finds the objects and SAM draws the masks, so you get YOLO segmentation labels for free.

The Ultralytics Platform goes further with Smart Annotation right in the browser. Click objects with SAM 3.1, run pretrained or your own fine tuned Ultralytics YOLO models, or type the class names and let a vision language model label the whole dataset. Pick one of the eight hosted open source models (Moondream 3.1 by default) or add your own provider key to use vision models from OpenAI, Anthropic, Google and more.

# set IMAGES at the top to label your own photos
python local_python/07_auto_annotate.py
from ultralytics.data.annotator import auto_annotate

auto_annotate(data="path/to/images", det_model="yolo26n.pt", sam_model="sam2.1_b.pt")

Live webcam

The crowd favorite. Point the camera at the room and switch engines live.

# FPS counter on the best device
python local_python/05_webcam.py

# another camera
CAMERA=1 python local_python/05_webcam.py

# switch engines live: CPU, NVIDIA GPU or OpenVINO on an Intel GPU
yolo predict model=yolo26n.pt source=0 device=cpu show=True
yolo predict model=yolo26n.pt source=0 device=0 show=True
yolo predict model=yolo26n_openvino_model source=0 device=intel:gpu show=True

# pose with tracking IDs
yolo track model=yolo26n-pose.pt source=0 show=True

Next: Step 2 Export