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