Skip to main content

QR Code & Barcode Scanner for napari: the napari logo, the Plugins menu command and its form, and a QR code and a barcode being read

QR Code & Barcode Scanner for napari

Ask AI

ChatGPT Claude Gemini Grok Perplexity Copilot DeepSeek Meta AI Qwen

Choose an AI assistant to explain this destination using its public sources. Gemini opens gemini.google.com. Gemini, Copilot, DeepSeek, Meta AI and Qwen require pasting the prompt below; the other links include it in their URL. Sign-in or a manual paste may still be required. Check the answer against the documentation.

Copy the plain-text prompt

Use the code block's copy control, or select its complete text, then paste it into your assistant.

Help me understand QR Code & Barcode Scanner for napari (integrations/napari/README.md) for QR Code & Barcode Scanner, the open-source scanner. Source documentation; publication is not implied. Provided README context (verify against the sources): A napari plugin that reads every QR code and barcode in an image layer. It outlines each code in a new shapes layer, labelled with its format and text, and keeps the engine's full report with it. The open-source engine runs inside napari's own Python: the image stays on your machine, and the layer's pixels are not changed. Read the public documentation below. Explain what this destination does, its documented installation or access steps, a minimal example if supported, prerequisites, limitations and license. Distinguish published packages from working source and preparation. Cite your sources; if a page is unavailable or a fact cannot be checked, say so. Do not invent installation commands, benchmark results or comparisons. Answer in my language. Public sources: https://github.com/qrcode-ai-com/qrcode-barcode-scanner-rust/blob/main/integrations/napari/README.md https://qrcode-ai.com/en-US/qr-code-scanner https://qrcode-ai.com/en-US/barcode-scanner https://qrcode-ai.com/en-US/qr-code-scanner/integrations/napari https://qrcode-ai.com/en-US/barcode-scanner/integrations/napari https://qrcode-ai.com/en-US/qr-code-generator https://qrcode-ai.com/en-US/barcode-generator

A napari plugin that reads every QR code and barcode in an image layer. It outlines each code in a new shapes layer, labelled with its format and text, and keeps the engine's full report with it. The open-source engine runs inside napari's own Python: the image stays on your machine, and the layer's pixels are not changed.

The QR code scanner and the barcode scanner are QR Code AI's scanning pages in the browser. This plugin follows the same route as the QR code scanner napari guide and the barcode scanner napari guide. If a page is not online yet, this README is the reference.

To make a test image with a known value, use the QR code generator or the barcode generator. Open the exported image in napari, scan it and compare the label of the outline with the text you encoded.

Status

The plugin is on PyPI as napari-qrcode-barcode-scanner. Version 0.1.2 runs on the MIT engine 0.12.1. Version 0.1.1, on PyPI since 24 November 2026, runs on the MIT engine 0.12.0, and version 0.1.0, on PyPI since 22 November 2026, on engine 0.11.0. The engine repository publishes each version from its own tag, napari-v0.1.2 for this one, after the owner's review, through PyPI trusted publishing: no token is stored. The files on PyPI are the sdist and the wheel that the tag's run built, checked with twine check --strict, installed in a new environment and tested on the sample in the three profiles. The plugin has also run in a napari window, from its dock widget, as the picture below shows.

The plugin is listed on the napari hub and in napari's plugin manager. Both read napari's plugin index, which is rebuilt once a day, so a new version can take a day or so to appear there after its PyPI release. What the listing shows, and where each value comes from, are in LISTING.md.

Install

Install the plugin from PyPI in the environment that runs napari:

python -m pip install napari-qrcode-barcode-scanner

Or, in napari, choose Plugins, Install/Uninstall Plugins, search for qrcode, install QR Code & Barcode Scanner and restart napari.

Its dependencies are numpy, magicgui and the engine wheel qrcode-barcode-scanner 0.12.1. PyPI has prebuilt engine wheels for macOS on Apple silicon and Intel, Linux on x86-64 and ARM64, musl Linux on x86-64, and 64-bit Windows. Anywhere else pip builds the engine from source, which needs a Rust toolchain. As napari plugins do, it does not install napari or Qt: use the napari you have, or install the plugin with its all extra to get both: python -m pip install "napari-qrcode-barcode-scanner[all]".

