Skip to content

siddhi47/Nepalese-PAN-extraction

Repository files navigation

Docker installation

Make sure you have docker installed in your system. Check by using the command:
docker -v

You should see the docker version if you have docker installed on your system.

You can install Docker from here

Configuration

Inside config/config.json, make sure you have entered configuration properly.

Running the code

Create necessary schema

The dump for schema is located in the directory sql. Create a new schema OCR_DB in your database and run the queries in sql/OCR_DB.sql

Building the image

Make sure you are inside the directory where the Dockerfile is located. Run the following command:
docker build -t tesseract .

Run the container

To run identification job, enter the command:

docker run \
          --mount type=bind,source=`directory_where_images_are_present`,target=/app/test_image  \
          --rm tesseract load /app/test_image

To run verification job, enter the command:

docker run tesseract verify

Mount logs

To store logs in logs directory, we need to mount the log path. For example
docker run tesseract --mount type=bind,src=`working directory`/logs,dst=/app/logs --rm tesseract verify

About

Ready to Deploy Pan Idenfification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published