Skip to main content

RapidLayout

Project description

rapid-layout Package

1. Install package by pypi.

$ pip install rapidocr-layout

2. Run by script.

import cv2
from rapid_layout import RapidLayout

layout_engine = RapidLayout()

img = cv2.imread('test_images/ch.png')

layout_res, elapse = layout_engine(img)
print(layout_res)

3. Run by command line.

$ rapid_layout --img_path test_images/layout.png

4. Result.

  • Return value.
    [
    {'bbox': array([321.4160495, 91.53214898, 562.06141263, 199.85522603]), 'label': 'text'},
    {'bbox': array([58.67292211, 107.29000663, 300.25448676, 199.68142]), 'label': 'table_caption'}
    ]
    
  • Visualize result.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rapid_layout-0.0.9-py3-none-any.whl (6.8 MB view details)

Uploaded Python 3

File details

Details for the file rapid_layout-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for rapid_layout-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3bffa4d0af0b9417416a0f2075a4095d21b65f226d7f9f51845e3d56842522c2
MD5 60a68869ca93bf87cea2b07eaa658888
BLAKE2b-256 65e68d3db55b62ace8534f3e25e9b36e4b13fc6dff9285ed0d22f478f6d34d87

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