openbharatocr is an opensource python library for ocr Indian government documents
Project description
openbharatocr
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)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for openbharatocr-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac78169ef6f98f852be200b8e03984e62174ed84df0f73d8b3254ed50a9272ec |
|
MD5 | e95e37c200b0d0315d4a1193b9ce3c65 |
|
BLAKE2b-256 | 2e8872276503737b28ef7f1ac1d90898856e505534fee7faf2b0d8a197bad6e8 |