On November 24, 2026, the National Diet Library of Japan released "NDLOCR-Lite ver.2," optical character recognition (OCR) software that reads text from images, on the official NDL Lab GitHub. As before, it does not require a GPU and runs on an ordinary laptop. The new version improves character recognition accuracy and officially supports English text and handwriting.
The ways recognition results can be output have also been expanded. Paper materials can be converted into an e-book format that supports read-aloud playback, and the structure of tables printed on a page can be preserved when the data is extracted. A feature that unifies variant character forms, such as old-style kanji, into modern forms has also been added.
E-book conversion, variant character unification and table structure recognition
In the desktop version, the three newly added features are available from "Output Settings." One is output to Text DAISY, an e-book format designed for people with visual impairments or difficulty reading print. A printed booklet can be scanned, its text extracted, and the result read aloud with compatible playback software.
"Variant character inclusion" replaces old-style kanji and other variant forms with modern ones. It can be used, for example, to unify the notation in materials where "國" and "国" appear side by side. The National Diet Library has also published a sample of Text DAISY output with variant character inclusion applied.
The table structure recognition feature is useful when reusing statistical data and similar content printed in paper materials. The conventional TXT format outputs only strings of text, but the new version automatically estimates the structure of tables in an image and outputs the recognized characters and numbers in HTML with rows and columns. For a table summarizing counts by year, for example, each figure stays linked to its corresponding year heading.
The library explains that it implemented this feature by building on the dataset and model for table structure recognition that it developed in fiscal 2023. According to the official README for version 2.0.0, table structure recognition uses TableCenterNet.
Accuracy evaluated on 1,065 handwritten character images
Handwriting recognition accuracy has been improved step by step since earlier versions. In an addition to the README dated April 24, 2026, the National Diet Library said it had strengthened handwriting recognition performance and other aspects starting with v1.2. The release notes for 2.0.0 likewise state that character recognition performance has improved, with a particularly noticeable gain for handwriting.
The library evaluated the recognition performance of 2.0.0 using 1,065 handwritten character images from JaWildText. The metrics are the character error rate (CER), where a smaller value means fewer recognition errors, and the F-measure, which evaluates how closely the recognition results match the ground truth. The results for each category in the official README are all median values.
| Evaluation category | Files | Median character error rate (CER) | Median F-measure |
|---|---|---|---|
| Overall | 1,065 | 0.1327 | 0.8927 |
| Vertical text | 295 | 0.1776 | 0.8536 |
| Horizontal text | 768 | 0.1156 | 0.9050 |
The results show a median character error rate of about 11.6% for horizontal text, versus a higher figure of about 17.8% for vertical text. Note that the vertical and horizontal files add up to 1,063, and the breakdown of the two files that make up the difference from the overall total is not given. The figures for the previous version, evaluated under the same conditions, are also not published, so the size of the improvement from this update cannot be determined from these results.
Works on Windows, macOS and Linux without a GPU
The environments in which the National Diet Library confirmed operation are Windows 11, macOS Sequoia and Ubuntu 22.04. A machine with an Apple M4 chip was used to check operation on Mac. The desktop version can be downloaded from the official GitHub as a file for each OS. The software is released under the CC BY 4.0 license and is free to use.
According to the usage guide for Windows, OCR can be run by selecting an image file or a folder containing multiple images and specifying a save location. Depending on the purpose, users can choose output formats such as TXT, which saves only the text; JSON, which includes coordinate information for recognized lines; and XML, which retains coordinates and layout information. PDF with transparent text keeps the original image while making the text searchable and copyable. TEI format is also supported.
The library cautions in its usage guide that OCR results contain errors. For serious transcription of kuzushiji (cursive classical script) or classical Chinese texts, it recommends "NDL Koten OCR" or "NDL Koten OCR-Lite," which achieve higher recognition accuracy on such materials.
NDLOCR-Lite combines page layout recognition, character recognition and reading-order sorting. For that reason, when material is read aloud in Text DAISY format, users need to check not only character recognition errors but also the reading order of text that includes multiple columns and annotations. When preserving the original notation of a text, it is advisable to disable variant character inclusion and confirm that old-style kanji and similar forms are being recognized correctly. When reusing table data, it matters not only that the numbers themselves are accurate but also that the corresponding row and column headings have been recognized correctly.
