Dutch book reader

Sources and licenses

Reader

Folio Kestrel adapted its Dutch newspaper OCR model to printed lines from three eighteenth-century books. The model expands long s and common ligatures and keeps historical spelling. On 60 held-out book lines it made 82 character edits in 1,491 reference characters. The held-out book titles were printed in 1630 and 1791.

The browser runs the original ONNX checkpoint on the rectangle you select. In Chromium, the normalized readings agreed with the CPU reader on 60 single-line regions and 96 separately cropped lines from book paragraphs. Selecting different borders or including adjacent print can change a reading. Model card · Browser comparison · Model license (CC BY-SA 4.0) · Attribution

Finding lines in a paragraph

Choose Find paragraph lines on a crop of one horizontal text column. The Dutch Tesseract layout engine proposes rectangles. Select one to inspect it, then use the book reader to transcribe it. Drag a new rectangle if a heading is skipped or another line enters the box.

The browser returned the archive line count for 86 of 89 held-out paragraphs. On the 1630 title all 42 counts matched, but only 8 of 270 individual line readings matched the transcription exactly. On the 1791 title 44 of 47 counts matched. In a visual check across twelve paragraphs, eleven selected rectangles contained the intended numbered line. In a title block with widely spaced text, the third suggestion selected the fourth printed line. Several other crops included strokes from a neighbor. Results and per-title comparisons · Every proposed box and reading · Visual inspection

The detector uses the Dutch language data and Tesseract.js runtime distributed in this Space. Tesseract.js license · Core license · Language data and source credits

Selecting a paragraph on a full page

Open a full page, drag a rectangle around one paragraph and choose Find lines in selection. You can also set its edges under Line bounds in pixels. Choose Adjust paragraph bounds to revise the original box after inspecting its lines. Detected lines keep their positions on the page, so you can check each against the original scan.

On twelve full pages from the two held-out titles, an archive-aligned rectangle returned the reference line count for 12 paragraphs. Expanding each edge by twelve source pixels returned that count for 7. Across 3,310 reference characters, the original rectangles produced 195 errors, expanded rectangles 256, and the archive polygon crops used in the main benchmark 192. These are controlled selections. A reader drawing a box can include different print. Results by title · Page coordinates and readings · Page selection method

Comparing readings

After finding paragraph lines, select one and choose Compare two readings. One reading uses the original rectangle. The other trims the outside margins to pixels darker than 190 on a 0–255 grayscale and adds a four-pixel white border. Check both readings against the scan, then add the one you want to edit.

Across 89 paragraphs from two held-out titles, trimming reduced character errors from 2,514 to 2,238 in 28,521 reference characters. It improved 57 paragraphs, worsened 18 and left 14 scores unchanged. Chromium reproduced the Python trimmed pixels and text on 547 validation lines and 649 test lines. A separate Python method that also removed neighboring ink made 2,036 errors on this test. The browser comparison uses the original and trimmed readings.

Trimming recovered the printed word

Original line from page 00537412, showing the words transcribed below
KB scan 00537412/r7, detected line 4
Original selection
Jhetilntunert
Trimmed selection
ghetimmert
Archive transcription
ghetimmert

Trimming joined two printed words

Original line from page 00539121, showing the words transcribed below
KB scan 00539121/r22, detected line 13
Original selection
groot, en de holte der blaas evenredig verkleind is.
Trimmed selection
groot, en de holte der blaas evenredig verkleindis.
Archive transcription
groot, en de holte der blaas evenredig verkleind is.

Scans and archive text are from IMPACT Project, IMPACT KB Ground-truth, KB Lab, The Hague (public domain). Results by title · All held-out readings · Validation readings · Method selected on validation

Example scan

The paragraph comes from Feest en lydens stoffen voor de hervormde gemeente te Alkmaar, page image 00529998, region r21 in the public-domain IMPACT KB Ground-truth collection. The three example selections use detected rectangular line bounds in the original region. Original scans and rights · Example bounds and archive transcription

Software and type

The interface and image preparation code use Apache 2.0. ONNX Runtime Web uses the MIT license. Barlow and Instrument Serif use the SIL Open Font License. Code license · Runtime license · Runtime notices · Barlow license · Instrument Serif license