Skip to content

JoJoJoJoJoJoJo/screen_capture_ocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

截图并自动识别文字的OCR工具

OCR调用来自项目chineseocr_lite

环境

  • python3.7

  • windows

使用方法

  1. 克隆代码
git clone https://github.com/JoJoJoJoJoJoJo/screen_capture_ocr.git
  1. 设置截图快捷键(默认为ALT-SHIFT-P)

打开目录,编辑config.py SCREEN_CAPTURE_KEY

  1. 安装依赖
pip install -r requirements.txt
  1. 启动
python main.py
  1. 使用快捷键截图并自动识别,识别结果上点击即可自动复制识别文字

Demo

原始截图

识别结果

红色框体表示OCR区域,在上面点击即可显示识别结果(白底红字)并自动复制

(此处应有gif)

已知的问题

  • 需要TK窗口获得焦点才能监听到快捷键

TODO

  • 最小化托盘运行, 快捷键唤醒
  • linux / macos 系统支持
  • 提高识别精度
  • Release安装包

About

Screen capture and OCR, then copy to clipboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10

Languages