barcode-scan-edge
60 fps barcode scanner for damaged, glared, curved, and blurry 1D/2D codes. Runs in Chrome, Safari, and Firefox WebGPU/WASM or in server PDF and video batch pipelines.
Replaces: zxing-wasm, BarcodeDetector, html5-qrcode, pyzbar (LGPL), zxing-cpp, Cognex cmbSDK (EOL), Scanbot / Scandit
- per image or PDF page
- $0.01 a scan
- for video
- $0.01 a minute
- to read one video frame · T1 target
- Under 15 ms
- output format
- JSON data
- $0 server GPU cost, no video uploaded
- Chrome + Safari WebGPU
- decoded strings, symbologies, quads, and quality flags
- Headless API
- price set; not live yet
- Early access
Nano vs. Pro preview
Sample comparison of Nano and multi-frame Pro on shrink-wrapped pallet labels in Safari WebGPU.
Pro adds multi-frame consensus at 60 fps and decodes damaged and curved labels.
Output: Consensus barcode events + 4-pt quads and track IDs
- delivery_mode
- browser_webgpu
- codes_decoded
- 6
- consensus_frames
- 5
- glare_flagged
- true
How to call it
Run in Chrome, Safari, and Firefox with the WebGPU SDK ($0 server GPU), or call the same model on Cloud or a --network=none VPC.
import { load } from 'milliframe/browser';
// Start on free Apache-2.0 Nano, or pass a Pro offline license:
const runner = await load({
model: 'barcode-scan-edge',
// license: 'YOUR_OFFLINE_LICENSE',
});
for await (const event of runner.read(cameraStream)) {
console.log(event.models['barcode-scan-edge']);
}from milliframe import Client
# Start locally on Apache-2.0 Nano ($0 GPU, zero upload):
client = Client(runtime="local_nano")
# Switch one line for Cloud Pro or your --network=none VPC:
# client = Client(api_key="YOUR_KEY")
# client = Client(base_url="http://localhost:8080")
result = client.analyze(
file="shipping_labels.pdf",
model="barcode-scan-edge",
output="both", # "media" | "json" | "both"
)What it returns
Output fields returned in the result (output="media" | "json" | "both").
| Field | What it means | Example |
|---|---|---|
| barcodes | Decoded string, symbology, 4-point quad, track ID, and consensus frame count. | [{"value": "0012345678905", "symbology": "gs1_128", "track_id": 1}] |
| quality_flags | Glare, motion-blur, and damage flags for camera UI prompts. | ["SPECULAR_GLARE"] |
What it costs
Public Cloud rates and offline licenses are set before launch.
| How it runs | Price |
|---|---|
| Per image or PDF page, alone in one pass | $0.01 a scan |
| Per image or PDF page, stacked in one pass | $0.004 a scan |
| Per image or PDF page, as a file in batch | $0.007 a scan |
| For video, alone in one pass | $0.01 a minute |
| For video, stacked in one pass | $0.003 a minute |
| For video, as a file in batch | $0.007 a minute |
| At 60 frames a second | Twice the price |
| In the browser ($0 server GPU) | Offline license (Browser / Edge SDK): Pro ($499 a month, <=50,000 MAU), or contact us for Business / Embed (250,000 MAU) and Scale OEM / Fleet (OEM) |
| In your VPC (--network=none) | Offline license: 1 internal node on Pro ($499 a month), or contact us for Business / Embed (up to 5 nodes) and Scale OEM / Fleet (up to 25 nodes or OEM). Includes a 14-day trial. |
In one pass, you pay full price for the highest-priced video model. Every other model is 60%–70% off.
Build vs. buy: Replaces W3C BarcodeDetector and zxing-wasm with 60 fps browser and batch scanning for damaged or glared codes. Runs on-device at $0 server GPU cost (offline license from $499/mo).
Where it is used
Stacks that include this model and what it outputs in each.
| Use case | What it reports there | Price |
|---|---|---|
| Browser scan, capture and conferencing OEMs | 60 fps WebGPU damaged/glared 1D/2D barcode scanning | $0.01 a scan |
Nano vs. Pro
| Feature | Nano (Apache-2.0) | Pro |
|---|---|---|
| Where it runs | Local Python or browser SDK (Apache-2.0) | Cloud API, WebGPU SDK, or --network=none VPC container |
| Output | JSON data (same SDK schema) | JSON data + signed receipts |
| Hard-case & browser SDK | Single-frame detection and decoding (Apache-2.0) | 60 fps WebGPU/WASM SDK, multi-frame consensus, damaged and curved code support |
| Legal & compliance | Apache-2.0 as-is, no warranty | NDA DATA_BOM.json, licensed training-data warranty (Scale+), Bonterms MSA/DPA/HIPAA BAA, 0 AGPL / 0 NC |
| Version pinning | Immutable Apache-2.0 weights | Pinned by default where outputs affect people; opt-in latest-stable; 90-day pinning (Business+); 2–5 yr LTS (Scale+) |
| Price | Free ($0 Apache-2.0) | $0.01 a scan per image or PDF page, or $0.01 a minute for video, or offline license |
When another tool fits better
Use Apple VisionKit or Google ML Kit ($0) if you ship only native iOS/Android apps and do not need browser WebGPU, Safari webcams, or server PDF/video batch.
Custom model work
Need domain tuning or custom VPC packaging?
Need a custom model tuned to your domain or packaged for your VPC? Fixed-scope engagements include isolated data handling, provenance docs, and rollout onto a standard plan.
Not open yet. Be told when it is.
Tell us what you are building and which models you need, and we will write when they open.