Dify Barcode Scanner Plugin

Decode every 1D and 2D barcode in a user-uploaded image straight inside your Dify plugin runtime. Capture exact strings with leading zeros intact and no API key.

Install from Dify Marketplace

Executes in Dify's Python 3.12 plugin runtime (amd64 and arm64, 512 MiB). No API key required.

Open Dify Marketplace
  1. 1

    Inside Dify, navigate to Plugins → Marketplace and search for QR Code & Barcode Scanner.

  2. 2

    Click Install. Signed Marketplace packages run on Dify Cloud and self-hosted setups with default configuration.

  3. 3

    Place Scan QR codes and barcodes (scan_image) into a workflow or agent and bind an uploaded image file.

Fetches the uploaded image from Dify's file service, persists nothing and forwards images to no external endpoint.

Read uploaded barcodes inside Dify workflows

Replace vision-model guesswork with exact local decoding, typed output variables and clean error branching.

Workflows & Agent uploads

Attach Scan QR codes and barcodes (scan_image) to PNG, JPEG, WebP or GIF uploads up to 16 MiB, 4,096 px per side and 16 MP.

texts, count & complete variables

Places exact barcode strings (leading zeros intact) in texts, alongside count, complete and the full JSON report without external lookups.

QRS- failure branching

Blank images return count 0 cleanly; corrupt or oversized uploads raise a QRS- error code for clean workflow failure routing.

Test a barcode image in Dify

Save a known reference image, execute the workflow tool 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.

Run scan_image in Dify

Text
# Tool: Scan QR codes and barcodes (scan_image)
image:     barcode-reference.png (user upload)
profile:   fast
budget_ms: 0
# Output -> texts: ["STOCK-4827"], count: 1, complete: true
Expected result · Code 128
STOCK-4827

Dify decodes the uploaded label locally inside the plugin runtime and populates texts with the exact Code 128 string without an LLM.

Sample output for barcode-reference.png.

Dify Barcode Scanner plugin questions

Marketplace install, self-hosted .difypkg builds, tool outputs, caps and privacy.

In Dify, go to Plugins → Marketplace, search for QR Code & Barcode Scanner and click Install. You can also check the official page on Dify Marketplace.

No. The open-source Rust/Python engine runs locally inside Dify's Python 3.12 plugin runtime, so decoding needs no vision model, no QR Code AI account and no external API key.

Yes. Build a .difypkg archive from the repo with dify plugin package ./qrcode-barcode-scanner-dify, add FORCE_VERIFYING_SIGNATURE=false to docker/.env for unsigned local packages, restart Dify and upload it via Install plugin → Local package file.

It outputs a one-line text summary, the unchanged engine JSON report and three workflow variables: texts (decoded strings), count (total codes found) and complete (false when budget_ms stops decoding early).

One PNG, JPEG, WebP or GIF upload per call, capped at 16 MiB, 4,096 pixels per side and 16 million total pixels. Oversized or corrupt files fail with a QRS- error code so downstream nodes can handle them on a failure branch.

Yes. It reads 16 barcode symbologies directly inside Dify's runtime, preserving every digit and leading zero in texts without querying external retail, shipping or ISBN catalogues.

Yes. Both the plugin source and current PyPI engine wheel are free and MIT-licensed, completely separate from QR Code AI generation credits or paid plans.

Dify setup and Barcode Scanner references

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