极简 Windows 框选 OCR:悬浮球 → 框选 → 百度 PP-OCR tiny → 文本进剪贴板。
- 启动后出现蓝色悬浮球(可拖动、边缘吸附)
- 左键点击悬浮球 → 拖选屏幕文字区域 → 松手自动识别并复制
- 框选中 ESC / 右键 取消
- 悬浮球上 右键 退出
无热键、无托盘、无配置文件。
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
- PaddleOCR — 百度飞桨 OCR 模型
- ONNX Runtime — 微软高性能推理引擎