Image Contours¶
Version v1
¶
Finds the contours in an image. It returns the contours and number of contours. The input image should be thresholded before using this block.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/contours_detection@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
The unique name of this step.. | ❌ |
line_thickness |
int |
Line thickness for drawing contours.. | ✅ |
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 Image Contours
in version v1
.
- inputs:
Triangle Visualization
,Image Blur
,Image Preprocessing
,Line Counter Visualization
,Keypoint Visualization
,Blur Visualization
,Mask Visualization
,Background Color Visualization
,Model Comparison Visualization
,Ellipse Visualization
,Pixelate Visualization
,Corner Visualization
,Camera Focus
,Reference Path Visualization
,Relative Static Crop
,Image Contours
,Image Convert Grayscale
,Crop Visualization
,Stitch Images
,Label Visualization
,Polygon Visualization
,Stability AI Inpainting
,Dynamic Crop
,Trace Visualization
,Polygon Zone Visualization
,SIFT
,Image Threshold
,Color Visualization
,Image Slicer
,Perspective Correction
,Absolute Static Crop
,Bounding Box Visualization
,Halo Visualization
,SIFT Comparison
,Circle Visualization
,Dot Visualization
- outputs:
OpenAI
,Clip Comparison
,Keypoint Detection Model
,Florence-2 Model
,Line Counter Visualization
,Barcode Detection
,Model Comparison Visualization
,Background Color Visualization
,Ellipse Visualization
,Corner Visualization
,QR Code Detection
,Anthropic Claude
,Object Detection Model
,Time in zone
,Webhook Sink
,Template Matching
,YOLO-World Model
,Google Vision OCR
,Pixel Color Count
,Stability AI Inpainting
,Single-Label Classification Model
,SIFT
,Dominant Color
,Color Visualization
,Image Slicer
,Bounding Box Visualization
,Perspective Correction
,Halo Visualization
,LMM For Classification
,Roboflow Dataset Upload
,OCR Model
,Mask Visualization
,Dot Visualization
,Triangle Visualization
,Image Blur
,Image Preprocessing
,Keypoint Visualization
,Blur Visualization
,Pixelate Visualization
,Camera Focus
,VLM as Detector
,Multi-Label Classification Model
,Detections Stitch
,Reference Path Visualization
,VLM as Classifier
,Relative Static Crop
,Image Contours
,OpenAI
,SIFT Comparison
,Crop Visualization
,Stitch Images
,Image Convert Grayscale
,Google Gemini
,Clip Comparison
,Label Visualization
,Segment Anything 2 Model
,Polygon Visualization
,Dynamic Crop
,Trace Visualization
,Polygon Zone Visualization
,CogVLM
,Image Threshold
,LMM
,Absolute Static Crop
,SIFT Comparison
,Roboflow Dataset Upload
,Circle Visualization
,Instance Segmentation Model
The available connections depend on its binding kinds. Check what binding kinds
Image Contours
in version v1
has.
Bindings
-
input
-
output
image
(image
): Image in workflows.contours
(contours
): List of numpy arrays where each array represents contour points.hierarchy
(numpy_array
): Numpy array.number_contours
(integer
): Integer value.
Example JSON definition of step Image Contours
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/contours_detection@v1",
"image": "$inputs.image",
"line_thickness": 3
}