@supernovae-st/qrcode-ai-scanner
v0.8.1
Published
QR decoding + scannability scoring for artistic and AI-generated QR codes — async native bindings (Rust)
Maintainers
Readme
@supernovae-st/qrcode-ai-scanner
Async native QR decoding + scannability scoring for artistic / AI-generated QR codes — Rust under the hood, libuv pool execution (the event loop never blocks, even on a 4s artistic scan).
import { scan } from "@supernovae-st/qrcode-ai-scanner";
const report = await scan(imageBuffer); // profile: full (quality gate)
if (report.detections.length) {
console.log(report.detections[0].content.text);
console.log(report.score.value, report.score.grade); // 0-100 + band
console.log(report.score.uec); // real error-correction margin (ISO 15415)
console.log(report.hints); // machine-actionable: raise_error_correction…
}scan(image, { profile, signal })— async,full | fast | frame, AbortSignal cancels queued scans.scanSync(image, { profile })— blocking, scripts only.- "No QR found" resolves with empty
detections; rejections carry[QRS-xxx]codes (invalid input only). - Full TypeScript contract in
index.d.ts— the same versioned shape as the core crate, CLI, and wasm package.
Browser? Use
@supernovae-st/qrcode-ai-scanner-wasm.
License: AGPL-3.0-or-later · © SuperNovae Studio · part of qrcode-ai.com.
