Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapOcr

极简 Windows 框选 OCR:悬浮球 → 框选 → 百度 PP-OCR tiny → 文本进剪贴板。

使用

  1. 启动后出现蓝色悬浮球(可拖动、边缘吸附)
  2. 左键点击悬浮球 → 拖选屏幕文字区域 → 松手自动识别并复制
  3. 框选中 ESC / 右键 取消
  4. 悬浮球上 右键 退出

无热键、无托盘、无配置文件。

构建

build.bat

产物:x64\Release\SnapOcr.exe43kb

运行时文件

将以下文件放在 exe 同目录

文件 说明
onnxruntime.dll ONNX Runtime
tiny_det.onnx 文本检测
tiny_rec.onnx 文本识别
ppocr_keys.txt 字符字典

源码

文件 作用
main.cpp 悬浮球、框选、抓屏、剪贴板、Toast
ocr.cpp / ocr.h PP-OCR tiny
include/onnxruntime_c_api.h ORT C API

要求

  • Windows 10+
  • Visual Studio 2026+(工具集 v145 / MSVC)
  • x64

致谢

许可

Apache License 2.0

About

极简 Windows 框选 OCR:悬浮球 → 框选 → 百度 PP-OCR tiny → 文本进剪贴板。

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages