Pan Aadhar OCR
Extract Text from Pan and Aadhar Cards
Pan Aadhar OCR is a python package which takes an Image of a valid Pan/Aadhar Document and extracts the text from it and returns the information in JSON format.
- Easy to use
- Returns information in JSON
- Works even faster with the GPU
- If you don't have a GPU, you can still run it on CPU, but slower
Tech
Pan Aadhar OCR uses a number of open source projects to work properly:
- EasyOCR - Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
- Python - Python is a programming language that lets you work quickly and integrate systems more effectively.
- OpenCV - OpenCV is open source and released under the BSD 3-Clause License. It is free for commercial use.
Installation
This library requires Python 3.6+ to run. As well as you also need to install tesseract on your system. If you have Linux based system just run:
sudo apt install tesseract-ocr
On windows system you will need to download Tessaract from here. and Add it to the Path.
Install the package.
pip install pan-aadhar-ocr
Then Import the package.
from pan_aadhar_ocr import Pan_Info_Extractor
Create an instance of the extractor.
extractor = Pan_Info_Extractor()
Pass the image to the extractor to get the results.
extractor.info_extractor('/content/pan test.jpeg')
This will return a result as following:
{
"Pan_number": "EKAPS0276J",
"Name": "John Kevin Doe",
"Father_Name": "Kevin Doe",
"DOB": "31/10/1992"
}
Metadata
Release files for pan-aadhar-ocr 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pan_aadhar_ocr-1.0.4.tar.gz | 4.5 kB | Without provenance | Details |
Release files / pan_aadhar_ocr-1.0.4.tar.gz
| Download URL | pan_aadhar_ocr-1.0.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1603bff4f1b7791e496df1f216b3729da30f8ee58fd67f710375541156e9ad00
|
|
BLAKE2b-256 checksum How to use checksums |
c3625a621fb66edd2188cb18273b86f378e48148b791a4870ac21a3984436563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for pan-aadhar-ocr 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.