Skip to content

patrickjmckee/Python_OCR_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Author

Patrick McKee
LinkedIn
GitHub

Version

1.0.0 – June 2025


Python OCR Web App

This is a lightweight Flask web app that uses Tesseract OCR to extract text from uploaded images. It demonstrates how to turn AI and automation concepts into accessible, browser-based tools.


Features

  • Upload .png, .jpg, or .jpeg image files
  • Extract printed text using Tesseract OCR
  • Display extracted text in the browser
  • Simple, customizable UI with Flask and HTML/CSS

Setup Instructions

Clone the repository

git clone https://github.com/patrickjmckee/Python_OCR_app.git
cd Python_OCR_app

Create and activate a virtual environment

Windows (Git Bash / WSL):

python -m venv venv
source venv/Scripts/activate

Windows (CMD):

python -m venv venv
venv\Scripts\activate

Install dependencies

pip install -r requirements.txt

Run the app

python app.py

Then open your browser to http://127.0.0.1:5000


Project Structure

Python_OCR_app/
│
├── app.py                 # Main Flask app
├── requirements.txt       # Python dependencies
├── README.md              # Project documentation
├── .gitignore             # Git ignore rules
│
├── static/
│   └── style.css          # Stylesheet
│
├── templates/
│   └── index.html         # HTML template
│
└── uploads/               # Uploaded image files (excluded from Git)

Requirements

Status

This project is actively maintained and open to feature contributions or suggestions.


License

This project is provided for personal and educational use.


Acknowledgments

Built using:

  • Flask
  • pytesseract
  • Pillow
  • Tesseract OCR

EOF