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