qrdet
Robust QR Detector based on YOLOv8
What it is and what it does
QRDet is a QR code detector built on YOLOv8 that finds and segments QR codes in images, even when they are rotated, partially obscured, or in challenging lighting. It returns detection results as dictionaries containing bounding boxes, confidence scores, and precise polygon coordinates that outline the QR code's shape. The package offers four model sizes (n, s, m, l) to trade off speed against detection capability, and allows tuning of confidence thresholds and non-maximum suppression parameters to control false positives and duplicate detections.
The core dependency chain includes ultralytics (for YOLOv8), numpy (for array operations), quadrilateral-fitter (for polygon refinement), requests (for model weight downloads), and tqdm (for progress feedback). It accepts images as numpy arrays, PIL Images, torch Tensors, file paths, URLs, or screenshots. The package is designed for detection only; if you need both detection and decoding, the description suggests looking at QReader instead.
Use it for:
- Locating QR codes in product photos or inventory images for automated scanning workflows.
- Extracting precise QR code boundaries in rotated or skewed images before passing to a decoder.
- Building a QR detection pipeline in computer vision applications where confidence scores and segmentation polygons are needed.
- Processing batches of images to find all QR codes and their exact positions for downstream processing.
- Detecting QR codes in challenging conditions where simpler detectors fail.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Detects and segments QR codes in images using a YOLOv8-based model, returning bounding boxes, confidence scores, and precise polygon coordinates even in difficult positions.
Yes, if you need robust QR detection with polygon-level precision. The package is stable (Production/Stable classifier), permissively licensed, has no known vulnerabilities, and offers flexible model sizing. The aging maintenance status (last release mid-2024) is a minor concern but not a blocker if the current version meets your needs. Install friction is low. Not suitable if you also need QR decoding in the same package.
Install
qrdet on PyPI
pip
pip install qrdetuv
uv add qrdetpoetry
poetry add qrdetInstalling qrdet
Before you install
Low friction install with a pure-Python wheel. Depends on ultralytics, numpy, requests, tqdm, and quadrilateral-fitter. Maintenance is aging—last release was 2024-06-15 and the repo has not been updated since 2025-02-23, though it remains active and unarchived.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install qrdet
from qrdet import QRDetector
detector = QRDetector(model_size='s')
detections = detector.detect(image='path/to/image.jpg')
for det in detections:
print(det['bbox_xyxy'], det['confidence'])
Model weights are downloaded on first use; ensure the weights_folder (default: package/.model) is writable, or specify an alternative writable path (e.g., /tmp on AWS Lambda).
Verify before relying
- Whether model weights are downloaded on first use and their total size impact on installation footprint.
- Performance characteristics (inference speed, accuracy) across the four model sizes ('n', 's', 'm', 'l').
- Compatibility with different Python versions—requires_python is unspecified in the fact sheet.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — ultralytics, quadrilateral-fitter, numpy, requests, tqdm |
| Maintenance | aging — 790 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,588/month — #14,214 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: qrdet-2.5-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
ddddocrRecognizes text and detects objects in captcha…
permissive · top 15,000 on PyPI
qreaderQReader detects and decodes QR codes from…
permissive · top 15,000 on PyPI
quadrilateral-fitterFits the smallest-area quadrilateral that…
permissive · top 15,000 on PyPI
pybboxesConverts between bounding box formats (COCO,…
permissive · top 15,000 on PyPI
yolov5YOLOv5 is a packaged object detection model…
copyleft · top 15,000 on PyPI
boxmotBoxMOT provides pluggable multi-object tracking…
agpl · top 15,000 on PyPI
nudenetDetects nudity in images using lightweight ONNX…
permissive · top 15,000 on PyPI
cnstdDetects text and mathematical formulas in…
permissive · top 15,000 on PyPI
pyzbarDecodes one-dimensional barcodes and QR codes…
permissive · top 5,000 on PyPI
pyzxingDecode barcodes and QR codes from images or…
permissive · top 15,000 on PyPI