GithubHelp home page GithubHelp logo

scr2ocr's Introduction

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

scr2ocr's People

Contributors

epassaro avatar

Watchers

 avatar

scr2ocr's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.