OCR Shell is a convenient command-line tool for quick and easy text extraction from images. Whether you have an image in your clipboard or a saved file, OCR Shell makes it easy to extract text without the hassle of manual handling.
- On Windows, you can download an installer from the Tesseract GitHub repository.
- On macOS, you can install Tesseract using Homebrew with the command
brew install tesseract
.
Make sure the tesseract
is found on your executable PATH.
To install OCR Shell, simply run:
pip install ocr-shell
This command will install OCR Shell and all its dependencies.
To extract text from an image in your clipboard, just type:
$ ocr
... text found in the copied image ...
OCR Shell also works with saved images. Just provide the path to the image:
$ ocr ~/Desktop/Screenshot.png
... more text extracted ...
$ python -m unittest discover
..
----------------------------------------------------------------------
Ran 2 tests in 0.407s
OK
Contributions to OCR Shell are welcome! Whether it's bug reports, feature requests, or code contributions, your input is valuable. To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes.
- Push to your branch.
- Submit a pull request.
Please make sure to update tests as appropriate.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Tesseract OCR team for their amazing work.
- Matt King for initial development.
- All contributors who help to improve OCR Shell.