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