qr_code_vision
0.1.2, released 3 years ago by an unverified publisher
Pure Dart QR code detection and decoding from raw RGBA image bytes
WASM-ready
What it does
It scans a single QR code in an image, returns its location, type and decoded content. It can also track the QR across frames for AR use.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a lightweight, pure Dart QR decoder without native dependencies
- You want to process images from any source (camera, file, network) in Flutter or Dart CLI
- You need to track a QR code position between frames for AR or overlay purposes
Skip it when
- You need to detect multiple QR codes in the same image
- You require high performance on large images or low‑noise environments
- You need a fully featured camera preview and barcode scanning widget
Strengths
- Pure Dart, no native code or platform channels
- Supports tracking across frames and perspective transforms
- Easy to integrate into existing image pipelines
Weaknesses
- Only single QR code support
- Performance can be poor on large or noisy images
- Early development, may change API
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
final qrCode = QrCode();
qrCode.scanRgbaBytes(byteData, width, height);
if (qrCode.location != null) {
print('QR content: ${qrCode.content?.text}');
}Alternatives
Packages that do the same job and could replace qr_code_vision.
- zxing2
Pure Dart barcode/QR decoder with multi‑code support and better performance
75Compare - google_mlkit_barcode_scanning
Native MLKit implementation with high accuracy and multi‑code support
94Compare
Works with
Packages commonly used together with qr_code_vision: ones it builds on, ones built on it, and its own family.