Pixelate Visualization¶
Class: PixelateVisualizationBlockV1
Source: inference.core.workflows.core_steps.visualizations.pixelate.v1.PixelateVisualizationBlockV1
Apply a pixelated mosaic effect to detected objects, creating a blocky, pixelated appearance that obscures object details while maintaining recognizable shapes, useful for privacy protection and content anonymization.
How This Block Works¶
This block takes an image and detection predictions and applies a pixelation (mosaic) effect to the detected objects, leaving the background unchanged. The block:
- Takes an image and predictions as input
- Identifies detected regions from bounding boxes or segmentation masks
- Divides the detected object regions into square blocks (pixels) of the specified size
- Replaces each block with a single color value (typically the average color of that block), creating a mosaic-like pixelated effect
- Preserves the background and areas outside detected objects unchanged
- Returns an annotated image where detected objects are pixelated with blocky, mosaic appearance, while the rest of the image remains sharp
The block works with both object detection predictions (using bounding boxes) and instance segmentation predictions (using masks). When masks are available, it pixelates the exact shape of detected objects; otherwise, it pixelates rectangular bounding box regions. The pixel size parameter controls how large each square block is, where larger pixel sizes create more pronounced pixelation with fewer, larger blocks (more obscured), while smaller pixel sizes create finer pixelation with more, smaller blocks (less obscured). Unlike blur visualization (which creates smooth, gradient-like obscuration), pixelation creates distinct, blocky squares that maintain a more stylized, mosaic appearance while still effectively obscuring details.
Common Use Cases¶
- Privacy Protection and Anonymization: Pixelate faces, people, license plates, or other sensitive information in images or videos to protect privacy, comply with data protection regulations, or anonymize content before sharing or publishing, using the distinctive pixelated mosaic effect
- Content Filtering and Censorship: Obscure inappropriate or sensitive content in images or videos for content moderation workflows, safe content previews, or user-generated content filtering, where the pixelated effect provides clear visual indication that content has been processed
- Stylized Content Anonymization: Create pixelated effects for artistic or stylized content anonymization where the mosaic appearance is preferred over smooth blur, useful for creative projects, stylized presentations, or distinctive visual effects
- Visual Emphasis and Focus: Pixelate detected objects to draw attention to other parts of the image, create visual contrast between pixelated foreground objects and sharp backgrounds, or emphasize specific elements in composition with a distinctive visual style
- Security and Surveillance: Anonymize people, vehicles, or other identifiable elements in security footage or surveillance images while preserving scene context, using pixelation as an alternative to blur for a more stylized anonymization effect
- Documentation and Reporting: Create pixelated, anonymized versions of images for reports, documentation, or case studies where sensitive information needs to be obscured but overall context should remain visible, with a distinctive mosaic aesthetic
Connecting to Other Blocks¶
The annotated image from this block can be connected to:
- Other visualization blocks (e.g., Label Visualization, Bounding Box Visualization, Polygon Visualization) to add additional annotations on top of pixelated objects for comprehensive visualization or to indicate what was pixelated
- Data storage blocks (e.g., Local File Sink, CSV Formatter, Roboflow Dataset Upload) to save pixelated images for documentation, reporting, or archiving privacy-protected content
- Webhook blocks to send pixelated images to external systems, APIs, or web applications for content moderation, privacy-compliant sharing, or anonymized analysis
- Notification blocks (e.g., Email Notification, Slack Notification) to send pixelated images as privacy-protected visual evidence in alerts or reports
- Video output blocks to create annotated video streams or recordings with pixelated objects for live monitoring, privacy-compliant video processing, or post-processing analysis
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/pixelate_visualization@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | โ |
copy_image |
bool |
Enable this option to create a copy of the input image for visualization, preserving the original. Use this when stacking multiple visualizations.. | โ |
pixel_size |
int |
Size of each square pixel block in the pixelated effect, measured in pixels. Controls the granularity of the pixelation: larger values create bigger, more blocky pixels with stronger obscuration (fewer blocks, more abstract appearance), while smaller values create finer, more detailed pixelation (more blocks, less obscured). Typical values range from 10 to 50 pixels, with 20 being a good default that balances obscuration with recognizable object shape.. | โ |
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 Pixelate Visualization in version v1.
- inputs:
Detections Classes Replacement,Morphological Transformation,Roboflow Asset Library Attributes,OC-SORT Tracker,Moondream2,Image Preprocessing,Email Notification,Overlap Filter,VLM As Classifier,Halo Visualization,Morphological Transformation,Seg Preview,Detections Transformation,EasyOCR,YOLO-World Model,Segment Anything 2 Model,Twilio SMS Notification,Object Detection Model,Text Display,Local File Sink,Image Threshold,Time in Zone,BoT-SORT Tracker,Template Matching,Icon Visualization,Triangle Visualization,VLM As Classifier,Mask Area Measurement,Model Monitoring Inference Aggregator,Pixelate Visualization,Path Deviation,Microsoft SQL Server Sink,Keypoint Detection Model,Time in Zone,Crop Visualization,JSON Parser,SAM 3,Dot Visualization,Detections Merge,Google Vision OCR,Detections List Roll-Up,Instance Segmentation Model,Roboflow Dataset Upload,Mask Edge Snap,Distance Measurement,Roboflow Vision Events,Polygon Zone Visualization,Instance Segmentation Model,Polygon Visualization,SIFT Comparison,Background Color Visualization,Absolute Static Crop,S3 Sink,Twilio SMS/MMS Notification,QR Code Generator,SIFT Comparison,Contrast Enhancement,Byte Tracker,Per-Class Confidence Filter,Grid Visualization,Corner Visualization,Reference Path Visualization,Image Slicer,Line Counter,Dynamic Zone,Detections Filter,Halo Visualization,Dynamic Crop,Webhook Sink,OCR Model,Byte Tracker,Color Visualization,Stability AI Outpainting,Roboflow Dataset Upload,Roboflow Custom Metadata,VLM As Detector,Instance Segmentation Model,Detection Event Log,Gaze Detection,Bounding Rectangle,Detections Stabilizer,Relative Static Crop,Image Blur,Line Counter Visualization,Stability AI Inpainting,Blur Visualization,Object Detection Model,SORT Tracker,Path Deviation,SAM 3,Perspective Correction,Keypoint Visualization,ByteTrack Tracker,Byte Tracker,Detection Offset,Velocity,MQTT Writer,Motion Detection,Image Slicer,Camera Calibration,Model Comparison Visualization,Depth Estimation,Trace Visualization,Ellipse Visualization,Identify Changes,PTZ Tracking (ONVIF),Detections Consensus,Detections Combine,OPC UA Writer Sink,SAM 3,Slack Notification,Detections Stitch,Circle Visualization,Line Counter,Object Detection Model,Email Notification,Identify Outliers,Time in Zone,Image Stack,Event Writer,Instance Segmentation Model,Contrast Equalization,Camera Focus,Heatmap Visualization,Background Subtraction,Image Contours,SAM2 Video Tracker,Pixel Color Count,VLM As Detector,Classification Label Visualization,Bounding Box Visualization,Label Visualization,Keypoint Detection Model,Camera Focus,Keypoint Detection Model,Stitch Images,Mask Visualization,SIFT,Stability AI Image Generation,Polygon Visualization,Image Convert Grayscale - outputs:
Morphological Transformation,Image Preprocessing,Email Notification,VLM As Classifier,Morphological Transformation,Halo Visualization,Object Detection Model,Pixel Color Count,BoT-SORT Tracker,Template Matching,Image Threshold,Text Display,Pixelate Visualization,Keypoint Detection Model,Qwen-VL,OpenAI,CogVLM,Crop Visualization,SAM 3,Dot Visualization,Google Vision OCR,Florence-2 Model,Roboflow Dataset Upload,Mask Edge Snap,Qwen3.5-VL,Roboflow Vision Events,Polygon Zone Visualization,Qwen2.5-VL,Polygon Visualization,Absolute Static Crop,Twilio SMS/MMS Notification,SIFT Comparison,Contrast Enhancement,Single-Label Classification Model,OCR Model,Byte Tracker,Color Visualization,Roboflow Dataset Upload,Gaze Detection,LMM For Classification,Detections Stabilizer,Line Counter Visualization,Image Blur,Stability AI Inpainting,Object Detection Model,Blur Visualization,SAM 3,Perspective Correction,Keypoint Visualization,Anthropic Claude,MoonshotAI Kimi,Google Gemini,Image Slicer,SAM 3,Depth Estimation,Detections Stitch,Ellipse Visualization,Google Gemma API,Object Detection Model,Time in Zone,Image Stack,Google Gemini,Bounding Box Visualization,Label Visualization,Keypoint Detection Model,Camera Focus,Keypoint Detection Model,Multi-Label Classification Model,OpenAI,SIFT,Perception Encoder Embedding Model,Anthropic Claude,Image Convert Grayscale,Moondream2,OC-SORT Tracker,CLIP Embedding Model,Florence-2 Model,Seg Preview,EasyOCR,YOLO-World Model,Buffer,Multi-Label Classification Model,Segment Anything 2 Model,Single-Label Classification Model,Triangle Visualization,Icon Visualization,Qwen 3.5 API,VLM As Classifier,OpenRouter,Dominant Color,Instance Segmentation Model,Qwen3-VL,Instance Segmentation Model,OpenAI,Background Color Visualization,MoonshotAI Kimi,Google Gemini,Clip Comparison,Semantic Segmentation Model,Corner Visualization,Image Slicer,SmolVLM2,Reference Path Visualization,Single-Label Classification Model,Halo Visualization,Dynamic Crop,Instance Segmentation Model,Stability AI Outpainting,VLM As Detector,Anthropic Claude,Relative Static Crop,Multi-Label Classification Model,Clip Comparison,SORT Tracker,OpenAI,Llama 3.2 Vision,Barcode Detection,ByteTrack Tracker,Motion Detection,Camera Calibration,Google Gemma,Model Comparison Visualization,Trace Visualization,QR Code Detection,Circle Visualization,LMM,Event Writer,Instance Segmentation Model,Contrast Equalization,Camera Focus,Heatmap Visualization,Background Subtraction,Qwen 3.6 API,SAM2 Video Tracker,GLM-OCR,Image Contours,Qwen3.5,VLM As Detector,Classification Label Visualization,Llama 3.2 Vision,Stitch Images,Mask Visualization,Stability AI Image Generation,Semantic Segmentation Model,Polygon Visualization
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Pixelate Visualization in version v1 has.
Bindings
-
input
image(image): The image to visualize on..copy_image(boolean): Enable this option to create a copy of the input image for visualization, preserving the original. Use this when stacking multiple visualizations..predictions(Union[instance_segmentation_prediction,keypoint_detection_prediction,rle_instance_segmentation_prediction,object_detection_prediction]): Model predictions to visualize..pixel_size(integer): Size of each square pixel block in the pixelated effect, measured in pixels. Controls the granularity of the pixelation: larger values create bigger, more blocky pixels with stronger obscuration (fewer blocks, more abstract appearance), while smaller values create finer, more detailed pixelation (more blocks, less obscured). Typical values range from 10 to 50 pixels, with 20 being a good default that balances obscuration with recognizable object shape..
-
output
image(image): Image in workflows.
Example JSON definition of step Pixelate Visualization in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/pixelate_visualization@v1",
"image": "$inputs.image",
"copy_image": true,
"predictions": "$steps.object_detection_model.predictions",
"pixel_size": 20
}