Skip to main content

QR decoding + scannability scoring for artistic, AI-generated, and photo-captured QR codes — Rust core via PyO3.

Project description

qrcode-ai-scanner (Python)

QR decoding + scannability scoring for artistic / AI-generated / photo-captured QR codes — the Rust qrcode-ai-scanner engine, via PyO3. Same versioned ScanReport contract as the Rust, Node and WASM surfaces.

import qrcode_ai_scanner as qr

with open("image.png", "rb") as f:
    report = qr.scan(f.read(), profile="full")   # "full" | "fast" | "frame"

if report["detections"]:
    d = report["detections"][0]
    print(d["content"]["text"])
    print(report["score"]["value"], report["score"]["grade"])  # 0-100 + ISO band
    print(report["hints"])                                      # machine-actionable
  • scan(image: bytes, profile="full") -> dict — decode encoded bytes (PNG/JPEG/WebP/GIF).
  • scan_frame(rgba: bytes, width: int, height: int, profile="frame") -> dict — raw RGBA frame, no image-format roundtrip.
  • "No QR found" returns a dict with empty detections; ValueError is raised only for invalid input.

The returned dict is the same ScanReport documented in the spec.

License: AGPL-3.0-or-later · © SuperNovae Studio.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qrcode_ai_scanner-0.3.0.tar.gz (108.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qrcode_ai_scanner-0.3.0-cp38-abi3-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.8+Windows x86-64

qrcode_ai_scanner-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file qrcode_ai_scanner-0.3.0.tar.gz.

File metadata

  • Download URL: qrcode_ai_scanner-0.3.0.tar.gz
  • Upload date:
  • Size: 108.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for qrcode_ai_scanner-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1af210e346537c312eb5e6f2210ef698a92c891b38c2685fb5107ca95efc82da
MD5 e1f10035ba775e665c85e9d4e0df3b89
BLAKE2b-256 87f7229775072d8d00b59c5f54112f3351a681d7b60f0433f258f2cec83f4398

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0.tar.gz:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qrcode_ai_scanner-0.3.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for qrcode_ai_scanner-0.3.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4c170e801554534f183a493ff700c401cc9911ee0c44d4eec54caabe593547cd
MD5 3cddcd9b4ec194a58b944f40fac486c9
BLAKE2b-256 b0bc808f7bf130d2331cffadb37c183c8d44dc8c3f89eb4c413b6870ea34cc69

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0-cp38-abi3-win_amd64.whl:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qrcode_ai_scanner-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qrcode_ai_scanner-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 67e05dc763cfac348f30218a9f62e6ee2836e9a655bcf89ad190ab58436951cb
MD5 6dd869b05f3f01f872e63c4115b836f2
BLAKE2b-256 90eb04b947bbc83ed499b59669e8e31fad1263709bbfa2675c8bbc978fd717f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f408bcd2954b12184d74b6ae7c371e5edc114aeceaedda35137b45402031ed45
MD5 a4cb961ff94dc6f6db657d98938e6d31
BLAKE2b-256 5be322e81a355cf3abf7ebe63f811be8318f5a3288de6a6a582e9199ce6b5a53

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5d821e7ef3864a8505a9efc3e6a9a8b7421c8767863af06bf290bf05543231b5
MD5 3d6ab497f5ee756c4d5cd63624cc3e2d
BLAKE2b-256 ff914055d6e56392be2b80a7f08c02c9040dd3917fea829adf69a644c4eb5a62

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7aa23117f90e8d66248e0afd5b349f0731225b5bb2389fd816408d898697197
MD5 ca24c8c19f51369008c36e21f27f5967
BLAKE2b-256 c89f166c15639b635cdf453e1ff02312f581e540cfeef44355b9ea569801e2b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e290c9eb21e1136eada7545b27e849de8eb3641e40ce7eb0de01d129cfa3fd67
MD5 c6e1af1624964b6dc942c349d5fede30
BLAKE2b-256 4e06a81288e53737af29ff7583005f3302f8e0df6b67522c13c7405176c5eada

See more details on using hashes here.

Provenance

The following attestation bundles were made for qrcode_ai_scanner-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: python.yml on supernovae-st/qrcode-ai-scanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page