Ellipse Visualization¶
Class: EllipseVisualizationBlockV1
Source: inference.core.workflows.core_steps.visualizations.ellipse.v1.EllipseVisualizationBlockV1
Draw elliptical outlines around detected objects, providing oval-shaped annotations that can be customized to full ellipses or partial arcs, offering more flexible geometry than circular visualizations.
How This Block Works¶
This block takes an image and detection predictions and draws elliptical (oval-shaped) outlines around each detected object. The block:
- Takes an image and predictions as input
- Identifies bounding box coordinates for each detected object
- Calculates the center point and dimensions (width and height) for each detection based on its bounding box
- Applies color styling based on the selected color palette, with colors assigned by class, index, or track ID
- Draws elliptical outlines around each detected object using Supervision's EllipseAnnotator
- Applies the specified thickness to control the line width of the elliptical outlines
- Uses start and end angle parameters to draw either full ellipses or partial elliptical arcs
- Returns an annotated image with elliptical outlines overlaid on the original image
The block draws ellipses that are typically fitted to each detection's bounding box, creating oval-shaped outlines that adapt to the object's aspect ratio (unlike circles which are always round). Ellipses provide more flexible geometry than circles, as they can represent both round and elongated objects more accurately. The start and end angle parameters allow you to draw full ellipses (360 degrees) or partial arcs, providing additional visual style options. Unlike circle visualization (which always draws complete circles), ellipse visualization can draw partial arcs, creating distinctive visual markers while still clearly indicating object locations.
Common Use Cases¶
- Oval and Elongated Object Highlighting: Highlight detected objects with elliptical outlines when objects are oval-shaped or elongated (e.g., vehicles, elongated products, elliptical objects) where ellipses provide a better fit than circular or rectangular shapes
- Flexible Geometric Visualization: Use elliptical shapes as a more geometrically flexible alternative to circles or bounding boxes, adapting to object aspect ratios for more accurate visual representation
- Partial Arc Annotations: Draw partial elliptical arcs (using start and end angles) to create distinctive, stylized visual markers that indicate object locations with a unique visual style
- Aesthetic Visualization Alternatives: Create visually distinct annotations compared to standard bounding boxes or circles for design purposes, artistic visualizations, or when elliptical shapes better match design aesthetics
- Object Shape Adaptation: Use ellipses when objects have non-square aspect ratios where circular outlines would be less accurate, providing better visual fit for rectangular or elongated objects
- Design and UI Applications: Integrate elliptical outlines into user interfaces, dashboards, or interactive applications where oval shapes provide a softer, more organic visual style than angular rectangles
Connecting to Other Blocks¶
The annotated image from this block can be connected to:
- Other visualization blocks (e.g., Label Visualization, Dot Visualization, Bounding Box Visualization) to combine elliptical outlines with additional annotations for comprehensive visualization
- Data storage blocks (e.g., Local File Sink, CSV Formatter, Roboflow Dataset Upload) to save annotated images with elliptical outlines for documentation, reporting, or analysis
- Webhook blocks to send visualized results with elliptical outlines to external systems, APIs, or web applications for display in dashboards or monitoring tools
- Notification blocks (e.g., Email Notification, Slack Notification) to send annotated images with elliptical outlines as visual evidence in alerts or reports
- Video output blocks to create annotated video streams or recordings with elliptical outlines for live monitoring, tracking visualization, or post-processing analysis
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 |
Enter a unique identifier for this step.. | ❌ |
copy_image |
bool |
Enable this option to create a copy of the input image for visualization, preserving the original. Use this when stacking multiple visualizations.. | ✅ |
color_palette |
str |
Select a color palette for the visualised elements.. | ✅ |
palette_size |
int |
Specify the number of colors in the palette. This applies when using custom or Matplotlib palettes.. | ✅ |
custom_colors |
List[str] |
Define a list of custom colors for bounding boxes in HEX format.. | ✅ |
color_axis |
str |
Choose how bounding box colors are assigned.. | ✅ |
thickness |
int |
Thickness of the ellipse outline in pixels. Higher values create thicker, more visible elliptical outlines.. | ✅ |
start_angle |
int |
Starting angle for drawing the ellipse arc in degrees. Used together with end_angle to control whether a full ellipse (360 degrees) or partial arc is drawn. Angles are measured from the positive x-axis (0 degrees = right, 90 degrees = down, 180 degrees = left, 270 degrees = up).. | ✅ |
end_angle |
int |
Ending angle for drawing the ellipse arc in degrees. Used together with start_angle to control whether a full ellipse (360 degrees) or partial arc is drawn. To draw a full ellipse, set end_angle = start_angle + 360 (or equivalent). Angles are measured from the positive x-axis (0 degrees = right, 90 degrees = down, 180 degrees = left, 270 degrees = up).. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Ellipse Visualization in version v1.
- inputs:
Clip Comparison,Morphological Transformation,Motion Detection,Email Notification,Detections Stitch,Anthropic Claude,Detections Merge,Pixel Color Count,Keypoint Detection Model,Reference Path Visualization,Stitch OCR Detections,Camera Focus,Stability AI Image Generation,Stitch Images,Stability AI Outpainting,Time in Zone,Bounding Rectangle,Roboflow Dataset Upload,Depth Estimation,Detections Transformation,CogVLM,Identify Outliers,JSON Parser,Local File Sink,SAM 3,Dynamic Crop,Time in Zone,Moondream2,Dot Visualization,Triangle Visualization,Crop Visualization,PTZ Tracking (ONVIF).md),Twilio SMS Notification,Perspective Correction,Twilio SMS/MMS Notification,EasyOCR,Dimension Collapse,Pixelate Visualization,Detections Consensus,OpenAI,Roboflow Dataset Upload,Buffer,Object Detection Model,Single-Label Classification Model,SIFT Comparison,Contrast Equalization,Byte Tracker,Halo Visualization,Model Comparison Visualization,Slack Notification,Byte Tracker,Dynamic Zone,Image Contours,Background Color Visualization,Image Blur,Mask Visualization,Google Vision OCR,Color Visualization,Corner Visualization,Path Deviation,Clip Comparison,Template Matching,Line Counter Visualization,Ellipse Visualization,Icon Visualization,Velocity,Image Slicer,Detections Stabilizer,Absolute Static Crop,Stability AI Inpainting,SAM 3,Distance Measurement,Relative Static Crop,SIFT,CSV Formatter,Detections Filter,Blur Visualization,Instance Segmentation Model,Florence-2 Model,Google Gemini,LMM,Instance Segmentation Model,Polygon Zone Visualization,Keypoint Visualization,Roboflow Custom Metadata,Camera Focus,Multi-Label Classification Model,Detection Offset,Image Threshold,LMM For Classification,Anthropic Claude,Email Notification,Gaze Detection,Overlap Filter,Image Slicer,OpenAI,Detection Event Log,YOLO-World Model,Google Gemini,Image Preprocessing,VLM as Detector,Florence-2 Model,Image Convert Grayscale,Time in Zone,Byte Tracker,OCR Model,Seg Preview,Path Deviation,SAM 3,Detections List Roll-Up,Grid Visualization,Google Gemini,Object Detection Model,Line Counter,Trace Visualization,QR Code Generator,Camera Calibration,Webhook Sink,VLM as Detector,Background Subtraction,Bounding Box Visualization,Label Visualization,OpenAI,Circle Visualization,VLM as Classifier,Size Measurement,Llama 3.2 Vision,Classification Label Visualization,Detections Combine,Segment Anything 2 Model,OpenAI,Detections Classes Replacement,Model Monitoring Inference Aggregator,Line Counter,VLM as Classifier,Polygon Visualization,SIFT Comparison,Keypoint Detection Model,Identify Changes,Text Display - outputs:
Instance Segmentation Model,Clip Comparison,Florence-2 Model,Morphological Transformation,Google Gemini,LMM,Instance Segmentation Model,Motion Detection,Email Notification,Detections Stitch,Polygon Zone Visualization,Keypoint Visualization,Camera Focus,Anthropic Claude,Multi-Label Classification Model,Pixel Color Count,Image Threshold,LMM For Classification,Keypoint Detection Model,Anthropic Claude,Gaze Detection,Reference Path Visualization,Camera Focus,Stability AI Image Generation,Stitch Images,Stability AI Outpainting,Image Slicer,SmolVLM2,OpenAI,Roboflow Dataset Upload,Depth Estimation,YOLO-World Model,Google Gemini,CogVLM,Image Preprocessing,VLM as Detector,Florence-2 Model,Image Convert Grayscale,SAM 3,Byte Tracker,Dynamic Crop,Time in Zone,Perception Encoder Embedding Model,Moondream2,Triangle Visualization,Dot Visualization,OCR Model,Seg Preview,Crop Visualization,Twilio SMS/MMS Notification,Perspective Correction,EasyOCR,SAM 3,Google Gemini,Object Detection Model,Text Display,Trace Visualization,Pixelate Visualization,OpenAI,CLIP Embedding Model,Camera Calibration,Roboflow Dataset Upload,Buffer,Barcode Detection,Object Detection Model,Single-Label Classification Model,QR Code Detection,VLM as Detector,Background Subtraction,Bounding Box Visualization,Contrast Equalization,Model Comparison Visualization,Halo Visualization,Label Visualization,OpenAI,Circle Visualization,Qwen2.5-VL,Image Contours,Image Blur,Background Color Visualization,Mask Visualization,Dominant Color,VLM as Classifier,Google Vision OCR,Llama 3.2 Vision,Color Visualization,Corner Visualization,Classification Label Visualization,Single-Label Classification Model,OpenAI,Segment Anything 2 Model,Clip Comparison,Template Matching,Line Counter Visualization,Icon Visualization,Ellipse Visualization,Image Slicer,Detections Stabilizer,Absolute Static Crop,VLM as Classifier,Polygon Visualization,SIFT Comparison,Stability AI Inpainting,Qwen3-VL,SAM 3,Keypoint Detection Model,Relative Static Crop,SIFT,Blur Visualization,Multi-Label Classification Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Ellipse Visualization in version v1 has.
Bindings
-
input
image(image): The image to visualize on..copy_image(boolean): Enable this option to create a copy of the input image for visualization, preserving the original. Use this when stacking multiple visualizations..predictions(Union[rle_instance_segmentation_prediction,object_detection_prediction,keypoint_detection_prediction,instance_segmentation_prediction]): Model predictions to visualize..color_palette(string): Select a color palette for the visualised elements..palette_size(integer): Specify the number of colors in the palette. This applies when using custom or Matplotlib palettes..custom_colors(list_of_values): Define a list of custom colors for bounding boxes in HEX format..color_axis(string): Choose how bounding box colors are assigned..thickness(integer): Thickness of the ellipse outline in pixels. Higher values create thicker, more visible elliptical outlines..start_angle(integer): Starting angle for drawing the ellipse arc in degrees. Used together with end_angle to control whether a full ellipse (360 degrees) or partial arc is drawn. Angles are measured from the positive x-axis (0 degrees = right, 90 degrees = down, 180 degrees = left, 270 degrees = up)..end_angle(integer): Ending angle for drawing the ellipse arc in degrees. Used together with start_angle to control whether a full ellipse (360 degrees) or partial arc is drawn. To draw a full ellipse, set end_angle = start_angle + 360 (or equivalent). Angles are measured from the positive x-axis (0 degrees = right, 90 degrees = down, 180 degrees = left, 270 degrees = up)..
-
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
}