项目作者: rokibulislaam

项目描述 :
OCR from clipboard to clipboard (process image from clipboard and copy the text to clipboard again) using opencv, tesseract-ocr
高级语言: PowerShell
项目地址: git://github.com/rokibulislaam/clipboard_ocr.git
创建时间: 2020-11-22T17:23:38Z
项目社区:https://github.com/rokibulislaam/clipboard_ocr

开源协议:

下载


clipboard_ocr

Convert a screenshot to text directly from clipboard (tested on Windows)

How it works

The program continuously listens to keyboard hotkey event, when pressed it copies the image from clipboard and processes using OpenCV and applies tesseract OCR and copies the text result to clipboard again. The default hotkey is ctrl + shift + g.

Dependencies

  • pillow
  • keyboard
  • pytesseract
  • opencv-python
  • numpy
  • pandas
  • pyperclip

Getting Started

  1. Download & install Tesseract-OCR binary or compile it: https://tesseract-ocr.github.io/tessdoc/Downloads.html
  1. Clone the repository
    1. git clone https://github.com/rokibulislaam/clipboard_ocr.git
  2. cd into clipboard-ocr
    1. cd clipboard-ocr
  3. Install pipenv (if you do not have it installed)
    1. pip install pipenv
  4. Install the dependencies
    1. pipenv install
  5. Start pipenv shell
    1. pipenv shell
  6. Run the program in python
    1. python main.py

    Demo

    A working demo