Offline optical data storage on standard paper and stickers using high-density color dots, real-time CIELAB perceptual calibration, and Reed-Solomon
$GF(2^8)$ error recovery.
- Reserved Black & White Framing: QR-style nested square corner fiducials, timing tracks, and dynamic range calibration targets strictly reserve pure Black and Paper White for spatial/exposure registration.
- On-Sheet Self-Calibrating Swatches: Reference palette swatches printed along the borders allow the decoder to normalize for printer CMYK gamuts, paper reflectance, and ambient camera lighting shifts.
-
Multi-Mode Color Palettes:
-
PALETTE_8(3 bits/dot): Ultra-high contrast and reliability. -
PALETTE_16(4 bits = 1 nibble/dot, 2 dots/byte): Optimal density and stability. -
PALETTE_64(6 bits/dot): Base64 symbol packing. -
ASCII_95(Printable ASCII 32–126): Direct 1-to-1 character assignment. -
PALETTE_256(8 bits / 1 byte per dot): Maximum byte density.
-
-
Reed-Solomon Error Correction Code (RS-ECC): Full Galois Field
$GF(2^8)$ arithmetic with Berlekamp-Massey algorithm to automatically recover from paper smudges, print bleed, or optical glare. -
Printer & Scanner Fidelity Benchmark Lab: Measures physical color shifts (
$\Delta E$ ), confusion matrices, and recommends the optimal palette for your specific printer and camera setup. - Zero-Dependency Architecture: Built using pure JavaScript/HTML5 Canvas in the browser and pure Node.js on the server/CLI.
- Bilingual UI (English & Spanish): Live language toggle directly in the web interface.
For an in-depth analysis of related systems (Microsoft HCCB, Zebra Ultracode, Twibright Optar, PaperBack, HCC2D, MMCC, CIELAB color theory) and a complete comparative matrix, see: 👉 Documentation: State of the Art & Prior Art Analysis (or Leer en Español)
npm startOpen http://localhost:3000 in your browser to access:
- Matrix Studio (Encoder): Real-time matrix generator, dot inspector, SVG/PNG/Print export.
- Scan & Decode: File drag-and-drop, clipboard paste (
Ctrl+V), or Live Webcam feed with interactive corner handles. - Printer Fidelity Lab: Color calibration test sheet generator and scanned target analyzer.
- Color Theory & Gamut: Perceptual CIELAB distance visualizer.
npm run encode -- --input "Hello World" --output matrix.png --mode PALETTE_16npm run decode -- --image matrix.png# Step 1: Generate calibration target
npm run benchmark -- --generate target.png --mode TEST_64
# Step 2: Analyze scanned/photographed target
npm run benchmark -- --analyze target.png --mode TEST_64npm testTechniques identified for future density and throughput upgrades:
- Stream Compression Pipelines (Gzip / Brotli / Zstandard / Deflate): Automatic pre-compression of text payloads into binary streams before symbol packing, reducing required physical dot grid size by 40%–70% on large texts (e.g., literature, logs, source code).
- Language-Aware Huffman & Tokenization (BPE / Byte-Pair Encoding): Assign shorter chromatic symbol sequences to high-frequency syllables and dictionary words based on language statistics.
- Efficient Binary-to-Symbol Mapping: Optimized Base85 / Z85 vs raw byte multiplexing to maximize entropy per printed dot without ballooning character counts.
- Metadata Deduplication & Short Hashing: Optional content-addressable hash headers for multi-page document sequencing.
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license. See LICENSE for details.
Made with 🥑 by aoxilus