A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
Reason this release was yanked:
The URLs for weights have changed. Please upgrade.
Project description
keras-ocr
This is a slightly polished and packaged version of the Keras CRNN implementation and the published CRAFT text detection model. It provides a high level API for training a text detection and OCR pipeline.
Please see the documentation for more examples, including for training a custom model.
Getting Started
Installation
# To install from master
pip install git+https://github.com/faustomorales/keras-ocr.git#egg=keras-ocr
# To install from PyPi
pip install keras-ocr
Using
Using pretrained text detection and recognition models
The package ships with an easy-to-use implementation of the CRAFT text detection model from this repository and the CRNN recognition model from this repository.
import keras_ocr
# keras-ocr will automatically download pretrained
# weights for the detector and recognizer.
pipeline = keras_ocr.pipeline.Pipeline()
# Predictions is a list of (string, box) tuples.
predictions = pipeline.recognize(image='tests/test_image.jpg')
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
keras-ocr-0.4.2.tar.gz
(145.8 kB
view hashes)