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.
Evaluate generated or edited IMAGE tensors locally on CPU without mutating pixel buffers.
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.
Set expected_text to confirm every generated label still decodes to your exact barcode digits (leading zeros included).
Outputs one decoded line per code in batch order, total code count and a JSON array of unchanged engine reports plus graph logs.
Prepare a known test image, run the scan and verify the returned value character by character.
Create a Code 128 barcode containing STOCK-4827 and save it as barcode-reference.png.
# 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: 1ComfyUI decodes the IMAGE batch on CPU, sets matches to true and returns the exact Code 128 string in texts and report_json.
Example result for barcode-reference.png.
Comfy Registry & portable Windows install, barcode label 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.
fast (the default) works well for clean renders and returns a reduced quality score. Switch to full for low-contrast, noisy or perspective-warped labels, and leave budget_ms at 0 for reproducible results.
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.
Consult the official listing and README for installation details, limits and supported formats.