Skip to content

Printext is a lightweight, application that extracts text from images.

License

Notifications You must be signed in to change notification settings

LMLK-seal/Printext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Printext: lightweight application that extracts text from images.

LLModel Chat Demo

Printext is a lightweight, user-friendly desktop application that extracts text from images using Optical Character Recognition (OCR) technology. Built with Python, it provides a simple graphical interface for users to load images, extract text, and easily copy the results to their clipboard.

Features

  • Load images through a file dialog
  • Extract text from various image formats (JPEG, PNG, BMP)
  • Display extracted text in a text area
  • Copy extracted text to clipboard with one click
  • Simple and intuitive graphical user interface

Requirements

  • Python 3.x
  • tkinter
  • Pillow (PIL)
  • pytesseract
  • pyperclip

Installation

  1. Ensure you have Python 3.x installed on your system.

  2. Install the required libraries:

    pip install pillow pytesseract pyperclip
    
  3. Install Tesseract-OCR on your system:

    • For Windows: Download and install from GitHub
    • For macOS: Use Homebrew: brew install tesseract
    • For Linux: Use your distribution's package manager, e.g., sudo apt-get install tesseract-ocr
  4. Download the printext.py file.

Usage

  1. Run the script:

    python printext.py
    
  2. Click "Load Image" to select an image file.

  3. The extracted text will appear in the text area.

  4. Click "Copy Text" to copy the extracted text to your clipboard.

How It Works

PrinText uses the following libraries:

  • tkinter for the graphical user interface
  • PIL (Python Imaging Library) for image processing
  • pytesseract for OCR (Optical Character Recognition)
  • pyperclip for clipboard operations

The application loads an image, processes it using Tesseract-OCR, and displays the extracted text. Users can then easily copy the text for use in other applications.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

MIT License

Acknowledgements