This Django application enhances document processing and analysis. It aligns document images based on their contours, applies image filters, performs Optical Character Recognition (OCR), and extracts text into a notepad file.
-
Document Alignment:
- Detects document edges and contours.
- Applies a perspective transformation to correct orientation and achieve a top-down view.
- Ensures accuracy for subsequent processing.
-
Image Filters:
- Adjusts brightness, saturation, and rotation to enhance image quality.
-
Optical Character Recognition (OCR):
- Extracts and recognizes text from aligned images.
-
Text Extraction:
- Downloads extracted text as a notepad file for easy access and further processing.
- Python 3.6 or higher
- Django 3.2 or higher
- Required libraries (see
requirements.txt
)
- Clone the repository:
git clone https://github.com/saadxsaleem/Image-Alignment-and-OCR---Digital-Image-Processing.git
- Install the required Python libraries:
pip install -r requirements.txt
- Apply migrations to set up the database:
python manage.py migrate
- Start the Django development server:
python manage.py runserver
- Access the application in your web browser at
http://127.0.0.1:8000/
. - Upload your document images via the web interface.
- The aligned images, filtered results, and extracted text files will be available for download.
Feel free to connect if you have any questions or need further assistance!