An automated tool that autopopulates the database from entries in a table image, based on OpenCV and PyTesseract.
Based on python 3.6+.
Run pip install -r requirements.txt to install all dependencies.
Create a virtual environment:
- Installing virtualenv :
pip3 install virtualenv - Creating venv:
python -m venv env - Activating env:
source env/bin/activate
Install all dependencies.
Set up config.js by copying contents of config.example.json to config.json and fill in username and password of your database client.
-p/ --path: Path of the image to be processed-db/ --database: Name of the database-t/ --table: Name of the table-s/ --shade: 0 if heading is not, 1 if heading is dark
Run python injector.py with respective arguments.