This Flask application allows users to paste images and analyze them using pre-trained models to extract text.
flask_app/
│
├── app.py
├── requirements.txt
├── README.md
├── templates/
│ └── upload.html
├── static/
├── css/
│ └── styles.css
└── js/
└── scripts.js
-
Clone the repository:
git clone https://github.com/yourusername/flask_image_to_text.git cd flask_image_to_text
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Ensure the virtual environment is activated.
-
Run the Flask application:
flask run
-
Open your web browser and navigate to
http://127.0.0.1:5000/
.
-
Paste an image into the designated box.
-
Select the models you want to use for analysis.
-
Click "Analyze Image" to process the image and extract text.
-
View and copy the results as needed.
Output of Prompt using InvokeAI
This project is licensed under the MIT License.