Skip to content

Deepersensor/screentext-lib

Repository files navigation

ScreenText Library

Welcome to the ScreenText Library! This project provides a powerful and flexible pipeline for extracting text from images and copying it to the clipboard. It leverages Tesseract OCR for text extraction and offers a modular, customizable, and efficient workflow.

Features

  • Text Extraction: Extract text from images using Tesseract OCR.
  • Clipboard Integration: Copy extracted text directly to the clipboard.
  • Configurable: Use a config.json file to set up paths and behaviors.
  • Daemon Mode: Watch a directory for new images and process them automatically.
  • Run on Startup: Optionally configure the script to run on system startup.
  • Verbosity Levels: Control the output verbosity for detailed logging or silent operation.
  • Modular Design: Use each component independently or as part of the pipeline.

Installation

  1. Clone the Repository:

    git clone https://github.com/yourusername/screentext-lib.git
    cd screentext-lib
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Install Tesseract OCR:

    • Ubuntu:
      sudo apt-get install tesseract-ocr
    • MacOS:
      brew install tesseract
    • Windows: Download and install from Tesseract at UB Mannheim.

Configuration

Create a config.json file in the project directory to customize the behavior:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages