Pixel Color Count¶
Version v1
¶
Count the number of pixels that match a specific color within a given tolerance.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/pixel_color_count@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
The unique name of this step.. | ❌ |
target_color |
Union[Any, str] |
Target color to count in the image. Can be a hex string (like '#431112') RGB string (like '(128, 32, 64)') or a RGB tuple (like (18, 17, 67)).. | ✅ |
tolerance |
int |
Tolerance for color matching.. | ✅ |
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 Pixel Color Count
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
,Dominant Color
,Color Visualization
,Image Slicer
,Perspective Correction
,Absolute Static Crop
,Bounding Box Visualization
,Halo Visualization
,SIFT Comparison
,Circle Visualization
,Dot Visualization
- outputs:
Webhook Sink
,Line Counter Visualization
The available connections depend on its binding kinds. Check what binding kinds
Pixel Color Count
in version v1
has.
Bindings
-
input
-
output
matching_pixels_count
(integer
): Integer value.
Example JSON definition of step Pixel Color Count
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/pixel_color_count@v1",
"image": "$inputs.image",
"target_color": "#431112",
"tolerance": 10
}