Skip to main content

Easily draw layout BBoxes

Project description

layout-visualizer

PyPI version MIT License

Easily draw layout BBoxes

Features

  • Easily draw labeled BBoxes
    • Draw labels without overlap
  • Low dependency
    • Only depends on Pillow and Pydantic

Installation

pip install layout-visualizer

Getting started

See example notebook for more details

from layout_visualizer import draw_label_bboxes

image = ...  # Load PIL Image
label_bboxes = [
    ("Background Color", (0, 0, 1080, 1080)),
    ("BG Color", (0, 0, 1080, 1080)),
    ("Shadow", (0, 0, 1080, 1080)),
    ("Object 1", (138, 426, 942, 870)),
]
draw_label_bboxes(image, label_bboxes, font_size=20, line_width=5)

(Using psd from Author: xvector / Dictionary: Freepik)

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

layout_visualizer-1.0.1.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

layout_visualizer-1.0.1-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file layout_visualizer-1.0.1.tar.gz.

File metadata

  • Download URL: layout_visualizer-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for layout_visualizer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2aa529bbd21e76c2b00cec6b138db464f6e7f4c49651e025375350a54dcc8d9a
MD5 029bd26e2a8614bd47610aa7393f1d34
BLAKE2b-256 eaa55138809e7a85c792756dbe5253390006267198e3949a20803cbf4771f81d

See more details on using hashes here.

File details

Details for the file layout_visualizer-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: layout_visualizer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for layout_visualizer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7478e20af35d975175cdc8d2859986d1505397c3b86893c19356c66b3161a1f6
MD5 b82300cd5f47333749cd8128aabb5cdb
BLAKE2b-256 670b475b689cfe15e735ca83b774e096e174e2add563517d77bc3686e61bacea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page