OCR engine compatible with ocropus
Reason this release was yanked:
conflict with modern install tools
Project description
- ┌────────────────────────────┐
│ Description │ └────────────────────────────┘
kraken is a fork of ocropus intended to rectify a number of issues while preserving (mostly) functional equivalence. Its main goals are:
Explicit input/output handling.
Clean public API
Word bounding boxes in hOCR
Tests
Removal of runtime dependency on gcc
Removal of unused spaghetti code
Some of these have already been realized while others require some more work.
┌────────────────────────────┐ │ Installation │ └────────────────────────────┘
As of now kraken still requires a working gcc on run-time so make sure to have build-essential or your distributions equivalent installed. Because the build behavior of pip interferes with the scipy build process numpy has to be installed before doing the actual install:
# pip install numpy
Install kraken either from pypi:
$ pip install kraken
or by running pip in the git repository:
$ pip install .
Finally you’ll have to scrounge up an RNN to do the actual recognition of characters. To download ocropus’ default RNN and place it in the kraken directory for the current user:
$ kraken download
┌────────────────────────────┐ │ Quickstart │ └────────────────────────────┘
To binarize a single image using the nlbin algorithm:
$ kraken binarize grey.png bw.png
To segment a binarized image into reading-order sorted lines:
$ kraken segment bw.png lines.txt
To OCR a binarized image using the default RNN and the previously generated page segmentation:
$ kraken ocr –lines lines.txt bw.png
┌────────────────────────────┐ │ Documentation │ └────────────────────────────┘
Have a look at http://mittagessen.github.io/kraken
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kraken-0.1.0.tar.gz
.
File metadata
- Download URL: kraken-0.1.0.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17cfca58a29da5189b616eb0615a534613aa2632344da616fad9b6ed1752efbb |
|
MD5 | 7a3b35cad58015bec5b522296cfa33fb |
|
BLAKE2b-256 | d3c052a2648dc7d0c0c93d7b063e415e0bd7a6801752f35c2de29a8d3aaa90d5 |
File details
Details for the file kraken-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: kraken-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccc8931ea433685a16aa9b81b198f0d2cb37dd37f44d7d8d4f97b975fccd1d4c |
|
MD5 | f5d8a56c9c26d09230962d994a441ee5 |
|
BLAKE2b-256 | 8b7222eb1221883cc4c4e5c14f00dde35dc8284e7270fa2eb046516f1d1bdbd2 |