Skip to main content

openbharatocr is an opensource python library for ocr Indian government documents

Project description

openbharatocr

Build status

openbharatocr is a Python library developed as open-source, designed specifically for optical character recognition (OCR) of Indian government documents.

The features of this package:

  • It offers comprehensive support for the majority of Indian government documents, covering a wide range of document types.

Installation

    pip install openbharatocr

Pan Card

This function takes the path of a PAN card image as input and returns its information in the form of a dictionary.

    import openbharatocr 
    dict_output = openbharatocr.pan(image_path)

Aadhaar Card

The two functions accepts the file paths of the front and back images of an Aadhaar card as input and returns their corresponding information encapsulated in a dictionary.

    import openbharatocr 
    dict_output = openbharatocr.front_aadhaar(image_path)
    dict_output = openbharatocr.back_aadhaar(image_path)

Driving Licence

This function takes the path of a Driving Licence card image as input and returns its information in the form of a dictionary.

    import openbharatocr 
    dict_output = openbharatocr.driving_licence(image_path)

Passport

This function takes the path of a Passport image as input and returns its information in the form of a dictionary.

    import openbharatocr 
    dict_output = openbharatocr.passport(image_path)

VoterID

The two functions accepts the file paths of the front and back images of a voterID as input and returns their corresponding information encapsulated in a dictionary.

    import openbharatocr 
    # Download YOLOv3 models from links(added below) and set the path of YOLO_CFG, YOLO_WEIGHT
    dict_output = openbharatocr.voter_id_front(image_path)
    dict_output = openbharatocr.voter_id_back(image_path)

Download Resources

Some Resources need to download and set the path in the variables.

Contribute & support

We are so pleased to your help and help you. If you wanna develop openbharatocr, Congrats! If you have problem, don't worry, create an issue here:

    https://github.com/essentiasoftserv/openbharatocr/issues

Pre Commit

Note: Before committing your changes, run pre-commits

    pre-commit run --all

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openbharatocr-0.2.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

openbharatocr-0.2.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file openbharatocr-0.2.0.tar.gz.

File metadata

  • Download URL: openbharatocr-0.2.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for openbharatocr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b41ce0f20749dfd6d2fa0c294a6a4026cc5530c9a92b6e9c94fb31d8f2b5312
MD5 a5ef189c9a839179607e8d09aa0334ae
BLAKE2b-256 d04f82a0c6013211b78e192a67e733db2358a1c86087bc44c74660de965e9f29

See more details on using hashes here.

File details

Details for the file openbharatocr-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openbharatocr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 812b63f967b9e1b1531aa57da0fc62e53659c68c7b6ea36368a992759555fce6
MD5 30b11c0ce602476aafd7c8f460d34638
BLAKE2b-256 5f9c8fe4dff3f9396776314ecc48be1a7dd55e408d3429336aef356157a469f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page