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
Release history Release notifications | RSS feed
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
Close
Hashes for layout_visualizer-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e9674c51070103c4bf17d05ff13730f222e8ddd196af2a1420ff4dd35b9d21 |
|
MD5 | 522858f1f3a9f8c91917ccef9a128548 |
|
BLAKE2b-256 | ffc1d76f90d5d0028fb0b3039bfd1e06f5bd520665baeb2623fea06d70205e08 |