To try a change to the plugin, install the folder from a checkout of this repository instead: python -m pip install ./integrations/napari.

Use

Open an image, then choose Plugins, Scan QR codes and barcodes (QR Code & Barcode Scanner). Pick the image layer, a profile and a time budget, and press Run.

A napari window: the sample image with its QR code and its Code 128 barcode outlined and labelled in a new shapes layer, the layer list, and the plugin's form with the layer, profile and budget fields

  • profile: fast (the default) suits uploads and gives a reduced quality score. frame gives no score. full searches deepest and gives the full score; artistic QR codes from a generator need it.
  • budget_ms: a time limit in milliseconds. 0, the default, means no limit.

The plugin adds a shapes layer named after the image, such as sample codes. A QR code or another matrix code is outlined by its four corners. A barcode is drawn as the line the reader scanned across it. Each shape is labelled with its format and text, and the full report is in the layer's metadata, under qrcode_barcode_scanner. A notification sums up what was read. A new scan of the same image replaces that layer; a scan that finds nothing removes it.

From a script, scan_layer returns the same result as napari layer data:

from napari_qrcode_barcode_scanner import scan_layer

data, meta, kind = scan_layer(viewer.layers["sample"], profile="full", budget_ms=0)
print([text for text in meta["features"]["text"]])

Limits

  • It reads 2D images: grey, RGB or RGBA. A stack or a volume is refused with a way out: split the stack with Layers, Split Stack, or project it first. A multiscale image is read at its full resolution.
  • The pixels pass through the layer's contrast limits, as napari shows them. The layer's data is only read.
  • An image wider or taller than 10,000 pixels, or above 64 million pixels, is refused with the engine's QRS- code.
  • The scan runs while napari waits. A full scan of a large image can take seconds: set a budget for those.

Develop

The tests call the widget function on napari's own layer classes and its viewer model, the model behind the window:

python -m venv .venv
.venv/bin/python -m pip install ./integrations/napari -r integrations/napari/tests/requirements.txt
.venv/bin/python -m pytest integrations/napari/tests

They scan the sample in the three profiles, and grey, float, 16-bit, offset and RGBA layers. They check that the pixels reach the engine unchanged, that the image layer is untouched, that a new scan replaces the codes layer, and that stacks, bad options and refused sizes fail clearly. They also check the manifest as napari discovers it and the form magicgui builds. The workflow integration-python-hosts of the engine repository runs them on the built wheel, in a new environment. The same workflow opens a napari window on a virtual display, with PyQt6, adds the plugin's widget, runs a full scan of the sample and checks that both codes are outlined. It keeps a picture of that window: tests/capture_window.py takes it, and media/napari-window.png is the one above.

How it works

How the Python package works, in three steps: install the package, pass an image or a camera frame to the engine inside your process, and read the report

The plugin reads the layer's 2D plane, maps it through its contrast limits to RGBA pixels and passes them to the engine, which runs in napari's Python process. Each scan gives one report.

What it returns

A QR code and Code 128 decoded from the same image, each outlined where the engine measured it

The picture is a recorded scan of the sample image, which holds a QR code and a Code 128 barcode. Both come back in one report, each with its format, its exact text and the place where the engine measured it: https://qrc-ai.com/76xMa and STOCK-4827.

The plugin returns a shapes layer: one shape per place the engine measured a code, with the code's text and symbology as features. The layer has the image's scale, translation, rotation, shear and affine transform, so the outlines sit on the codes.

The report itself is described field by field in the report reference. An empty list of detections means the image holds no code the engine could read. A refused file is an error with a QRS- code instead, listed in the error codes.

What it reads

The code families the engine reads: QR codes, matrix and stacked codes such as Data Matrix, retail barcodes such as EAN-13, and other linear barcodes such as Code 128

