Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.32 KB

README.md

File metadata and controls

31 lines (28 loc) · 1.32 KB

Smart SQLizer 🤖

An automated tool that autopopulates the database from entries in a table image, based on OpenCV and PyTesseract.


Dependencies

Based on python 3.6+.

Run pip install -r requirements.txt to install all dependencies.

How to setup?

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.

Arguments

  • -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

Executing the script:

Run python injector.py with respective arguments.

=====================
Have Fun
=====================