This project demonstrates an OCR (Optical Character Recognition) application built with EasyOCR and Streamlit. The app allows users to upload an image and extracts the text from the image using OCR technology.
- OCR Functionality: Converts text from images (PNG, JPG, JPEG) to editable text using EasyOCR.
- Image Upload: Simple drag-and-drop image uploader in the UI.
- Text Output: Displays extracted text in a readable format.
- Easy Setup: Automatically initializes the OCR model and handles the image processing.
- Image Upload: The user uploads an image file (PNG, JPG, or JPEG).
- Preprocessing: The image is converted to grayscale for improved OCR accuracy.
- OCR Extraction: EasyOCR processes the image and extracts the text.
- Text Display: The extracted text is displayed in a text area for easy copying.
To run this project, you'll need the following libraries installed:
streamliteasyocrnumpyopencv-pythonPillow
You can install these dependencies using pip:
pip install streamlit easyocr numpy opencv-python Pillow- Clone this repository or download the project files.
- Install the required dependencies using the command above.
- Run the Streamlit app:
streamlit run app.py- Open the app in your browser, upload an image, and view the extracted text!
- The OCR model is stored in the
model_datadirectory. This directory will be created automatically if it doesn't exist. - Currently, the app supports OCR for English text only. You can modify the language in the
easyocr.Reader()initialization if you'd like to support other languages.
Feel free to fork the project, make improvements, or add additional features! If you encounter any issues or have suggestions, please open an issue.
This project is licensed under the MIT License.