Installation
Authentication
Set your API credentials in the environment:Components
RoboflowCloudDetectionProcessor
Use Roboflow’s cloud inference API with pre-trained models from Roboflow Universe:Roboflow Universe model ID. Example:
"football-players-detection-3zvbc/20". Browse models at Roboflow UniverseRoboflow API key. Defaults to
ROBOFLOW_API_KEY environment variableRoboflow API URL. Defaults to
ROBOFLOW_API_URL environment variableConfidence threshold for detections (0.0 - 1.0)
Frame processing rate (frames per second)
Optional list of class names to detect. If not specified, all classes are detected. Example:
["person", "sports ball"]Whether to annotate detected objects with boxes and labels
How much to dim the background around detected objects (0.0 - 1.0). Only effective when
annotate=TrueRoboflowLocalDetectionProcessor
Run RF-DETR models locally for offline inference:RF-DETR model identifier:
rfdetr-baserfdetr-largerfdetr-nanorfdetr-smallrfdetr-mediumrfdetr-seg-preview(with segmentation)
Confidence threshold for detections (0.0 - 1.0)
Frame processing rate
Optional list of class names to detect
Whether to annotate detected objects
Optional custom instance of
rfdetr.RFDETR() classUsage Examples
Cloud Detection with Specific Classes
Local Detection with Custom Model
Complete Agent Example
Events
Listen to detection events:Cloud vs Local
Use Cloud When:
- You want access to pre-trained models from Roboflow Universe
- You don’t have GPU resources
- You want managed infrastructure
- You need custom-trained models from your Roboflow workspace
Use Local When:
- You need offline inference
- You have GPU resources available
- You want to avoid API rate limits
- You need maximum throughput
Available Models
Cloud Models
Browse thousands of pre-trained models at Roboflow Universe:- COCO objects
- Sports detection
- Medical imaging
- Custom trained models
Local Models (RF-DETR)
| Model | Size | Speed | Accuracy |
|---|---|---|---|
rfdetr-nano | Smallest | Fastest | Good |
rfdetr-small | Small | Fast | Better |
rfdetr-base | Medium | Medium | High |
rfdetr-medium | Large | Slower | Higher |
rfdetr-large | Largest | Slowest | Highest |
rfdetr-seg-preview | Medium | Medium | High + Segmentation |
Configuration
Environment Variables
Performance Tuning
For Speed:Dependencies
vision-agents- Core frameworknumpy>=2.0.0- Array operationsrfdetr>=1.3.0- RF-DETR models for local detectioninference-sdk>=0.26.1- Roboflow SDK for cloud inference
References
- Roboflow Documentation
- Roboflow Universe
- RF-DETR GitHub
- Inference SDK Docs
- Plugin Source:
plugins/roboflow/vision_agents/plugins/roboflow/__init__.py