计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
tracking-and-solutions【效率与协作】Use for Ultralytics track mode, tracker YAML selection, persistent object IDs, and YOLO Solutions such as counting, heatmaps, speed, queue, region, similarity search, and Streamlit inference.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user asks for model.track(...), yolo track, tracker configuration, object IDs across video frames, or Ultralytics Solutions workflows such as object counting, heatmaps, speed estimation, queue management, region counting, similarity search, and Streamlit live inference.
../inference-and-results/SKILL.md../data-and-configuration/SKILL.md../training-and-validation/SKILL.md../export-and-deployment/SKILL.md../model-families-and-tasks/SKILL.md../repo-development/SKILL.mdmode=track.YOLO(...).track(source=..., tracker="botsort.yaml", stream=True, show=False) for full videos, or persist=True when feeding frames manually.arg=value form: yolo track model=yolo26n.pt source=video.mp4 tracker=bytetrack.yaml conf=0.25.scripts/choose_tracker.py and then tune only copied YAML values; keep tracker_type unchanged in custom tracker YAMLs.references/workflows.md and pass source, model, region, classes, tracker, device, conf, and iou explicitly.references/troubleshooting.md before advising installs, downloads, GUI display, webcam/network streams, GPU/FP16, or optional ReID/search/Streamlit dependencies.Direct tracking API:
from ultralytics import YOLO
model = YOLO("yolo26n.pt")
for result in model.track(source="video.mp4", stream=True, tracker="bytetrack.yaml", conf=0.25, show=False):
boxes = result.obb if result.obb is not None else result.boxes
if boxes is not None and boxes.is_track:
print(boxes.id.cpu().tolist())
Manual frame loop with persistent IDs:
results = model.track(frame, persist=True, tracker="botsort.yaml", verbose=False)
Solutions CLI with a polygon region:
yolo solutions region source="video.mp4" model=yolo26n.pt tracker=botsort.yaml region="[(20,400),(1080,400),(1080,360),(20,360)]" show=False
Tracker recommendation helper:
python sub-skills/tracking-and-solutions/scripts/choose_tracker.py --goal reid --moving-camera --prefer-stable-ids
references/api-reference.mdreferences/workflows.mdreferences/troubleshooting.mdscripts/choose_tracker.py