Family Formats
QR QR Code, Micro QR, rectangular Micro QR (rMQR)
Matrix and stacked Data Matrix, Aztec, PDF417, MaxiCode
Retail EAN-13, EAN-8, UPC-A, UPC-E
Other linear Code 128, Code 39, Code 93, Codabar, ITF, GS1 DataBar, GS1 DataBar Expanded, Telepen

The plugin reads what the engine reads. Codes of different formats in one image come back in one report. The engine's supported formats section states the known limits.

The same engine in other runtimes

One engine in the language you write: Rust on crates.io, Node.js and the browser on npm, Python on PyPI, Go, PHP, and the qrscan command line

Runtime Package How it scans
Rust qrcode-barcode-scanner on crates.io In process
Node.js @qrcode-ai-com/qrcode-barcode-scanner on npm In process, native
Browser @qrcode-ai-com/qrcode-barcode-scanner-wasm on npm In the page, WebAssembly
Python qrcode-barcode-scanner on PyPI In process
Go qrcode-barcode-scanner-go Through the installed qrscan
PHP qrcode-barcode-scanner-php Through the installed qrscan
Command line qrscan One command, one JSON report

The Rust, Node.js, browser and Python packages hold the engine. The Go and PHP packages hold no decoder: each one starts qrscan and hands you its report.

Language and platform names and logos belong to their owners. They identify a runtime or a destination and imply no endorsement.

Licence

Project-authored plugin source is MIT; see LICENSE. The plugin installs the engine wheel qrcode-barcode-scanner 0.12.1 from PyPI and does not ship it. Engine 0.12.1 is MIT too: its wheel ships the MIT LICENSE. Version 0.1.1 of the plugin installed the MIT engine 0.12.0. Version 0.1.0 installed engine 0.11.0, which keeps the license it shipped with, AGPL-3.0-or-later. Read the license packaged with the version you install and the licensing guide.

Maintained by Thibaut Mélen & Nicolas Cella for QR Code AI, a product of SuperNovae Studio. The license of each component is stated in its own license files.

Source license

Project-authored scanner code and documentation in this checkout are available under the MIT License. You may use, modify and redistribute this source in open-source or proprietary applications, including commercial products, while preserving the copyright and permission notice. Thibaut Mélen & Nicolas Cella develop QR Code AI at SuperNovae Studio.

Retained third-party code, dependencies, artwork and test data keep their own licenses and notices. The licensing guide explains these component boundaries; the project license does not assign a license to an unrelated platform or service.

Published archives retain the license shipped with their version. A pinned engine, adapter or bundle may therefore have different terms from this working source. Read its packaged license and the license history before reuse. The source change does not replace an archive or publish a new version.

Metadata

Release files for napari-qrcode-barcode-scanner 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-qrcode-barcode-scanner 0.1.2
File Size Uploaded Provenance Actions
napari_qrcode_barcode_scanner-0.1.2.tar.gz 19.0 kB With provenance Details for napari_qrcode_barcode_scanner-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-qrcode-barcode-scanner 0.1.2
File Interpreter ABI Platform Actions
napari_qrcode_barcode_scanner-0.1.2-py3-none-any.whl Python 3 none any Details for napari_qrcode_barcode_scanner-0.1.2-py3-none-any.whl

Total release size: 32.0 kB

Release files / napari_qrcode_barcode_scanner-0.1.2.tar.gz

Download URL napari_qrcode_barcode_scanner-0.1.2.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
93b192f6082cf7968743d58a2eedac956a32da9c1979c7fe36207f2de6750837
BLAKE2b-256 checksum
How to use checksums
d81a10f1b77aae452487c92713f203748052ab5f47dbe5eb3f91f9bc003ff5ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / napari_qrcode_barcode_scanner-0.1.2-py3-none-any.whl

Download URL napari_qrcode_barcode_scanner-0.1.2-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20a36ad1a91b6e17f6394a3df93a1fc031f086b3da61a42b5b5944312bbe990e
BLAKE2b-256 checksum
How to use checksums
055ab191c919e691c1d48fea7cf9de0b5b21f04b18a0f1712ae07eae91631e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for napari-qrcode-barcode-scanner 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for napari_qrcode_barcode_scanner-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page