QR Code Generator¶
Class: QRCodeGeneratorBlockV1
Source: inference.core.workflows.core_steps.transformations.qr_code_generator.v1.QRCodeGeneratorBlockV1
Generate a QR code image from a string input (typically a URL).
This block creates a QR code PNG image from the provided text input. It supports various customization options including size control, error correction levels, and visual styling. The generated QR code can be used in workflows where you need to create QR codes for URLs, text content, or other data that needs to be encoded.
The output is a PNG image that can be passed to other workflow blocks such as visualizers or image processing blocks.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/qr_code_generator@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
text |
str |
Text or URL to encode in the QR code. | ✅ |
error_correct |
str |
Increased error correction comes at the expense of data capacity (text length). Use higher error correction if the QR code is likely to be transformed or obscured, but use a lower error correction level if the URL is long and the QR code is clearly visible.. | ❌ |
border |
int |
Border thickness in modules (default: 4). | ✅ |
fill_color |
str |
QR code block color. Supports hex (#FF0000), rgb(255, 0, 0), standard names (BLACK, WHITE, RED, etc.), or CSS3 color names.. | ✅ |
back_color |
str |
QR code background color. Supports hex (#FFFFFF), rgb(255, 255, 255), standard names (BLACK, WHITE, RED, etc.), or CSS3 color names.. | ✅ |
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 QR Code Generator in version v1.
- inputs:
Line Counter,Llama 3.2 Vision,Perspective Correction,Distance Measurement,Roboflow Custom Metadata,LMM,OpenAI,Florence-2 Model,Single-Label Classification Model,SIFT Comparison,Google Gemini,Florence-2 Model,LMM For Classification,Object Detection Model,OCR Model,Anthropic Claude,Google Vision OCR,Local File Sink,EasyOCR,Email Notification,VLM as Detector,Line Counter,Roboflow Dataset Upload,Slack Notification,Keypoint Detection Model,Google Gemini,Model Monitoring Inference Aggregator,Roboflow Dataset Upload,Image Contours,Multi-Label Classification Model,Twilio SMS Notification,Instance Segmentation Model,VLM as Classifier,CSV Formatter,OpenAI,Webhook Sink,Stitch OCR Detections,CogVLM,Clip Comparison,Template Matching,Email Notification,OpenAI,Pixel Color Count,Anthropic Claude,SIFT Comparison,OpenAI - outputs:
Llama 3.2 Vision,Blur Visualization,Perception Encoder Embedding Model,SAM 3,Perspective Correction,Polygon Zone Visualization,Bounding Box Visualization,Pixelate Visualization,Trace Visualization,QR Code Detection,Segment Anything 2 Model,Image Threshold,Image Slicer,Icon Visualization,Polygon Visualization,Dynamic Crop,Stability AI Outpainting,Model Comparison Visualization,Clip Comparison,Single-Label Classification Model,LMM,OpenAI,Stitch Images,Classification Label Visualization,Florence-2 Model,Mask Visualization,Single-Label Classification Model,Relative Static Crop,SIFT Comparison,Absolute Static Crop,SAM 3,Moondream2,Google Gemini,Circle Visualization,Florence-2 Model,LMM For Classification,Time in Zone,Ellipse Visualization,Image Convert Grayscale,Object Detection Model,OCR Model,SmolVLM2,Anthropic Claude,Image Preprocessing,Image Blur,Stability AI Image Generation,Google Vision OCR,Color Visualization,Keypoint Visualization,Camera Calibration,VLM as Detector,Keypoint Detection Model,EasyOCR,Image Slicer,VLM as Detector,Byte Tracker,Roboflow Dataset Upload,Gaze Detection,Background Color Visualization,Triangle Visualization,Keypoint Detection Model,Multi-Label Classification Model,Object Detection Model,Detections Stabilizer,Halo Visualization,Google Gemini,Corner Visualization,Roboflow Dataset Upload,Dot Visualization,Image Contours,Multi-Label Classification Model,Instance Segmentation Model,VLM as Classifier,Seg Preview,Reference Path Visualization,Morphological Transformation,Motion Detection,OpenAI,Instance Segmentation Model,Barcode Detection,Detections Stitch,Contrast Equalization,YOLO-World Model,Camera Focus,Stability AI Inpainting,Clip Comparison,CogVLM,Line Counter Visualization,Template Matching,CLIP Embedding Model,Email Notification,Crop Visualization,VLM as Classifier,Buffer,OpenAI,SIFT,Background Subtraction,Depth Estimation,SAM 3,Anthropic Claude,Pixel Color Count,Label Visualization,Qwen2.5-VL,OpenAI,Dominant Color
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
QR Code Generator in version v1 has.
Bindings
-
input
text(string): Text or URL to encode in the QR code.border(integer): Border thickness in modules (default: 4).fill_color(string): QR code block color. Supports hex (#FF0000), rgb(255, 0, 0), standard names (BLACK, WHITE, RED, etc.), or CSS3 color names..back_color(string): QR code background color. Supports hex (#FFFFFF), rgb(255, 255, 255), standard names (BLACK, WHITE, RED, etc.), or CSS3 color names..
-
output
qr_code(image): Image in workflows.
Example JSON definition of step QR Code Generator in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/qr_code_generator@v1",
"text": "https://roboflow.com",
"error_correct": "Low (~7% word recovery / highest data capacity)",
"border": 2,
"fill_color": "BLACK",
"back_color": "WHITE"
}