A web application that allows users to upload an image and convert it to text using Optical Character Recognition (OCR) technology. This application supports user authentication and provides a user-friendly interface for image uploads and text extraction.
APACHE-2.0 License
A web application that allows users to upload an image and convert it to text using Optical Character Recognition (OCR) technology. This application supports user authentication and provides a user-friendly interface for image uploads and text extraction.
Clone the repository:
git clone https://github.com/minnukota381/flask-ocr-app.git
cd flask-ocr-app
Create a virtual environment:
python -m venv venv
venv\Scripts\activate
Install the required dependencies:
pip install -r requirements.txt
Set up environment variables:
Create a .env
file in the project root and add your secret key:
SECRET_KEY=your_secret_key_here
Set up the SQLite database:
python -c "from app import create_connection; create_connection()"
Run the Flask application:
flask run
Open the app in your browser:
Navigate to http://127.0.0.1:5000
in your web browser.
Register or Login:
Upload an Image:
View Extracted Text:
flask-ocr-app/
│
├── app.py # Main application file
├── requirements.txt # Python dependencies
├── Procfile # For deployment (Heroku)
├── templates/
│ ├── index.html # Main HTML file
│ ├── login.html # Login HTML file
│ └── register.html # Register HTML file
├── static/
│ ├── stylesheets/
│ │ └── login.css # CSS for login page
│ │ └── register.css # CSS for register page
│ │ └── index.css # CSS for main page
│ └── images/
│ └── scripts/
│ └── index.js # JavaScript for client-side interactions
└── .env # Environment variables
└── README.md # This README file
Contributions are welcome! Please follow these steps:
git checkout -b feature-branch
)git commit -am 'Add some feature'
)git push origin feature-branch
)This project is licensed under the MIT License - see the LICENSE file for details.