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:
Circle Visualization
,Background Color Visualization
,Corner Visualization
,Twilio SMS Notification
,Slack Notification
,VLM as Detector
,LMM
,Polygon Zone Visualization
,Camera Focus
,Image Slicer
,Image Blur
,Dot Visualization
,Google Gemini
,Roboflow Dataset Upload
,Stability AI Inpainting
,Pixelate Visualization
,Line Counter
,OpenAI
,Distance Measurement
,Image Convert Grayscale
,Absolute Static Crop
,Stability AI Image Generation
,Webhook Sink
,Color Visualization
,Image Threshold
,Halo Visualization
,Polygon Visualization
,Grid Visualization
,VLM as Classifier
,CogVLM
,Camera Calibration
,Email Notification
,Classification Label Visualization
,Single-Label Classification Model
,Llama 3.2 Vision
,Google Vision OCR
,Roboflow Dataset Upload
,Ellipse Visualization
,Pixel Color Count
,Bounding Box Visualization
,Object Detection Model
,Line Counter Visualization
,Image Preprocessing
,Trace Visualization
,Label Visualization
,Local File Sink
,Image Slicer
,Anthropic Claude
,Crop Visualization
,OCR Model
,Relative Static Crop
,Model Comparison Visualization
,Stitch OCR Detections
,Perspective Correction
,OpenAI
,Mask Visualization
,Clip Comparison
,Dynamic Crop
,Template Matching
,CSV Formatter
,Florence-2 Model
,Instance Segmentation Model
,Keypoint Detection Model
,Image Contours
,SIFT
,SIFT Comparison
,Reference Path Visualization
,Florence-2 Model
,Triangle Visualization
,Model Monitoring Inference Aggregator
,SIFT Comparison
,Keypoint Visualization
,Multi-Label Classification Model
,LMM For Classification
,Roboflow Custom Metadata
,Line Counter
,Stitch Images
,Blur Visualization
- outputs:
Circle Visualization
,Background Color Visualization
,Corner Visualization
,VLM as Detector
,VLM as Classifier
,LMM
,Polygon Zone Visualization
,Camera Focus
,Image Slicer
,Image Blur
,Dot Visualization
,Google Gemini
,Roboflow Dataset Upload
,Single-Label Classification Model
,Stability AI Inpainting
,Pixelate Visualization
,OpenAI
,Gaze Detection
,Dominant Color
,Stability AI Image Generation
,Image Convert Grayscale
,Absolute Static Crop
,Color Visualization
,Image Threshold
,Halo Visualization
,Polygon Visualization
,VLM as Classifier
,CogVLM
,Instance Segmentation Model
,Camera Calibration
,Object Detection Model
,Classification Label Visualization
,Single-Label Classification Model
,Llama 3.2 Vision
,Google Vision OCR
,Roboflow Dataset Upload
,Byte Tracker
,Ellipse Visualization
,Pixel Color Count
,Bounding Box Visualization
,Object Detection Model
,Line Counter Visualization
,Image Preprocessing
,Keypoint Detection Model
,Trace Visualization
,Label Visualization
,Clip Comparison
,Image Slicer
,Anthropic Claude
,Crop Visualization
,Detections Stitch
,OCR Model
,YOLO-World Model
,Model Comparison Visualization
,Relative Static Crop
,QR Code Detection
,Perspective Correction
,OpenAI
,Qwen2.5-VL
,Mask Visualization
,Time in Zone
,Clip Comparison
,Dynamic Crop
,Template Matching
,Florence-2 Model
,Barcode Detection
,Instance Segmentation Model
,Keypoint Detection Model
,Image Contours
,Buffer
,SIFT
,Multi-Label Classification Model
,Florence-2 Model
,Reference Path Visualization
,CLIP Embedding Model
,Triangle Visualization
,SIFT Comparison
,VLM as Detector
,Keypoint Visualization
,Multi-Label Classification Model
,LMM For Classification
,Segment Anything 2 Model
,Detections Stabilizer
,Stitch Images
,Blur Visualization
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"
}