Image Preprocessing¶
Class: ImagePreprocessingBlockV1
Source: inference.core.workflows.core_steps.classical_cv.image_preprocessing.v1.ImagePreprocessingBlockV1
Apply a resize, flip, or rotation step to an image.
Width and height are required for resizing. Degrees are required for rotating. Flip type is required for flipping.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/image_preprocessing@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.. | ❌ |
task_type |
str |
Preprocessing task to be applied to the image.. | ❌ |
width |
int |
Width of the image to be resized to.. | ✅ |
height |
int |
Height of the image to be resized to.. | ✅ |
rotation_degrees |
int |
Positive value to rotate clockwise, negative value to rotate counterclockwise. | ✅ |
flip_type |
str |
Type of flip to be applied to the image.. | ✅ |
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 Image Preprocessing
in version v1
.
- inputs:
Florence-2 Model
,Stitch Images
,Pixelate Visualization
,Multi-Label Classification Model
,LMM For Classification
,SIFT Comparison
,Line Counter
,Keypoint Detection Model
,Corner Visualization
,Blur Visualization
,Single-Label Classification Model
,Mask Visualization
,OCR Model
,Perspective Correction
,Object Detection Model
,SIFT
,Line Counter
,Local File Sink
,Model Monitoring Inference Aggregator
,Polygon Zone Visualization
,Polygon Visualization
,VLM as Classifier
,Halo Visualization
,Webhook Sink
,Grid Visualization
,Image Slicer
,Model Comparison Visualization
,Trace Visualization
,Camera Focus
,CogVLM
,Image Threshold
,Google Vision OCR
,Keypoint Visualization
,Email Notification
,Crop Visualization
,Template Matching
,Image Preprocessing
,OpenAI
,Roboflow Custom Metadata
,Instance Segmentation Model
,Roboflow Dataset Upload
,Clip Comparison
,Roboflow Dataset Upload
,Stitch OCR Detections
,Slack Notification
,Anthropic Claude
,SIFT Comparison
,Image Blur
,Relative Static Crop
,Circle Visualization
,Image Convert Grayscale
,Dot Visualization
,Google Gemini
,Background Color Visualization
,Bounding Box Visualization
,Ellipse Visualization
,Image Contours
,Label Visualization
,Classification Label Visualization
,Line Counter Visualization
,Florence-2 Model
,LMM
,Stability AI Inpainting
,Reference Path Visualization
,Twilio SMS Notification
,OpenAI
,Dynamic Crop
,VLM as Detector
,Color Visualization
,Triangle Visualization
,Pixel Color Count
,CSV Formatter
,Llama 3.2 Vision
,Absolute Static Crop
,Distance Measurement
- 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
Image Preprocessing
in version v1
has.
Bindings
-
input
image
(image
): The input image for this step..width
(integer
): Width of the image to be resized to..height
(integer
): Height of the image to be resized to..rotation_degrees
(integer
): Positive value to rotate clockwise, negative value to rotate counterclockwise.flip_type
(string
): Type of flip to be applied to the image..
-
output
image
(image
): Image in workflows.
Example JSON definition of step Image Preprocessing
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/image_preprocessing@v1",
"image": "$inputs.image",
"task_type": "<block_does_not_provide_example>",
"width": 640,
"height": 640,
"rotation_degrees": 90,
"flip_type": "vertical"
}