A registry of models for OCR engines
Unless you intend to develop your own version of the model registry, you won't need to actually clone this repo.
Unless you did a recursive clone (git clone --recursive https://github.com/kba/ocr-models
):
git submodule init
git submodule update
make validate
This will apply the JSON schema for the
metadata to the DESCRIPTION
JSON file of all models.
make zip
make db
Install node modules:
npm install
To get a development server up, run npm start-dev
.
Server will be available on http://localhost:3002.
docker run --rm -it -p 3002:3002 kbai/ocr-models
Enable the proxy_http
apache module. In Debian:
a2enmod http_proxy
Add a location directive to an enabled site, such as /etc/apache2/sites-enabled/000-default.conf
:
<Location /ocr-models/>
ProxyPass http://localhost:3002/ retry=0
ProxyPassReverse http://localhost:3002/
</Location>
Restart apache
service apache2 restart
# or, if using systemd
systemctl restart apache2.service