Revizor is an OCR editor written in Javascript (front-end) and Python (backend). The following blog post gives an overview over its architecture:
http://blogs.helsinki.fi/fennougrica/2014/02/21/ocr-text-editor/
This document and its children contain a dump of technical information included with Revizor on how to install it and how to use some of the included tools.