# Background Color Visualization

### About this block

The Background Color Visualization block lets you change the color of regions not detected by a detection model.

This is useful for if you want to highlight detected regions so they are easier to see in an image, or if you want to remove backgrounds from an image.

By default, this block makes regions not detected by a detection model opaque. You can also configure the block to change the colour of undetected regions.

This block works with:

* Object detection models
* Segmentation models

<figure><img src="/files/Fx7i45jc7PgLNQEtxFCn" alt=""><figcaption><p>The Label Visualization block.</p></figcaption></figure>

### What you can send into this block

To use this block, you need:

1. An input image or video frame, and;
2. Predictions from an Object Detection or Segmentation model.

### What this block returns

This block makes regions not detected by a model more opaque.

Here is an example output from this block:

<figure><img src="/files/vI0YuCHSVttxHtNPaTMq" alt=""><figcaption><p>The background of the image is more opaque than the highlighted object</p></figcaption></figure>

You can change the colour and opacity of the background from the block configuration options:

<figure><img src="/files/Cs8Y8lbwPvIKNHDsoxCi" alt=""><figcaption></figcaption></figure>

The colour can be any hex value or a common color like BLACK, WHITE, BLUE, or RED.

Here is an example where the background is set to BLACK and the opacity is set to 1:

<figure><img src="/files/rqMcd0dpvy5Qqnx7LuJ6" alt=""><figcaption><p>The background is now completely removed from the image.</p></figcaption></figure>

### Use cases

This block is useful if you want to focus on regions in an image that have been detected, or if you want to remove undetected (background) regions from an image.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/workflows/workflow-blocks/visualize-predictions/background-color-visualization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
