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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bbox_align-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 53deb9af3f4e767cbc4dfa6192b8ce5f10c7f01acf53eb03a28a706ff021e0d6
MD5 b74189610f83fe9ac36282c5c7e85a83
BLAKE2b-256 e27da5b1c7af597f8877396dcd082baaf0d162ff2048a0a1a4d37f6cd5d62a28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bbox_align-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2790d78cdf477a4d3b4efca33b3070eb33f40644a1b2f801897994f149e8c4f6
MD5 b0594ede6df930bd0ab1f06787d3be7b
BLAKE2b-256 b59b93e335084188b2ce0298e33ffa5f8d949eaedf6125cb8f7eaa11f78bf90c

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