ComfyUI Barcode Scanner Node

Decode every 1D and 2D barcode across a ComfyUI IMAGE batch locally inside ComfyUI's Python process. Check exact barcode strings with leading zeros preserved.

Install via Comfy CLI or ComfyUI Manager

Adds the qrcode-barcode-scanner Python wheel into ComfyUI's environment.

  1. 1

    Execute the Comfy CLI command below, or search 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 from image/analysis and wire any IMAGE batch.

  3. 3

    Choose fast (default) or full (for low-contrast or warped labels), set optional expected_text and check texts, matches and count.

Executes on CPU inside ComfyUI's Python process; keeps the input IMAGE tensor untouched and makes zero network calls.

Comfy Registry

Check barcodes inside ComfyUI image graphs

Validate generated or edited IMAGE tensors locally on CPU without altering pixel buffers.

Batch IMAGE tensor scanning

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

expected_text & matches gate

Provide expected_text to confirm every rendered label still decodes to your exact barcode digits (leading zeros preserved).

texts, count & report_json

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

Test a barcode image in ComfyUI

Save a known reference image, queue the node scan and confirm the decoded string character for character.

barcode-reference.png

Create a Code 128 barcode encoding STOCK-4827 and save it as barcode-reference.png.

Wire Scan QR Codes and Barcodes in ComfyUI

Text
# Node: image/analysis -> Scan QR Codes and Barcodes
IMAGE:         LoadImage("barcode-reference.png")
profile:       fast
budget_ms:     0
expected_text: STOCK-4827
# Outputs -> texts, report_json, matches: true, count: 1
Expected result · Code 128
STOCK-4827

ComfyUI processes the IMAGE batch on CPU, outputs matches as true and places the exact Code 128 string in texts and report_json.

Sample output for barcode-reference.png.

ComfyUI Barcode Scanner node questions

Comfy Registry & portable Windows setup, barcode label profiles, IMAGE batching and licensing.

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

Clone qrcode-barcode-scanner-comfyui into ComfyUI/custom_nodes, install requirements.txt with ComfyUI's bundled python_embeded\python.exe, then restart ComfyUI so the wheel loads inside the embedded Python environment.

fast (the default) handles clean renders quickly and reports a reduced quality score. Switch to full for low-contrast, noisy or perspective-warped labels, and leave budget_ms at 0 for consistent outputs.

When expected_text is set, matches returns true only if every image in the IMAGE batch includes a code decoding to that exact string (preserving leading zeros and letter case). When left blank, matches returns true if every image contains at least one readable code.

No. The engine executes on CPU inside ComfyUI's Python process, makes zero network calls, never opens decoded URLs and leaves the incoming IMAGE tensor unchanged.

Every image in the batch may measure up to 10,000 pixels on either side and up to 64 million total pixels. Larger images halt the node with the engine's QRS- error code and the batch image number.

Yes. Both the ComfyUI custom node and current PyPI engine wheel are free and MIT-licensed for local use, independent of QR Code AI accounts, generation credits or paid plans.

ComfyUI setup and Barcode Scanner references

Check the official listing and README for installation steps, batch caps and supported formats.