#6565th of 101 in Data and scraping for AIFor data and documents, documents and ocr

kraken

OCR engine for historical and non-Latin scripts with trainable layout and recognition

Stars
1.1k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 30 weeks+137
6 May 2026: 984 stars13 May 2026: 988 stars20 May 2026: 992 stars27 May 2026: 995 stars3 Jun 2026: 1,001 stars10 Jun 2026: 1,005 stars17 Jun 2026: 1,010 stars24 Jun 2026: 1,013 stars1 Jul 2026: 1,015 stars8 Jul 2026: 1,022 stars15 Jul 2026: 1,026 stars22 Jul 2026: 1,033 stars29 Jul 2026: 1,035 stars5 Aug 2026: 1,044 stars12 Aug 2026: 1,049 stars19 Aug 2026: 1,050 stars26 Aug 2026: 1,055 stars2 Sept 2026: 1,057 stars9 Sept 2026: 1,064 stars16 Sept 2026: 1,067 stars23 Sept 2026: 1,070 stars30 Sept 2026: 1,073 stars7 Oct 2026: 1,077 stars14 Oct 2026: 1,082 stars21 Oct 2026: 1,087 stars28 Oct 2026: 1,093 stars4 Nov 2026: 1,100 stars11 Nov 2026: 1,103 stars18 Nov 2026: 1,108 stars25 Nov 2026: 1,114 stars2 Dec 2026: 1,121 stars

984 on 6 May 20261,121 on 2 Dec 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

kraken is a Python command-line OCR system that runs binarization, baseline page segmentation and character recognition. Layout analysis, reading order and recognition are all trainable. It handles right-to-left, BiDi and top-to-bottom scripts and writes ALTO, PageXML, abbyyXML or hOCR. Recognition models are fetched from a public Zenodo repository with `kraken get` and `kraken list`.

Who it is for: Researchers and archivists digitizing historical or non-Latin script documents

Strengths

  • Layout analysis, reading order and recognition are all trainable on your own material
  • Supports RTL, BiDi and top-to-bottom scripts plus multi-script recognition
  • Outputs ALTO, PageXML, abbyyXML and hOCR with word boxes and character cuts
  • Public Zenodo repository of downloadable recognition models

Weaknesses

  • Officially supports only Linux and macOS; Windows is not listed
  • Needs a separate recognition model download before it can OCR anything
  • PDF and multi-image TIFF input requires the optional pdf extra
  • Python 3.10 to 3.13 only; pipx may pick an unsupported interpreter

What it needs

  • Needs Python 3.10-3.13, pip or pipx
  • Models: kraken .mlmodel recognition models (Zenodo repository)

What changed

  1. 7.2 ↗ (opens in a new tab)Breaking

    “The long-deprecated add and both values for --resize in ketos train and ketos segtrain have been removed. Use union and new instead.”

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Data and scraping for AI

See all 101
Also in Data and scraping for AI
RankProjectScore
#63paper2posterTurns a scientific paper PDF into an editable PowerPoint poster Live demo ↗ (opens in a new tab)4.1k starsMIT55 out of 100
#64humanize-textRewrites AI-generated text through LLM passes and a translation chain, with step traces Live demo ↗ (opens in a new tab)3.5k stars+90 (+2.7%) in 30 daysMIT55 out of 100
#66quant-mindPython library turning financial papers and news into typed, cited knowledge records3.3k starsMIT54 out of 100
#67mnbvcChinese text corpus of 63 TB plus the crawlers and cleaning scripts behind it4.3k starsMIT53 out of 100
#68glm-ocr0.9B OCR model and SDK that parses documents into Markdown and JSON7.6k stars+72 (+1.0%) in 30 daysApache-2.051 out of 100