Skip to main content

Optical character recognition for Japanese text, with the main focus being Japanese manga.

Project description

Manga OCR Pipe

A lightweight CLI tool that is based on the excellent Manga OCR project by Kha White.

It reads images from stdin, performs OCR, and writes the recognized text to stdout.

Examples

The beauty of Manga OCR Pipe, is that you can use whatever screenshot utility and clipboard manager you want. You can even send it to another tool if you wish.

Hyprshot

hyprshot -m region -s -r _ | mocr | wl-copy

Spectacle

spectacle -r -o ~/Pictures/Screenshots/ocr.png && mocr < ~/Pictures/Screenshots/ocr.png | wl-copy

From file

mocr < ~/Pictures/Screenshots/ocr.png | wl-copy

With notification

... && notify-send "OCR Complete"

Features

  • Read images directly from stdin
  • Write recognized text to stdout
  • Fast repeated OCR using a persistent daemon
  • Simple Unix-friendly interface
  • Works well with any screenshot tools and clipboard utilities
  • Automatically frees memory in case of inactivity

Installation

Commands

mocr

Reads an image from standard input and prints the recognized Japanese text to standard output.

mocrd

Starts the background OCR daemon manually. Normally, this does not need to be started explicitly because mocr launches it automatically when needed.

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

manga_ocr_pipe-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manga_ocr_pipe-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file manga_ocr_pipe-1.0.0.tar.gz.

File metadata

  • Download URL: manga_ocr_pipe-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for manga_ocr_pipe-1.0.0.tar.gz
Algorithm Hash digest
SHA256 949287d99d16a648c33305456cd40b1d66b04f3ceb6a7f19987c87af621cf88d
MD5 06074901ac7c6a251a6072bfa02589a3
BLAKE2b-256 c3909c8c774b0a3e70f987ea4e04764ab4074d99197a5e5a6fd0c883984f79ba

See more details on using hashes here.

File details

Details for the file manga_ocr_pipe-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: manga_ocr_pipe-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for manga_ocr_pipe-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c7019d7980a73d65a3177718461c879be6bbb99bc45e67b761d8518f0e6f00c
MD5 d261482257931b783d889bee79c54f78
BLAKE2b-256 d8550abf0c45e522aa711d0e02f4a0419958889c0f4acb5fb7b54c4da3737e2b

See more details on using hashes here.

Supported by

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