# 🌍 Multilingual OCR Web Application
## Overview
This web application allows users to upload images containing Hindi and English text and extracts the text using Optical Character Recognition (OCR). Users can also search for specific keywords within the extracted text, and matching keywords are highlighted.
## Features
- 📸 **Image Upload:** Users can upload images in JPG, JPEG, or PNG formats.
- 📝 **Text Extraction:** Uses EasyOCR to extract text from uploaded images.
- 🔍 **Keyword Search:** Enter keywords to highlight matches in the extracted text.
- 📱 **Responsive Layout:** Organized layout for better readability.
## Tech Stack
- **Frontend:** Streamlit
- **OCR Library:** EasyOCR
- **Image Handling:** PIL (Python Imaging Library)
- **Python Version:** Ensure Python 3.7 or higher is installed.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/ocr_web_app.git
cd ocr_web_app
-
Create a virtual environment (optional but recommended):
python -m venv ocr_env source ocr_env/bin/activate # On Windows use `ocr_env\Scripts\activate`
-
Install required packages:
pip install -r requirements.txt
To run the application locally, execute the following command:
streamlit run app.py
Then open your web browser and go to http://localhost:8501
to view the app. 🚀
This application can be easily deployed on Streamlit Community Cloud. Follow these steps:
- Create a GitHub repository and push your code.
- Sign in to Streamlit Community Cloud using your GitHub account.
- Click on "New app" and select your repository, branch, and
app.py
. - Click "Deploy".
- 📤 Upload an image containing Hindi and English text.
- ⏳ Wait for the OCR process to complete.
- 🔑 Enter keywords in the provided text box and click "Search" to highlight matches.
⚠️ Ensure all required libraries are listed inrequirements.txt
.- 🖼️ Check for supported image formats.
- ❓ If you encounter issues with OCR, verify that the image quality is sufficient for text recognition.
🤝 Feel free to fork the repository and submit pull requests for any improvements or features.
This project is licensed under the MIT License - see the LICENSE file for details.
### Notes:
- Replace `yourusername` in the clone command with your actual GitHub username.
- Feel free to adjust emojis or text as per your preferences!