You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ocroy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ocroy

Switch optical character recognition (OCR) tools easily

0.1.2
pipPyPI
Maintainers
1

ocroy

おしろい (O-shi-ro-i)

Ocroy is a wrapper of Japanese(日本語) OCR (optical character recognition) tools.
It allows for easy switching of tools🍰

⚠️Under developing (Currently, planning phase)

Supported tools

  • Google Vision API
  • Tesseract

Setup

Google Vision API

Set up your Google Cloud project and authentication
https://cloud.google.com/vision/docs/ocr#set-up-your-google-cloud-project-and-authentication

Recommended

% uvx --with 'ocroy[google]' ocroy google_api path/to/image --handle-document

Or install this library and dependencies

% pip install 'ocroy[google]'

Then Run:

% ocroy google_api path/to/image --handle-document
% # OR
% python -m ocroy google_api path/to/image --handle-document
% # OR
% python -m ocroy.recognizers.google_vision_api path/to/image --handle-document

Tesseract

Install
https://tesseract-ocr.github.io/tessdoc/Installation.html

Install this library and dependencies

% pip install 'ocroy[tesseract]'

Then Run:

% ocroy tesseract path/to/image
% # OR
% python -m ocroy tesseract path/to/image
% # OR
% python -m ocroy.recognizers.tesseract path/to/image

Keywords

OCR

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.