Skip to content

Ellipse Visualization

Version v1

The EllipseVisualization block draws ellipses that highlight detected objects in an image using Supervision's sv.EllipseAnnotator.

Type identifier

Use the following identifier in step "type" field: roboflow_core/ellipse_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_palette str Color palette to use for annotations..
palette_size int Number of colors in the color palette. Applies when using a matplotlib color_palette..
custom_colors List[str] List of colors to use for annotations when color_palette is set to "CUSTOM"..
color_axis str Strategy to use for mapping colors to annotations..
thickness int Thickness of the lines in pixels..
start_angle int Starting angle of the ellipse in degrees..
end_angle int Ending angle of the ellipse in degrees..

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 Ellipse Visualization in version v1.

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

Bindings
  • input

    • image (image): The input image for this step..
    • copy_image (boolean): 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..
    • predictions (Union[object_detection_prediction, keypoint_detection_prediction, instance_segmentation_prediction]): Predictions.
    • color_palette (string): Color palette to use for annotations..
    • palette_size (integer): Number of colors in the color palette. Applies when using a matplotlib color_palette..
    • custom_colors (list_of_values): List of colors to use for annotations when color_palette is set to "CUSTOM"..
    • color_axis (string): Strategy to use for mapping colors to annotations..
    • thickness (integer): Thickness of the lines in pixels..
    • start_angle (integer): Starting angle of the ellipse in degrees..
    • end_angle (integer): Ending angle of the ellipse in degrees..
  • output

    • image (image): Image in workflows.
Example JSON definition of step Ellipse Visualization in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/ellipse_visualization@v1",
    "image": "$inputs.image",
    "copy_image": true,
    "predictions": "$steps.object_detection_model.predictions",
    "color_palette": "DEFAULT",
    "palette_size": 10,
    "custom_colors": [
        "#FF0000",
        "#00FF00",
        "#0000FF"
    ],
    "color_axis": "CLASS",
    "thickness": 2,
    "start_angle": -45,
    "end_angle": 235
}