Who it is forA developer prototyping a vision feature such as counting items or spotting vehicles.
The problemPicking a detector that is both accurate and safe to ship commercially takes time.
The outcomeAn annotated image with boxes and COCO class labels.
What you need first
- 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
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
Prompt for your agent
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.
Caveat. For fine-tuned models the README says to use detections.data class_name instead of COCO_CLASSES.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for roboflow/rf-detr and "Detect objects in images with a pretrained model"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer