{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "ultralytics-ultralytics--detect-objects-in-an-image-with-yolo-cli",
 "repo": "ultralytics/ultralytics",
 "repo_url": "https://github.com/ultralytics/ultralytics",
 "repo_slug": "ultralytics-ultralytics",
 "title": "Detect objects in an image with one command",
 "page_title": "How to detect objects in an image with one command with Ultralytics",
 "summary": "Run a pretrained YOLO26n model on any image from the terminal.",
 "who": "A developer who wants to see what a detector finds before writing code.",
 "problem": "Setting up a vision model usually takes an afternoon.",
 "outcome": "An annotated prediction for the image, with boxes and class labels.",
 "steps": [
  "Install with `pip install ultralytics`",
  "Run `yolo predict model=yolo26n.pt source='https://ultralytics.com/images/bus.jpg'`",
  "Replace the source with your own image path or URL",
  "Add arguments like imgsz=640 to tune the run"
 ],
 "agent_prompt": "Using ultralytics/ultralytics, install `pip install ultralytics`, run `yolo predict model=yolo26n.pt source='https://ultralytics.com/images/bus.jpg'` and then on <my image folder>, and summarise which objects were found in each image.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "10 minutes",
 "basis": "readme",
 "caveat": "The model weights download on first use.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.8 or newer with pip (PyTorch is installed with the package requirements)",
  "A GPU is optional for prediction and recommended for training",
  "Images or video to run on, or a dataset config for training"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ultralytics-ultralytics/detect-objects-in-an-image-with-yolo-cli/",
 "md": "https://dedupedai.com/use-cases/ultralytics-ultralytics/detect-objects-in-an-image-with-yolo-cli/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/ultralytics-ultralytics--detect-objects-in-an-image-with-yolo-cli.json",
 "api_version": "v1"
}
