{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "roboflow-rf-detr--detect-objects-in-images-with-rf-detr",
 "repo": "roboflow/rf-detr",
 "repo_url": "https://github.com/roboflow/rf-detr",
 "repo_slug": "roboflow-rf-detr",
 "title": "Detect objects in images with a pretrained model",
 "page_title": "How to detect objects in images with a pretrained model with RF Detr",
 "summary": "Load a COCO pretrained RFDETRMedium, predict on an image URL or file, and draw labeled boxes with supervision.",
 "who": "A developer prototyping a vision feature such as counting items or spotting vehicles.",
 "problem": "Picking a detector that is both accurate and safe to ship commercially takes time.",
 "outcome": "An annotated image with boxes and COCO class labels.",
 "steps": [
  "Install with `pip install rfdetr`",
  "Import RFDETRMedium and COCO_CLASSES as in the README Detection example",
  "Call model.predict on your image with threshold=0.5",
  "Draw results with sv.BoxAnnotator and sv.LabelAnnotator, and swap the class name to change model size"
 ],
 "agent_prompt": "Using roboflow/rf-detr, install it, run RFDETRMedium on every image in <my folder> with threshold 0.5, and save annotated copies plus a CSV of class counts.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "For fine-tuned models the README says to use detections.data class_name instead of COCO_CLASSES.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python >= 3.10 and `pip install rfdetr`",
  "supervision for drawing boxes and masks (used in the README examples)",
  "A GPU helps for real-time use, but the examples run on single images"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/roboflow-rf-detr/detect-objects-in-images-with-rf-detr/",
 "md": "https://dedupedai.com/use-cases/roboflow-rf-detr/detect-objects-in-images-with-rf-detr/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/roboflow-rf-detr--detect-objects-in-images-with-rf-detr.json",
 "api_version": "v1"
}
