ComfyUI QR Code Scanner Node

Check every QR code in a ComfyUI IMAGE batch locally inside ComfyUI’s own Python process. Verify that AI-generated or edited QR codes still decode to your exact text.

Install via Comfy CLI or ComfyUI Manager

Installs the qrcode-barcode-scanner Python wheel into ComfyUI’s environment.

  1. 1

    Run the Comfy CLI command below, or search for QR Code & Barcode Scanner in ComfyUI Manager.

    Shell
    comfy node install qrcode-barcode-scanner-nodes
  2. 2

    Restart ComfyUI, add Scan QR Codes and Barcodes under image/analysis and connect any IMAGE batch.

  3. 3

    Choose fast (default) or full (for artistic QR codes), set optional expected_text and inspect texts, matches and count.

Runs on CPU inside ComfyUI’s Python process; leaves the incoming IMAGE tensor unmodified and makes zero network calls.

Comfy Registry

Verify QR codes inside ComfyUI image graphs

Evaluate generated or edited IMAGE tensors locally on CPU without mutating pixel buffers.

Batch IMAGE tensor scanning

Reads every image in a ComfyUI IMAGE batch (converted 0 to 1 float to 8-bit RGBA unchanged) up to 10,000 px per side and 64 MP.

expected_text & matches gate

Set expected_text to confirm every stylised QR render still decodes to your exact URL, outputting a boolean matches signal.

texts, count & report_json

Outputs one decoded line per code in batch order, total code count and a JSON array of unchanged engine reports plus graph logs.

Try a QR image in ComfyUI

Prepare a known test image, run the scan and verify the returned value character by character.

qr-reference.png

Create a text QR code containing https://qrcode-ai.com/ and save it as qr-reference.png.

Wire Scan QR Codes and Barcodes in ComfyUI

Text
# Node: image/analysis -> Scan QR Codes and Barcodes
IMAGE:         LoadImage("qr-reference.png")
profile:       full
budget_ms:     0
expected_text: https://qrcode-ai.com/
# Outputs -> texts, report_json, matches: true, count: 1
Expected result · QR code
https://qrcode-ai.com/

ComfyUI decodes the IMAGE batch on CPU, sets matches to true and returns the exact QR URL in texts and report_json.

Example result for qr-reference.png.

ComfyUI QR Code Scanner node questions

Comfy Registry & portable Windows install, artistic QR profiles, IMAGE batching and licensing.

Search for QR Code & Barcode Scanner in ComfyUI Manager, run comfy node install qrcode-barcode-scanner-nodes, or clone the repository into ComfyUI/custom_nodes and install requirements.txt. See Comfy Registry.

Clone qrcode-barcode-scanner-comfyui into ComfyUI/custom_nodes, install requirements.txt using ComfyUI’s bundled python_embeded\python.exe and restart ComfyUI so the wheel installs into the embedded environment.

Switch profile from fast (the default) to full. full runs the deepest pre-processing and full quality scoring needed for stylised or artistic QR codes. Leave budget_ms at 0 so CPU load does not cut off decoding.

When expected_text is provided, matches is true only when every image in the IMAGE batch contains a code decoding to that exact string (leading zeros and case included). When left empty, matches is true when every image contains at least one readable code.

No. The engine runs on CPU inside ComfyUI’s own Python process, makes zero network calls, never opens decoded URLs and never alters the incoming IMAGE tensor.

Each image in the batch can be up to 10,000 pixels wide or tall and up to 64 million total pixels. Larger images stop the node with the engine’s QRS- error code and the batch image number.

Yes. Both the ComfyUI node and the current PyPI engine wheel are free and open source under the MIT licence, completely separate from QR Code AI accounts, generation credits or paid plans.

ComfyUI setup and QR Code Scanner references

Consult the official listing and README for installation details, limits and supported formats.