1. Rec. 601 Luminance + Otsu Math
Converts color pixels using perceptual luminance weights before finding the exact histogram threshold (0–255) that separates ink from background shadows.
THE TOOLBOX / DOCUMENT VISION & OCR PREP
Remove paper shadows, boost faded ink, and invert dark-mode screenshots into crisp monochrome OCR masks right in your browser—with zero server uploads.
Drop a document photo or screenshot (or paste Ctrl+V)
Applies local Rec. 601 luminance & Otsu thresholding for crisp monochrome OCR masks—zero server uploads.
PREPROCESSING PRESETS
| Preset | Contrast | Invert | Best Used For |
|---|---|---|---|
| Standard Document | 1.25× | Off | Printed pages, PDFs, and clear book scans |
| Faded Receipt | 1.85× | Off | Thermal store receipts and low-ink invoices |
| Dark Mode Code | 1.40× | On | IDE screenshots, terminals, and dark UI captures |
| Pencil / Handwriting | 2.20× | Off | Light graphite notes, whiteboards, and sketches |
Converts color pixels using perceptual luminance weights before finding the exact histogram threshold (0–255) that separates ink from background shadows.
Check the dark-pixel ink percentage immediately—typical clean text scans land between 5% and 25% ink coverage.
Tax forms, receipts, IDs, and internal screenshots stay completely in local browser memory.
Convert scans to PDF in JPG to PDF Converter, shrink file sizes in Image Compressor, or compare text revisions in Diff Checker.
Otsu thresholding analyzes an image’s 256-level brightness histogram and finds the optimal cutoff between dark ink and light paper. Converting shadowed photos into crisp black-and-white masks dramatically reduces OCR character errors.
No. All grayscale luminance conversion, contrast amplification, and Otsu binarization run 100% locally in your browser using HTML5 Canvas. Zero images leave your device.
Use the "Faded Receipt (1.85×)" or "Pencil / Low Contrast (2.2×)" preset. Boosting contrast widens the gap between light gray strokes and paper background before binarizing.
Click "Dark Mode Code (Invert)" or check Invert Luminance. Most OCR engines expect black text on a white background, so inverting light-on-dark screenshots improves accuracy immediately.
Yes. Click Download Mask PNG to save the full-resolution Otsu-binarized image for Tesseract CLI, Apple Vision, or OpenCV workflows.
Yes. Copy any screenshot and press Ctrl+V (Windows/Linux) or Cmd+V (Mac) anywhere in the studio to binarize it instantly.