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