Skip to main content

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)

Metadata

Release files for layout-visualizer 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for layout-visualizer 1.0.1
File Size Uploaded
layout_visualizer-1.0.1.tar.gz 3.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for layout-visualizer 1.0.1
File Interpreter ABI Platform
layout_visualizer-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 MB

Release files / layout_visualizer-1.0.1.tar.gz

Download URL layout_visualizer-1.0.1.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2aa529bbd21e76c2b00cec6b138db464f6e7f4c49651e025375350a54dcc8d9a
BLAKE2b-256 checksum
How to use checksums
eaa55138809e7a85c792756dbe5253390006267198e3949a20803cbf4771f81d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

Release files / layout_visualizer-1.0.1-py3-none-any.whl

Download URL layout_visualizer-1.0.1-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7478e20af35d975175cdc8d2859986d1505397c3b86893c19356c66b3161a1f6
BLAKE2b-256 checksum
How to use checksums
670b475b689cfe15e735ca83b774e096e174e2add563517d77bc3686e61bacea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page