ComfyUI Barcode Scanner Node

Read every 1D and 2D barcode across a ComfyUI IMAGE batch locally inside ComfyUI's Python runtime. Confirm exact barcode strings with leading zeros preserved.

Install via Comfy CLI or ComfyUI Manager

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

  1. 1

    Execute the Comfy CLI command below, or look up QR Code & Barcode Scanner inside ComfyUI Manager.

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

    Restart ComfyUI, place 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), supply 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 requests.

Comfy Registry

Check barcodes right inside ComfyUI graphs

Inspect generated or edited IMAGE tensors locally on CPU while leaving pixel buffers completely intact.

Batch IMAGE tensor scanning

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

expected_text & matches gate

Provide expected_text to confirm every rendered label decodes to your exact barcode digits with leading zeros kept intact.

texts, count & report_json

Returns one decoded line per symbol in batch order, the total count and a JSON array of raw engine reports plus graph logs.

Try a barcode image in ComfyUI

Create a known reference image, run the node scan and check the decoded string character by character.

barcode-reference.png

Create a Code 128 barcode encoding STOCK-4827 and save the file 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 returns the exact Code 128 string inside 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.

Look up QR Code & Barcode Scanner in ComfyUI Manager, run comfy node install qrcode-barcode-scanner-nodes, or clone the repo into ComfyUI/custom_nodes and install requirements.txt. Refer to Comfy Registry.

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

fast (the default) handles crisp renders reliably and provides a lighter quality score. Switch to full for faded, noisy or skewed labels, and keep budget_ms at 0 for consistent results.

With expected_text filled in, matches evaluates to true only when every image in the IMAGE batch holds a code matching that exact string (preserving case and leading zeros). Left empty, matches is true whenever every image has at least one readable code.

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

Each image in a batch may measure up to 10,000 pixels along either edge and up to 64 million total pixels. Oversized images halt the node with the engine's QRS- error code and the batch image number.

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

ComfyUI setup and Barcode Scanner references

Refer to the official registry page and README for installation steps, tensor limits and supported formats.