Skip to main content

FastOCR is a desktop application for OCR API.

Project description

FastOCR

GitHub top language GitHub GitHub version PyPI

FastOCR is a desktop application for OCR API.

Supported OCR API

Features

  • 通用文字识别
  • 多语言支持 / Baidu
  • 高精度接口支持 / Baidu

Supported environment

  • Linux X11
  • Windows
  • macOS
  • Linux Wayland (Experimental)

Supported wayland environment

  • Gnome Wayland
  • KDE Wayland
  • Sway

Installation

Arch Linux

Stable version: https://aur.archlinux.org/packages/fastocr

Git version: https://aur.archlinux.org/packages/fastocr-git

Build from AUR or install with your favorite AUR helper.

yay -S fastocr  # Using yay
pikaur -S fastocr  # Using pikaur
# ...

Nix/NixOS

Use NixOS CN flakes or berberman flakes

Run FastOCR

nix run github:berberman/flakes#fastocr

PyPI

fastocr @ PyPI

pip install --user fastocr
# Then copy desktop file to ~/.local/share/applications

Manually

python setup.py install
# Then copy desktop file to ~/.local/share/applications

Development

Proudly use Poetry for developing.

poetry install

Usage

fastocr

DBus

Service name: io.github.brucezhang1993.FastOCR

Object: /io/github/brucezhang1993/FastOCR

Methods

Actions Arguments Description
captureToClipboard {seconds} {no_copy} Capture and OCR to system clipboard or dbus signal
seconds: Delay capture in seconds
no_copy: If true, the result will not be saved in clipboard
quitApp -- Quit app

Signal

Signals Arguments Description
captured {text} OCR result will be sent to this signal
text: OCR result in plain text

Contributing

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.4.tar.gz (39.9 kB view hashes)

Uploaded Source

Built Distribution

fastocr-0.3.4-py3-none-any.whl (43.8 kB view hashes)

Uploaded Python 3

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