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.2.tar.gz (9.1 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.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bbox_align-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0763840a32631a3914de17453569fda59818f239acc6fa3d65d0f13569a11da7
MD5 5efb8ae6424f0a9aa93ffa63adf124fe
BLAKE2b-256 280153b4d97e3f7c44c465762f6280e68a69d459c22b44f2728c32c435a4180a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bbox_align-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27593952ed2fad41e2d22dfc458d7ec3c329943acde8dfc051397e9dd4cbe755
MD5 acbf72331b0e30e8097ef2d918b3e857
BLAKE2b-256 028e78c71bb6f7ae45d5119f59b13cc306b4c8ed3d961d47379aea6a791aabc8

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