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