Easily draw layout BBoxes
Project description
layout-visualizer
Easily draw layout BBoxes
Features
- Easily draw labeled BBoxes
- Draw labels without overlap
- Low dependency
- Only depends on
Pillow
andPydantic
- Only depends on
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa529bbd21e76c2b00cec6b138db464f6e7f4c49651e025375350a54dcc8d9a |
|
MD5 | 029bd26e2a8614bd47610aa7393f1d34 |
|
BLAKE2b-256 | eaa55138809e7a85c792756dbe5253390006267198e3949a20803cbf4771f81d |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7478e20af35d975175cdc8d2859986d1505397c3b86893c19356c66b3161a1f6 |
|
MD5 | b82300cd5f47333749cd8128aabb5cdb |
|
BLAKE2b-256 | 670b475b689cfe15e735ca83b774e096e174e2add563517d77bc3686e61bacea |