asimazbunzel / scr2ocr

Screenshot to OCR utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scr2ocr

Screenshot to OCR utility

Installation and usage

Prerequisites

GNU/Linux

It should work on any distribution with xclip installed. Wayland is not supported (see: https://github.com/python-pillow/Pillow/issues/6312)]

  1. Download the zip file from the releases section
$ wget https://github.com/epassaro/scr2ocr/releases/download/latest/scr2ocr-linux-64.zip
  1. Extract and execute the src2ocr binary file
unzip scr2ocr-linux-64.zip
cd scr2ocr
./scr2ocr

⚠️ NOTE: Loading the JamSpell model for the first time could take a while, don't worry!

  1. Resize the window to cover the area you want to capture and press the square button
  2. Captured text should be automatically copied to your clipboard 🎉

macOS

Currently not tested. Not built. Use development install.

Windows

Currently not tested, JamSpell is not supported. Please do not open issues about the Windows build!

Development

  1. Requires installing Miniconda or a Miniforge variant (we recommend Mambaforge)
  2. Install the required packages in a new virtual environment using the lockfile meant for your platform
$ mamba create -n mamba create -n scr2ocr --file conda-linux-64.lock
  1. Activate the environment and install jamspell with pip
$ mamba activate scr2ocr
$ pip install jamspell==0.0.12
  1. Place a JamSpell model file named model.bin inside the jamspell folder
  2. Run the script
$ python scr2ocr.py

Authors

License

This software is released under the MIT license

About

Screenshot to OCR utility

License:MIT License


Languages

Language:Python 70.1%Language:Shell 24.6%Language:Batchfile 5.3%