Date: Fri, 29 Mar 2024 15:46:07 +0200 (EET) Message-ID: <1307300889.1218.1711719967687@wiki4-kk.lib.helsinki.fi> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1217_61852212.1711719967685" ------=_Part_1217_61852212.1711719967685 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Revizor is an OCR editor written in Javascript (front-end) and P= ython (backend). The following blog post gives an overview over its archite= cture:
http://blogs.helsinki.fi/fenn= ougrica/2014/02/21/ocr-text-editor/
This document and its children contain a dump of technical information i= ncluded with Revizor on how to install it and how to use some of the includ= ed tools.
Note: Revizor uses virtualenv, a Python tool for isolat= ing the application from the system and installing needed Python packages i= n an own virtual environment. If you get weird errors about missing package= s, remember to run the virtualenv setup script first, so the package root p= oints to the application's package installation folders and not the system-= wide one.
For example:
wouter@kkv54:~/Projects/OCRUI$ ./export.py -h
Trac=
eback (most recent call last):
File "./export.py", l=
ine 16, in <module>
from app.stora=
ge import store
File "/home/wouter/Projects/OCRUI/ap=
p/storage/__init__.py", line 6, in <module>
&nb=
sp; from storage import Store
File "/home/wout=
er/Projects/OCRUI/app/storage/storage.py", line 12, in <module>
from app.exceptions import ConfigurationError=
File "/home/wouter/Projects/OCRUI/app/exceptions.py=
", line 2, in <module>
from psycop=
g2 import Error as DBException
ImportError: No module named=
psycopg2
wouter@kkv54:~/Projects/OCRUI$ . env/bin/=
activate
(env)wouter@kkv54:~/Projects/OCRUI$ ./exp=
ort.py -h
usage: export.py [-h] [-v] [-d] [-t {korp}] [-l] =
[-r REVISION] [-s SAVEDIR]
&n=
bsp; uuid
positional arguments:
uuid  =
; &n=
bsp; UUID of document to export
optional ar=
guments:
-h, --help &nb=
sp; show this help message and exit
-v, --verbose =
show informational messages
-d, --debug =
show debugging messages
-t {korp}, --type {korp}
&=
nbsp; &nbs=
p; optional export profile =
with special ZIP layout or
&n=
bsp;  =
; metadata filters
-l,=
--lang a=
dd language prefix to zipped path
-r REVISION, --rev=
ision REVISION
&n=
bsp;  =
; specify revision to export (default: last)
=
&nb=
sp; save ZIP file in this directo=
ry (must exist)
(env)wouter@kkv54:~/Projects/OCRUI$
<=
/p>