This project is a Django application designed to convert images of documents, such as Aadhar cards and PAN cards, into text. It verifies the extracted information against a MySQL database and automates the process of verification and data correction. Alerts are sent for admin approval upon detecting errors.
- Image upload and processing using Tesseract for Optical Character Recognition (OCR).
- Data verification against a MySQL database.
- Automated error detection and correction suggestions.
- Admin alerts for manual approval of corrections.
- Django: Web framework for building the application.
- Tesseract: OCR engine for text extraction from images.
- OpenCV: Library for image processing.
- NumPy: Library for numerical operations on images.
- spaCy: NLP library for text validation and correction.
- MySQL: Database for storing user and document information.
-
Clone the repository:
git clone <repository-url> cd doc-verifier -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install dependencies:
pip install -r requirements.txt -
Configure the database: Update the
DATABASESsetting indoc_verifier/settings.pyto connect to your MySQL database. -
Run migrations:
python manage.py migrate -
Start the development server:
python manage.py runserver -
Access the application: Open your web browser and go to
http://127.0.0.1:8000/verification/.
- Upload images of Aadhar cards or PAN cards through the web interface.
- The application will process the images, extract text, and verify the information.
- Admins will receive alerts for any discrepancies that require approval.
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.