This is a simple website that allows users to upload or drag and drop an image, and extract the text from the image using OCR (Optical Character Recognition).
- Python 3.6 or higher
- Flask
- PIL (Python Imaging Library)
- pytesseract
- Clone the repository:
git clone https://github.com/orbitalmartian/ImageToTextOCR
- Navigate to the project directory:
cd ImageToTextOCR
- Install the required libraries:
pip install -r requirements.txt
- Run the application:
python main.py
Open your web browser and go to
http://localhost:5000
.Choose a file or drag and drop an image into the designated area.
Click the "Extract Text" button to extract the text from the image.
To add your own styling to the website, create a static/css/style.css
file and include it in the HTML file:
<link rel="stylesheet" type="text/css" href="static/css/style.css">
- Allow users to download the extracted text as a text file.
- Add the option to select the language of the text in the image.