Skip to content

Background Color Visualization

Version v1

The BackgroundColorVisualization block draws all areas outside of detected regions in an image with a specified color.

Type identifier

Use the following identifier in step "type" field: roboflow_core/background_color_visualization@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str The unique name of this step..
copy_image bool Duplicate the image contents (vs overwriting the image in place). Deselect for chained visualizations that should stack on previous ones where the intermediate state is not needed..
color str Color of the background..
opacity float Transparency of the Mask overlay..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Check what blocks you can connect to Background Color Visualization in version v1.

The available connections depend on its binding kinds. Check what binding kinds Background Color Visualization in version v1 has.

Bindings
Example JSON definition of step Background Color Visualization in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/background_color_visualization@v1",
    "predictions": "$steps.object_detection_model.predictions",
    "image": "$inputs.image",
    "copy_image": true,
    "color": "WHITE",
    "opacity": 0.5
}