Run a single-label classification model in a Workflow.
About this block
The Single-Label Classification Model block lets you run a single-label classification model trained on or uploaded to Roboflow.
Single-label classification models return a category for an image. For example, you could use this block to:
Identify what defect is present in an image
Sort images into one or more categories
Identify the type of product in an image
You can run private models stored in your Workspace, or public models on Roboflow Universe.
The Single-Label Classification Model block.
What you can send into this block
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)
What this block returns
The Single-Label Classification Model block returns the class your model thinks most closely represents the contents of the image. The block also returns a confidence value showing how confident the model thinks it is in its result.
To see the results from your classification model plotted on an image, you need to use a Visualizer block. You may want to use the:
Classification Label Visualization block: Show labels from a classification model on an image.
Here is an example showing the results from a single-label classification model with a Classification label Visualization:
The label "loose-straw" appears in the top left corner of the image.
How to configure the block
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.