Return to newspaper search

Using the newspaper reader

Open a local PNG or JPEG containing one page. Your browser runs the Dutch language model and the Fraktur script model independently. It downloads the OCR software and language weights from this Space. Image recognition takes place on your device. The included 1621 newspaper page opens with precomputed browser readings.

Find a word

Search for one word or two words separated by whitespace, with at least three letters per word. Accents are retained and case is folded. Each phrase must appear on one line in a single model's reading. Both models can return the same printed location. Select a reading to inspect its crop. Clear “Mark boxes” to see the unobscured print.

Review extra readings

A supplemental Fraktur word has one alphabetic run of at least three letters, and no overlapping Dutch box that supplies the same run with intersection-over-union of at least 0.30. Order these readings by the learned score or by the Fraktur confidence value. The learned score combines word shape, geometry and agreement with nearby Dutch boxes. Its training target was whether the term occurred somewhere inside the source transcription region. Check the printed location yourself.

Keep a copy

Download both the page index and the indexed image. For local uploads the latter is the normalized grayscale PNG used for recognition. The JSON index records its filename, SHA-256 digest and original-coordinate word boxes. Browsers with gzip compression support save a .json.gz file, ready for the Python search and review commands. An uncompressed JSON can be compressed with gzip. To resume later, choose “Open a scan” and select the downloaded indexed image and its index together. The reader verifies their checksum and opens the stored words without running OCR again. Opening another page replaces the current readings in memory.

How often did search recover a known query?

On 24 held-out KB newspaper pages, the browser found 855 of 1,433 reference queries using Dutch OCR. Searching both readings recovered 981. Each query had a clear source-text boundary and counted only when its OCR word-box centers were inside its annotated region. Inspect all 108 differences on the original scans.

The Python tools used the same weight files and the same grayscale pixels. They recovered 981 of these queries with both readings. The browser alone recovered 54, and the native tools alone recovered 54. The two runtimes can produce different text, segmentation and boxes. Across these pages the combined browser recognition time was 994 seconds on cluster CPU jobs in Chromium 131. This excludes startup, image conversion and model downloads. Your device may take a different amount of time.

How were the suggested readings ordered?

The frozen model ranked 10,694 eligible browser OCR word boxes on these pages. Among the first fifth of boxes per page, 52.7% had a string present in the corresponding reference region, compared with 48.6% under native Fraktur confidence ordering. Mean average precision was 0.546 and 0.480, respectively. The printed occurrence still needs inspection. Full results · Individual queries · Page measurements

Correct a word against the print

Select a search result or ranked reading and open Correct this reading below the scan. For a phrase, choose the word box you want to edit. Use Rotate view left for sideways print. Search updates after each correction. Download the revised index and the indexed image to reopen them together. The saved index includes the original reading, replacement text, OCR model and box coordinates for each correction.

In a 1779 newspaper, the Fraktur reading “puro” occurs over two different printed words, “iemand” and “Holland”. The example opens on these two boxes. Try the example · Get the Python tool, worked example and 48 blind crops

Ask the OCR models to reread a word

Open Correct this reading under the scan and select the word box. Rotate the print until it reads upright, then choose Read box at this angle. The Dutch and Fraktur models each see the marked pixels with a narrow white border. Choosing a suggestion fills the field. Check the print and select Apply correction to update the search index.

On a separate 24-page panel, 23 pages had eligible boxes. One reader transcribed 43 of 57 sampled marks in full. Whole-page OCR matched 11 of those readings. At the angle the reader marked, the browser offered the correct text for 18 of the 32 originally wrong boxes. The two models can disagree even on clear print. The study deliberately included tall and low-confidence boxes. Download the cropped print, raw readings, annotations and scorer.

Source and software

IMPACT Project, IMPACT KB Ground-truth. KB Lab, The Hague. The example is page 00537887 from Courante uyt Italien Duytslandt, 1621. The source TIFF and corrected transcription are public domain. The Tesseract fast model files come from revision 87416418657359cb625c412a48b6e1d6d41c29bd. Tesseract.js 6.0.1 and its WebAssembly runtime perform recognition. KB source and rights · Tesseract models · Tesseract.js license