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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bbox_align-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d26800352ba3aca432b1a7b44bc81045220bf5ff5d3b466b2bdf84be50db2c1e
MD5 51d3681aee06b6574d993c5d5c4def28
BLAKE2b-256 8843a02fee9374d5b43f3909dc1808a6cb1025503d00b57cf67cfbbe39ae1e74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bbox_align-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ea0a5f56133f55d48c71992d9c1aedb001ee3339a591c01f4fd4cb53540cca
MD5 0f990b383a507f660ea0505b5236b544
BLAKE2b-256 646c27aeb7b9e673353b11bdc5f7276f196b530e1b02b2db5570862ef884cb4a

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