Skip to content

Instantly share code, notes, and snippets.

View wosiu's full-sized avatar

Michał Woś wosiu

View GitHub Profile
@wosiu
wosiu / calamari_wrapper.py
Last active May 22, 2019 00:14
Calamari OCR wrapper
'''
Calamari OCR Wrapper for in-code usage.
It assumes that images are already loaded into memory as np.array.
Extended with predictions postprocessing API.
For now character whitelisting is implemented.
Calamari OCR: https://github.com/Calamari-OCR/calamari/
License: Apache 2.0
'''