Relative Static Crop¶
Class: RelativeStaticCropBlockV1
Crop a Region of Interest (RoI) from an image, using relative coordinates.
This is useful when placed after an ObjectDetection block as part of a multi-stage workflow. For example, you could use an ObjectDetection block to detect objects, then the RelativeStaticCrop block to crop objects, then an OCR block to run character recognition on each of the individual cropped regions.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/relative_statoic_crop@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
x_center |
float |
Center X of static crop (relative coordinate 0.0-1.0). | ✅ |
y_center |
float |
Center Y of static crop (relative coordinate 0.0-1.0). | ✅ |
width |
float |
Width of static crop (relative value 0.0-1.0). | ✅ |
height |
float |
Height of static crop (relative value 0.0-1.0). | ✅ |
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 Relative Static Crop
in version v1
.
- inputs:
Stitch Images
,Pixelate Visualization
,SIFT Comparison
,Corner Visualization
,Blur Visualization
,Mask Visualization
,Perspective Correction
,SIFT
,Polygon Zone Visualization
,Polygon Visualization
,Halo Visualization
,Grid Visualization
,Image Slicer
,Model Comparison Visualization
,Trace Visualization
,Camera Focus
,Detections Consensus
,Image Threshold
,Keypoint Visualization
,Crop Visualization
,Image Preprocessing
,Clip Comparison
,Identify Changes
,Image Blur
,Relative Static Crop
,Circle Visualization
,Image Convert Grayscale
,Dot Visualization
,Background Color Visualization
,Bounding Box Visualization
,Ellipse Visualization
,Image Contours
,Label Visualization
,Classification Label Visualization
,Line Counter Visualization
,Identify Outliers
,Stability AI Inpainting
,Reference Path Visualization
,Dynamic Crop
,Color Visualization
,Triangle Visualization
,Absolute Static Crop
- outputs:
Multi-Label Classification Model
,Pixelate Visualization
,Stitch Images
,LMM For Classification
,Keypoint Detection Model
,Gaze Detection
,Instance Segmentation Model
,CLIP Embedding Model
,Blur Visualization
,OCR Model
,Mask Visualization
,Object Detection Model
,Single-Label Classification Model
,SIFT
,YOLO-World Model
,Polygon Visualization
,Halo Visualization
,VLM as Detector
,Google Vision OCR
,Model Comparison Visualization
,Camera Focus
,CogVLM
,Byte Tracker
,Image Threshold
,Keypoint Visualization
,Template Matching
,Image Preprocessing
,Roboflow Dataset Upload
,Relative Static Crop
,Background Color Visualization
,Clip Comparison
,Bounding Box Visualization
,Image Contours
,Label Visualization
,Line Counter Visualization
,Classification Label Visualization
,Ellipse Visualization
,LMM
,Reference Path Visualization
,Stability AI Inpainting
,VLM as Detector
,Dynamic Crop
,Dominant Color
,Triangle Visualization
,Absolute Static Crop
,Object Detection Model
,Florence-2 Model
,Detections Stitch
,Barcode Detection
,SIFT Comparison
,Keypoint Detection Model
,Corner Visualization
,Perspective Correction
,Polygon Zone Visualization
,VLM as Classifier
,Image Slicer
,Trace Visualization
,OpenAI
,Crop Visualization
,Instance Segmentation Model
,Buffer
,Roboflow Dataset Upload
,Clip Comparison
,VLM as Classifier
,Anthropic Claude
,Image Blur
,Dot Visualization
,Image Convert Grayscale
,Circle Visualization
,Google Gemini
,QR Code Detection
,Segment Anything 2 Model
,Single-Label Classification Model
,Florence-2 Model
,Time in Zone
,Detections Stabilizer
,OpenAI
,Color Visualization
,Pixel Color Count
,Multi-Label Classification Model
,Llama 3.2 Vision
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Relative Static Crop
in version v1
has.
Bindings
-
input
images
(image
): The image to infer on.x_center
(float_zero_to_one
): Center X of static crop (relative coordinate 0.0-1.0).y_center
(float_zero_to_one
): Center Y of static crop (relative coordinate 0.0-1.0).width
(float_zero_to_one
): Width of static crop (relative value 0.0-1.0).height
(float_zero_to_one
): Height of static crop (relative value 0.0-1.0).
-
output
crops
(image
): Image in workflows.
Example JSON definition of step Relative Static Crop
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/relative_statoic_crop@v1",
"images": "$inputs.image",
"x_center": 0.3,
"y_center": 0.3,
"width": 0.3,
"height": 0.3
}