Skip to content

📸 This Python application allows users to perform Optical Character Recognition (OCR) on a selected region of the screen or an imported image.

License

Notifications You must be signed in to change notification settings

KORINZ/screen-region-ocr-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screen Region OCR GUI

This Python application allows users to perform Optical Character Recognition (OCR) on a selected region of the screen or an imported image. The GUI is built using the CustomTkinter library and supports various image preprocessing options to enhance OCR accuracy.

Features

  • Select a region of the screen to capture and perform OCR
  • Import an image and perform OCR
  • Preprocess images to improve OCR accuracy
  • Display input and output images
  • Adjustable settings, including language, preprocessing parameters, and shortcuts

Dependencies

  • Python 3.6 or higher
  • pytesseract
  • Pillow (PIL)
  • OpenCV (cv2)
  • numpy
  • pyautogui
  • pyperclip
  • customtkinter

Installation

  1. Clone the repository:
git clone https://github.com/korinz/screen_region_ocr_gui.git
  1. Change to the project directory:
cd screen_region_ocr_gui
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Set the path to the Tesseract executable in main.py.

Usage

  1. Run the main script:
python gui.py
  1. Use the GUI to take a screenshot, import an image, and perform OCR on the selected region or imported image.

  2. Adjust settings and preprocessing parameters as needed.

  3. View the input and output images in the GUI.

  4. The OCR result will be printed in the terminal.

License

This project is licensed under the MIT License.

About

📸 This Python application allows users to perform Optical Character Recognition (OCR) on a selected region of the screen or an imported image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages