Skip to main content

A python library that reorders bounding boxes generated by OCR engines into the correct reading order

Project description

bbox-align (In development)

bbox-align is a Python library that reorders bounding boxes generated by OCR engines into the correct reading order. It aims to group bounding boxes into logical lines (even when documents have folds, irregular spacing, or distortions) and sort them for downstream use in document processing.

Installation

pip install bbox-align

Prereqs: Python 3.8+

Concept

Two bounding boxes are considered inline if the y-coordinate of one box's vertical center lies within the top and bottom bounds of the other box.

parallel

What if the bounding boxes are cross? parallel

Now the bounding boxes are reflected parallel

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

bbox_align-0.1.4.tar.gz (400.8 kB view details)

Uploaded Source

Built Distribution

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

bbox_align-0.1.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file bbox_align-0.1.4.tar.gz.

File metadata

  • Download URL: bbox_align-0.1.4.tar.gz
  • Upload date:
  • Size: 400.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for bbox_align-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7508e7b1865d4399970bc0200c0d3561dcdbd7f0cb2c3cdfea7f77120447c003
MD5 7c2aa280248d8b80899cf2f8e0983353
BLAKE2b-256 532ff21ba62744330698ba576f531ba867d1fa2921ffbccbd278a4e3de0327c4

See more details on using hashes here.

File details

Details for the file bbox_align-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for bbox_align-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 643f49dd48a91dd50ae910ec4bb8f6937927e834f1bea9cc44a00942683055ff
MD5 1d6b0e6e997e68c7df6254c3e2a927cb
BLAKE2b-256 3691cf4095b72ee0bd6966c801f213b1e64f612c42cce8cc53e539c7b521214b

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