Revizor is an OCR editor written in Javascript (front-end) and Python (backend). The following blog post gives an overview over its architecture:

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.


Note: Revizor uses virtualenv, a Python tool for isolating the application from the system and installing needed Python packages in an own virtual environment. If you get weird errors about missing packages, remember to run the virtualenv setup script first, so the package root points to the application's package installation folders and not the system-wide one.

For example:

wouter@kkv54:~/Projects/OCRUI$ ./ -h
Traceback (most recent call last):
  File "./", line 16, in <module>
    from import store
  File "/home/wouter/Projects/OCRUI/app/storage/", line 6, in <module>
    from storage import Store
  File "/home/wouter/Projects/OCRUI/app/storage/", line 12, in <module>
    from app.exceptions import ConfigurationError
  File "/home/wouter/Projects/OCRUI/app/", line 2, in <module>
    from psycopg2 import Error as DBException
ImportError: No module named psycopg2
wouter@kkv54:~/Projects/OCRUI$ . env/bin/activate
(env)wouter@kkv54:~/Projects/OCRUI$ ./ -h
usage: [-h] [-v] [-d] [-t {korp}] [-l] [-r REVISION] [-s SAVEDIR]

positional arguments:
  uuid                  UUID of document to export

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         show informational messages
  -d, --debug           show debugging messages
  -t {korp}, --type {korp}
                        optional export profile with special ZIP layout or
                        metadata filters
  -l, --lang            add language prefix to zipped path
  -r REVISION, --revision REVISION
                        specify revision to export (default: last)
  -s SAVEDIR, --savedir SAVEDIR
                        save ZIP file in this directory (must exist)




  • No labels