The "Text from Image Detector" is a Python Streamlit application that allows users to upload an image containing text, and it extracts and displays the text using OCR (Optical Character Recognition). Additionally, the application provides the functionality to save the extracted text to a file.
-
Text Extraction: Upload an image, and the application uses OCR to extract text from the image.
-
Save to File: Save the extracted text to a file with a single click.
-
Upload Image:
- Click on the "Choose an image" button to upload an image (supported formats: jpg, jpeg, png) must be 1MB or Less.
-
Extract Text:
- After uploading the image, click on the "Extract Text" button to initiate text extraction.
-
View Extracted Text:
- The extracted text will be displayed below the button.
-
Save Text to File:
- If desired, click on the "Save Text to File" button to save the extracted text to a file.
Follow these steps to run the application locally:
-
Clone the repository:
git clone https://github.com/your-username/text-from-image-detector.git cd text-from-image-detector
-
pip install -r requirements.txt
-
streamlit run app.py
- Contributions are welcome! If you find a bug or have suggestions for improvement, please open an issue or submit a pull request.
- This project is licensed under the MIT License - see the LICENSE file for details.