Skip to main content

A handy tool for OCRing manga

Project description

OCRMyManga

OCR My Manga is a tool to help you OCR your manga. Utilizing the Google Cloud Vision API, it can automatically detect text in your manga and output it to a text file.

OCRMyManga is written in Python. It is still in development, so there may be bugs.

SINCE THIS TOOL USES THE GCLOUD LIBRARY, YOU WILL NEED TO HAVE A GOOGLE CLOUD ACCOUNT TO USE IT. THIS MAY INCUR MONETARY COSTS FOR LARGE OCR TASKS > 1000 pages

Installation

This tool REQUIRES a Google Cloud Vision API Key. Follow these instructions to get one: https://cloud.google.com/vision/docs/setup

Then, install OCRMyManga from pip with the following command: pip install ocrmymanga

Usage

OCRMyManga is a command line tool. It can be run with the following command: It will ONLY output into pdf format.

ocrmymanga [-h] [INPUT] [-o OUTPUT] [-b] [-c CREDS] [-v]

-h: help -b: batch process -c: credential file for google vision -v: verbose

Permitted file types

OCRMyManga can only OCR the following file types: .png .jpg .jpeg .cbz

Support for other file types may be added in the future.

Cookbook

OCR a single file

ocrmymanga input.jpg -o output.pdf

Batch OCR a directory

ocrmymanga input_dir -o output_dir -b

OCR with a custom credential file

ocrmymanga input.jpg -o output.pdf -c creds.json

(-c will default to credentials.json)

Github Link

https://github.com/D0rkKnight/OCRMyManga

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

ocrmymanga-0.17.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file ocrmymanga-0.17.tar.gz.

File metadata

  • Download URL: ocrmymanga-0.17.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for ocrmymanga-0.17.tar.gz
Algorithm Hash digest
SHA256 11dd77e32f9e95f76f1b2564198c458a7b075ffff4130c2bdaffb7f21326567a
MD5 20598538987a93aa7cb50fee109cc79b
BLAKE2b-256 6fba3a3cacb8f3b07e791e8ccf7437833240212658368c9b809b9d6b79fbdd90

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