All Projects → ianzhao05 → Textshot

ianzhao05 / Textshot

Licence: mit
Python tool for grabbing text via screenshot

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects
script
160 projects

Projects that are alternatives of or similar to Textshot

Tesseract
Bindings to Tesseract OCR engine for R
Stars: ✭ 192 (-83.49%)
Mutual labels:  ocr, tesseract, tesseract-ocr
nimtesseract
A Tesseract OCR wrapper for Nim
Stars: ✭ 23 (-98.02%)
Mutual labels:  ocr, tesseract, ocr-recognition
Image2text
📋 Python wrapper to grab text from images and save as text files using Tesseract Engine
Stars: ✭ 243 (-79.11%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Tesseract Ocr for windows
Visual Studio Projects for Tessearct and dependencies
Stars: ✭ 122 (-89.51%)
Mutual labels:  ocr, tesseract, tesseract-ocr
breach-protocol-autosolver
Solve breach protocol minigame in second(s). Windows/Linux/GeForce Now/Google Stadia. Every language.
Stars: ✭ 28 (-97.59%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Tesseract4android
Fork of tess-two rewritten from scratch to support latest version of Tesseract OCR.
Stars: ✭ 148 (-87.27%)
Mutual labels:  ocr, tesseract, tesseract-ocr
How-to-use-tesseract-ocr-4.0-with-csharp
How to use Tesseract OCR 4.0 with C#
Stars: ✭ 60 (-94.84%)
Mutual labels:  ocr, tesseract, tesseract-ocr
receipt-manager-app
Receipt parser application written in dart.
Stars: ✭ 140 (-87.96%)
Mutual labels:  ocr, tesseract-ocr, ocr-recognition
TesseractStudio.Net
A free Windows graphical interface to the Tesseract 4.0 OCR engine.
Stars: ✭ 38 (-96.73%)
Mutual labels:  ocr, tesseract, tesseract-ocr
IdCardRecognition
Android id card recognition based on OCR. 安卓基于OCR的身份证识别。
Stars: ✭ 35 (-96.99%)
Mutual labels:  ocr, tesseract, ocr-recognition
Aadhaar Card Ocr
Extract text information from Aadhaar Card using tesseract-ocr 😎
Stars: ✭ 112 (-90.37%)
Mutual labels:  ocr, tesseract, tesseract-ocr
React Native Tesseract Ocr
Tesseract OCR wrapper for React Native
Stars: ✭ 384 (-66.98%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Tesseract
This package contains an OCR engine - libtesseract and a command line program - tesseract. Tesseract 4 adds a new neural net (LSTM) based OCR engine which is focused on line recognition, but also still supports the legacy Tesseract OCR engine of Tesseract 3 which works by recognizing character patterns. Compatibility with Tesseract 3 is enabled by using the Legacy OCR Engine mode (--oem 0). It also needs traineddata files which support the legacy engine, for example those from the tessdata repository.
Stars: ✭ 43,199 (+3614.45%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Tesseract Macos
Objective C wrapper for the open source OCR Engine Tesseract (macOS)
Stars: ✭ 154 (-86.76%)
Mutual labels:  ocr, screenshot, tesseract
Gosseract
Go package for OCR (Optical Character Recognition), by using Tesseract C++ library
Stars: ✭ 1,622 (+39.47%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Nkocr
🔎📝 This is a module to make specifics OCRs at food products and nutritional tables.
Stars: ✭ 15 (-98.71%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Ccextractor
CCExtractor - Official version maintained by the core team
Stars: ✭ 356 (-69.39%)
Mutual labels:  ocr, tesseract, tesseract-ocr
Easyocr
Java OCR 识别组件(基于Tesseract OCR 引擎)。能自动完成图片清理、识别 CAPTCHA 验证码图片内容的一体化工作。Java Image cleanup, OCR recognition component (based Tesseract OCR engine, automatically cleanup image and identification CAPTCHA verification code picture content).
Stars: ✭ 466 (-59.93%)
Mutual labels:  ocr-recognition, ocr, tesseract
Gimagereader
A Gtk/Qt front-end to tesseract-ocr.
Stars: ✭ 786 (-32.42%)
Mutual labels:  ocr, tesseract-ocr
Tesseract Ocr Scanner
基于Tesseract-OCR实现自动扫描识别手机号
Stars: ✭ 622 (-46.52%)
Mutual labels:  tesseract, tesseract-ocr

TextShot
GitHub stars GitHub forks GitHub license Code style: black

This tool gives users the ability to take a screenshot and copy to the clipboard the text content of the screenshot. Works on Windows, macOS, and most modern Linux distros.

TextShot Demo

Use

Running textshot.py with python/python3 will open an overlay over the screen, where a rectangle can be drawn over the portion of the screen containing the text the user wishes to copy.

An optional command line argument can specify the language. For example, python textshot.py eng+fra will use English as the primary language and French as the secondary language. The default is eng (English). Make sure that the appropriate data files for Tesseract are installed for other languages. A list of all supported languages can be found here.

It is recommended to attach a global hotkey to this tool so you can run it without opening a console and typing in the command.

On Windows, one can accomplish this by using an AutoHotkey script; textshot.ahk contains a sample AHK script that can be used.
On Ubuntu, open the Keyboard Settings, which shows you all the Gnome shortcuts. At the bottom there is a + button to add your own shortcuts. Click it and set the command to /usr/bin/python3 <path-to-textshot.py>. In case you are using a virtual environment, the python3 path above should point to the environment's python3 instead of the global python3.
The process on other operating systems can be found by searching how to run a shell command with a keyboard shortcut.

Installation

  • Install Python 3
  • Clone this repository... git clone https://github.com/ianzhao05/textshot.git
  • ...and cd into it cd textshot
  • (Optional) Create a virtual environment, for example with python -m venv .venv, and activate it
  • Install the required packages with pip install -r requirements.txt
  • Install Google's Tesseract OCR Engine, and ensure that tesseract can be reached from the command line by adding the directory to your system path.
  • python textshot.py

Linux users: If the text shows up correctly in the notification, but you cannot paste it, install xclip (e.g. with sudo apt install xclip).

@rigred has added this to the AUR, so Arch Linux users can install the package textshot-git with their AUR helper. For example, yay -S textshot-git. This may not be up to date, so if you encounter issues, use the normal installation method above.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].