Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rapid-orientation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rapid-orientation

Tools for classifying the direction of images containing text based ONNXRuntime.

  • 0.0.9
  • PyPI
  • Socket score

Maintainers
1

rapid-orientation

PyPI

1. Install package by pypi.

$ pip install rapid-orientation

2. Run by script.

  • RapidOrientation has the default model_path value, you can set the different value of model_path to use different models, e.g. orientation_engine = RapidOrientation(model_path='rapid_orientation.onnx')
  • See details, for README_Layout .
  • 📌 layout.png source: link
from rapid_orientation import RapidOrientation

orientation_engine = RapidOrientation()

with open('test_images/layout.png', 'rb') as f:
    img = f.read()
orientation_res, elapse = orientation_engine(img)
print(orientation_res)

3. Run by command line.

  • Usage:
    $ rapid_orientation -h
    usage: rapid_orientation [-h] -img IMG_PATH [-m MODEL_PATH]
    
    optional arguments:
    -h, --help            show this help message and exit
    -img IMG_PATH, --img_path IMG_PATH
                        Path to image for layout.
    -m MODEL_PATH, --model_path MODEL_PATH
                        The model path used for inference
    
  • Example:
    $ rapid_orientation -img layout.png
    

4. Result.

# Return str, four types::0 | 90 | 180 | 270

Keywords

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc