Skip to main content

FastOCR is a desktop application for OCR API.

Project description

FastOCR

GitHub top language GitHub GitHub version PyPI

FastOCR 是一款开源免费的提供在线 OCR 文字识别的桌面工具

支持的 OCR API 后端

特性

  • 通用文字识别 / 多个在线 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 flakesberberman flakes 安装

nix run github:berberman/flakes#fastocr

通用 (PyPI)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastocr-0.3.7.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

fastocr-0.3.7-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file fastocr-0.3.7.tar.gz.

File metadata

  • Download URL: fastocr-0.3.7.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.12 Linux/5.13.0-1022-azure

File hashes

Hashes for fastocr-0.3.7.tar.gz
Algorithm Hash digest
SHA256 8cebd698a5b0ac17eaff6f97a8a69a79abdf367ece01cb27e9b07a6427cdba43
MD5 e7fb2cd5ba9e0429eb758a36a68fbc4c
BLAKE2b-256 5293522b048155884f0ccc51b37eeb0b59076e10eb280fbee5d84a121ea3117f

See more details on using hashes here.

File details

Details for the file fastocr-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: fastocr-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.12 Linux/5.13.0-1022-azure

File hashes

Hashes for fastocr-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 229b9a0f8944942818be3b33ae5eb098af278ee9f6beabf23a0ff4946c9c1a49
MD5 388fdc30477d0aaf7262561c80f34d01
BLAKE2b-256 1950abae7113f6a4c00ffd7660c82c9d0b710339ab1a28a1c042ebdf36b01488

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page