layout-visualizer
Easily draw layout BBoxes
Features
- Easily draw labeled BBoxes
- Draw labels without overlap
- Low dependency
- Only depends on
PillowandPydantic
- 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)
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| layout_visualizer-1.0.1.tar.gz | 3.3 MB | Without provenance | Details for layout_visualizer-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| layout_visualizer-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for layout_visualizer-1.0.1-py3-none-any.whl |
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
|
Security for layout-visualizer 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.