> For the complete documentation index, see [llms.txt](https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/qr-code-and-barcode-scanner.md). Agents can also search and read this documentation through its [MCP server](https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/~gitbook/mcp).

# QR Code & Barcode Scanner

Read QR codes and barcodes in images with one open-source engine, published under the MIT License.

![QR Code & Barcode Scanner documentation on GitBook: a QR code and a barcode being read](https://content.gitbook.com/content/4lcEXBQ7NHK88JqpVIlA/blobs/DYOfsGDhziFtPDZ2G0IO/banner%20gitbook%20light.gif)

QR Code & Barcode Scanner is an open-source engine that reads the QR codes and barcodes in an image and returns one report: the format of each code, its exact text and the place where it was measured. Version 0.12.3 is published for Rust, the command line, Node.js, the browser and Python, under the MIT License.

To scan one image in a browser, open the [QR code scanner](https://qrcode-ai.com/en-US/qr-code-scanner) or the [barcode scanner](https://qrcode-ai.com/en-US/barcode-scanner) of QR Code AI. To build the engine into an application, the [QR code scanner SDK guide](https://qrcode-ai.com/en-US/qr-code-scanner/sdk) and the [barcode scanner SDK guide](https://qrcode-ai.com/en-US/barcode-scanner/sdk) follow the same route as these pages. To make a test image whose text you know, use the [QR code generator](https://qrcode-ai.com/en-US/qr-code-generator) or the [barcode generator](https://qrcode-ai.com/en-US/barcode-generator), keep the text you encoded, and compare it with the decoded value, leading zeroes included.

### Ask AI

[Ask ChatGPT](https://chatgpt.com/?q=Help%20me%20understand%20the%20GitBook%20documentation%20for%20QR%20Code%20%26%20Barcode%20Scanner%2C%20the%20open-source%20scanner.%20Version%200.12.3%20is%20published%20under%20the%20MIT%20License.%20Provided%20README%20context%20%28verify%20against%20the%20sources%29%3A%20Task-based%20documentation%3A%20install%20the%20engine%2C%20scan%20one%20image%2C%20read%20the%20report%2C%20then%20trace%20a%20failed%20or%20unexpected%20read%20from%20the%20image%20to%20the%20decoded%20text.%20Read%20the%20public%20documentation%20below.%20Explain%20what%20this%20destination%20does%2C%20its%20documented%20installation%20or%20access%20steps%2C%20a%20minimal%20example%20if%20supported%2C%20prerequisites%2C%20limitations%20and%20license.%20Distinguish%20published%20packages%20from%20working%20source%20and%20preparation.%20Cite%20your%20sources%3B%20if%20a%20page%20is%20unavailable%20or%20a%20fact%20cannot%20be%20checked%2C%20say%20so.%20Do%20not%20invent%20installation%20commands%2C%20benchmark%20results%20or%20comparisons.%20Answer%20in%20my%20language.%20Public%20sources%3A%20https%3A%2F%2Fqrcode-ai-com.gitbook.io%2Fqrcode-barcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-generator%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-generator) · [Ask Claude](https://claude.ai/new?q=Help%20me%20understand%20the%20GitBook%20documentation%20for%20QR%20Code%20%26%20Barcode%20Scanner%2C%20the%20open-source%20scanner.%20Version%200.12.3%20is%20published%20under%20the%20MIT%20License.%20Provided%20README%20context%20%28verify%20against%20the%20sources%29%3A%20Task-based%20documentation%3A%20install%20the%20engine%2C%20scan%20one%20image%2C%20read%20the%20report%2C%20then%20trace%20a%20failed%20or%20unexpected%20read%20from%20the%20image%20to%20the%20decoded%20text.%20Read%20the%20public%20documentation%20below.%20Explain%20what%20this%20destination%20does%2C%20its%20documented%20installation%20or%20access%20steps%2C%20a%20minimal%20example%20if%20supported%2C%20prerequisites%2C%20limitations%20and%20license.%20Distinguish%20published%20packages%20from%20working%20source%20and%20preparation.%20Cite%20your%20sources%3B%20if%20a%20page%20is%20unavailable%20or%20a%20fact%20cannot%20be%20checked%2C%20say%20so.%20Do%20not%20invent%20installation%20commands%2C%20benchmark%20results%20or%20comparisons.%20Answer%20in%20my%20language.%20Public%20sources%3A%20https%3A%2F%2Fqrcode-ai-com.gitbook.io%2Fqrcode-barcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-generator%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-generator) · [Ask Gemini](https://gemini.google.com/) · [Ask Grok](https://grok.com/?q=Help%20me%20understand%20the%20GitBook%20documentation%20for%20QR%20Code%20%26%20Barcode%20Scanner%2C%20the%20open-source%20scanner.%20Version%200.12.3%20is%20published%20under%20the%20MIT%20License.%20Provided%20README%20context%20%28verify%20against%20the%20sources%29%3A%20Task-based%20documentation%3A%20install%20the%20engine%2C%20scan%20one%20image%2C%20read%20the%20report%2C%20then%20trace%20a%20failed%20or%20unexpected%20read%20from%20the%20image%20to%20the%20decoded%20text.%20Read%20the%20public%20documentation%20below.%20Explain%20what%20this%20destination%20does%2C%20its%20documented%20installation%20or%20access%20steps%2C%20a%20minimal%20example%20if%20supported%2C%20prerequisites%2C%20limitations%20and%20license.%20Distinguish%20published%20packages%20from%20working%20source%20and%20preparation.%20Cite%20your%20sources%3B%20if%20a%20page%20is%20unavailable%20or%20a%20fact%20cannot%20be%20checked%2C%20say%20so.%20Do%20not%20invent%20installation%20commands%2C%20benchmark%20results%20or%20comparisons.%20Answer%20in%20my%20language.%20Public%20sources%3A%20https%3A%2F%2Fqrcode-ai-com.gitbook.io%2Fqrcode-barcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-generator%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-generator) · [Ask Perplexity](https://www.perplexity.ai/?q=Help%20me%20understand%20the%20GitBook%20documentation%20for%20QR%20Code%20%26%20Barcode%20Scanner%2C%20the%20open-source%20scanner.%20Version%200.12.3%20is%20published%20under%20the%20MIT%20License.%20Provided%20README%20context%20%28verify%20against%20the%20sources%29%3A%20Task-based%20documentation%3A%20install%20the%20engine%2C%20scan%20one%20image%2C%20read%20the%20report%2C%20then%20trace%20a%20failed%20or%20unexpected%20read%20from%20the%20image%20to%20the%20decoded%20text.%20Read%20the%20public%20documentation%20below.%20Explain%20what%20this%20destination%20does%2C%20its%20documented%20installation%20or%20access%20steps%2C%20a%20minimal%20example%20if%20supported%2C%20prerequisites%2C%20limitations%20and%20license.%20Distinguish%20published%20packages%20from%20working%20source%20and%20preparation.%20Cite%20your%20sources%3B%20if%20a%20page%20is%20unavailable%20or%20a%20fact%20cannot%20be%20checked%2C%20say%20so.%20Do%20not%20invent%20installation%20commands%2C%20benchmark%20results%20or%20comparisons.%20Answer%20in%20my%20language.%20Public%20sources%3A%20https%3A%2F%2Fqrcode-ai-com.gitbook.io%2Fqrcode-barcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-scanner%2Fsdk%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fqr-code-generator%20https%3A%2F%2Fqrcode-ai.com%2Fen-US%2Fbarcode-generator) · [Ask Copilot](https://copilot.com/) · [Ask DeepSeek](https://chat.deepseek.com/) · [Ask Meta AI](https://www.meta.ai/) · [Ask Qwen](https://qwen.ai/)

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 the GitBook documentation for QR Code & Barcode Scanner, the open-source scanner. Version 0.12.3 is published under the MIT License. Provided README context (verify against the sources): Task-based documentation: install the engine, scan one image, read the report, then trace a failed or unexpected read from the image to the decoded text. 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://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner 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/sdk https://qrcode-ai.com/en-US/barcode-scanner/sdk https://qrcode-ai.com/en-US/qr-code-generator https://qrcode-ai.com/en-US/barcode-generator
```

## How it works

![Where the scanner is published and listed: crates.io, npm, PyPI, Go, Homebrew, Scoop, GitHub Releases, Debian, Arch Linux, Fedora, a container image, MCP and more](https://content.gitbook.com/content/4lcEXBQ7NHK88JqpVIlA/blobs/1dHaqE91s8fcnYIs17T9/destinations%20light.png)

1. **Install** the package for your runtime, or the `qrscan` command line. [Install](https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/install.md)
2. **Scan** an image file or a raw camera frame. [Examples](https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/examples.md)
3. **Read the report**: one entry per code found, with its format, its text and its position. An empty list is a valid result: the image holds no code the engine can read.

## What it returns

![A QR code and a Code 128 decoded from the same image, each outlined where the engine measured it](https://content.gitbook.com/content/4lcEXBQ7NHK88JqpVIlA/blobs/TTO5y5lqilpIBMe51R0E/examples%20mixed%20light.png)

This is a recorded scan of one image that holds a QR code and a Code 128 barcode. Both come back in the same report, each with its format, its exact text and the place where the engine measured it.

## 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](https://content.gitbook.com/content/4lcEXBQ7NHK88JqpVIlA/blobs/YXZZGOXiLDKwEPFIxYEy/formats%20light.gif)

QR codes, Micro QR and rMQR; Data Matrix, Aztec, PDF417 and MaxiCode; EAN-13, EAN-8, UPC-A and UPC-E; Code 128, Code 39, Code 93, Codabar, ITF, GS1 DataBar and Telepen. [Formats](https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/formats.md) lists them with their known limits.

## One engine, every runtime

![One engine in the language you write: Rust, Node.js and the browser, Python, Go, PHP and the qrscan command line](https://content.gitbook.com/content/4lcEXBQ7NHK88JqpVIlA/blobs/UelQZrkGE69FSbWSZ2QE/runtimes%20light.png)

The Rust, Node.js, browser and Python packages hold the engine itself. The Go and PHP packages start `qrscan` and hand you its report unchanged. The [source repository](https://github.com/qrcode-ai-com/qrcode-barcode-scanner-rust) lists every route.

## License

Version 0.12.0 and later are published under the [MIT License](https://github.com/qrcode-ai-com/qrcode-barcode-scanner-rust/blob/main/LICENSE). Each published archive keeps the license it shipped with: engine releases up to 0.11.0 were published under AGPL-3.0-or-later and keep it. Third-party code, dependencies and test data keep their own terms.

QR Code & Barcode Scanner is maintained by Thibaut Mélen and Nicolas Cella for [QR Code AI](https://qrcode-ai.com/), a product of SuperNovae Studio.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://qrcode-ai-com.gitbook.io/qrcode-barcode-scanner/qr-code-and-barcode-scanner.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
