FastOCR
FastOCR 是一款开源免费的提供在线 OCR 文字识别的桌面工具
支持的 OCR API 后端
- 百度 AI 文字识别服务 https://ai.baidu.com/tech/ocr
- 有道文字识别服务 https://ai.youdao.com/product-ocr-print.s
- 旷视 Face++ 文字识别服务 (Experimental) https://www.faceplusplus.com.cn/general-text-recognition/
- 本地 OCR
特性
- 通用文字识别 / 多个在线 OCR API 支持
- 多语言支持 / 百度
- 高精度接口支持 / 百度
- 识别文字搜索
- 本地 OCR 后端
- 自定义快捷动作
支持操作系统
- Linux X11
- Windows
- macOS (Experimental)
- Linux Wayland (Experimental)
支持的 Wayland 环境 (Linux)
- Gnome Wayland
- KDE Wayland
- Sway
安装
Windows
64 位预编译版,解压即可使用
点击下载 -> Download 解压到安装目录,执行 FastOCR.exe
macOS
理论上支持但无构建环境,打包过程类似 Windows 如下,生成的文件位于项目的 dist 目录下
pip install poetry
poetry update
poetry run pyinstaller build.spec
Arch Linux
稳定版本 https://aur.archlinux.org/packages/fastocr
开发版本 https://aur.archlinux.org/packages/fastocr-git
从 AUR 下载脚本编译或使用你喜欢的 AUR 辅助工具
yay -S fastocr # 使用 yay
pikaur -S fastocr # 使用 pikaur
Nix/NixOS
使用 NixOS CN flakes 或 berberman flakes 安装
nix run github:berberman/flakes#fastocr
通用 (PyPI)
pip install --user fastocr
# Linux 复制 desktop 文件到 ~/.local/share/applications
通用 (手动安装)
python setup.py install
# Linux 复制 desktop 文件到 ~/.local/share/applications
通用 (仅本地开发)
自豪地使用 Poetry 进行开发
poetry install
使用方法
fastocr # 运行
fastocr --help # 查看帮助
DBus (Linux only)
Service name: io.github.brucezhang1993.FastOCR
Object: /io/github/brucezhang1993/FastOCR
方法
| Actions | Arguments | Description |
|---|---|---|
| captureToClipboard | {seconds} {no_copy} | 执行 OCR 捕获到系统剪贴板或触发 dbus 信号 |
| seconds: 延迟执行单位为秒 | ||
| no_copy: 如果为 true 则仅触发 dbus 信号而不复制到系统剪贴板 | ||
| quitApp | -- | 退出应用 |
信号
| Signals | Arguments | Description |
|---|---|---|
| captured | {text} | OCR 识别结果文本会触发此信号 |
| text: 文本识别结果 |
贡献
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.
License
LGPL3
Metadata
Release files for fastocr 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastocr-0.3.8.tar.gz | 44.8 kB | Without provenance | Details for fastocr-0.3.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastocr-0.3.8-py3-none-any.whl | Python 3 | none | any | Details for fastocr-0.3.8-py3-none-any.whl |
Total release size: 95.4 kB
Release files / fastocr-0.3.8.tar.gz
| Download URL | fastocr-0.3.8.tar.gz |
|---|---|
| Size | 44.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3e47e12aecdf2147d7bfd6f470141f0b2be052f992c7d4ae3ca27589c4c7c13
|
|
BLAKE2b-256 checksum How to use checksums |
53b5d1f3576392a9db3b306e2243a7f1d42a241326019a6c3947fc903bb1040f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Release files / fastocr-0.3.8-py3-none-any.whl
| Download URL | fastocr-0.3.8-py3-none-any.whl |
|---|---|
| Size | 50.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bf0c4eaa155ddc5a4da0d42bc8c6d3fc3c64a674e33afa37080d62d2108111d
|
|
BLAKE2b-256 checksum How to use checksums |
4dd7c5b630dacaf7cf24db4298a9074468c662eaedfb5305b3d933caffc2dd09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Security for fastocr 0.3.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.