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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bbox_align-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f620c89716ff14fc4aa98699a8ccb8fc65529086e5c273483d4ceb260239cd93
MD5 ad1d48cfae9486caa365a70d03d2697a
BLAKE2b-256 94bca276fe994cac2540c162ced4102399774ed3214f42cefecc2b8c14ab8479

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bbox_align-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42312ad0fd0ac71593ba84cd19ca8e74500ddadf8c2c40f5e509414156e89e64
MD5 c561c9f674d4f48af9d0ccce80ea65b7
BLAKE2b-256 65e9678d4ab443b95b891fce79e3ca4b482b4dcc8704225d948419adcaa2fae5

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