Object Detection Model
Run an object detection model in a Workflow.
Last updated
Was this helpful?
Run an object detection model in a Workflow.
Last updated
Was this helpful?
The Object Detection Model block lets you run an object detection model trained on or uploaded to Roboflow.
Object detection models let you identify custom objects in an image. For example, you could use an object detection block to:
Identify defects in a product
Find the location of vehicles on a road
Find items on an assembly line
You can run private models stored in your Workspace, or public models on Roboflow Universe.
You can run the Object Detection Model block on:
An image that you send to your Workflow
A video frame that you send to your Workflow
A cropped region of an image that is calculated in your Workflow (i.e. with a Crop block)
The object detection model block returns predictions that can be used in other blocks. Predictions contain information about:
The location of each object found (xyxy coordinates)
The class name associated with each object location
To see the results from your object detection model plotted on an image, you need to use a Visualizer block. You may want to use the:
Label Visualization: Show the class labels returned by a model.
Here is an example showing object detections returned by this block visualized with both the Bounding Box and Label visualizations:
When you set up this block, you will be asked to choose a model from your Workspace:
To use a model in your Workspace, choose from the list of Your Models.
We also have a range of base and public models available.
You can select from:
Base models like RF-DETR base and YOLO11
Recommended models for specific use cases like vehicle detection and retail inventory detection
You can then configure the block using the options available in the Workflows editor.
The most common properties set are the confidence threshold for a model and the "Class Filter" tool to only return predictions with a specific class.
This block is useful for any Workflow that involves running a model.
If you want to track objects in a video, you can combine an object detection model with Byte Tracker. The model will return the locations of objects and Byte Tracker will track their locations throughout the video.
Expand the card below to see the JSON data returned by this block.
: Show the bounding boxes returned by a model.
You can also specify the ID of any model found on Universe.