Skip to content

musorblyat/screenshot2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

screenshot2text

115 115 50 116 101 120 116

This Python script converts images to text using the Tesseract OCR library. The output text is displayed in a colorful format.Icon

Prerequisites

  • Python 3.x
  • Tesseract OCR installed on your system

Example

GIF

Usage

  1. Clone the repository:

    git clone https://github.com/your-username/image-to-text-converter.git](https://github.com/vinetsuicide/screenshot2text.git
    cd screenshot2text
  2. Install the required Python packages:

    pip install -r requirements.txt
  3. Run the script with the path to the image file as a command-line argument:

    python3 ss2text.py "ur image"

    The converted text will be displayed in a colorful format.

Customization

You can customize the colors in the script (colorful_output function) according to your preferences.

Script Overview

The script consists of two main functions:

  • image_to_text(image_path): Opens an image file and uses Tesseract OCR to extract text.
  • colorful_output(text): Prints the converted text in a colorful format.

Command Line Arguments

  • image_path: Path to the image file that you want to convert to text.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages