Simple screen overlay for drawing bounding boxes
Project description
bbox-overlay
Minimal Python overlay to draw bounding boxes on top of the screen (Linux/X11).
Requirements
- Linux/X11 (or WSLg/XWayland on Windows 11).
- Tkinter (e.g.
sudo apt-get install python3-tkon Ubuntu).
Install
PyPI
python3 -m pip install bbox-overlay
Editable (dev)
python3 -m pip install -e .[dev]
Usage
bbox-overlay --boxes '[{"x":100,"y":100,"w":200,"h":150,"label":"cat"}]'
- Close with
Esc,Ctrl+C, or any key in the console (when--timeoutis omitted). - Coordinates are pixel-based, origin at top-left.
- The overlay uses thin border windows per box to avoid fullscreen opacity on X11.
- Labels are optional and use the
labelfield in each box object. - Colors accept Tk names (
red,cyan) or hex (#RRGGBB).
Development
ruff check .
ruff format .
mypy bbox_overlay
pytest
CLI options
bbox-overlay --help
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bbox_overlay-0.1.2.tar.gz.
File metadata
- Download URL: bbox_overlay-0.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
447eba2d234b1a007ac52a42b1b90a7a1a00e170c446e8b73a824d3d74fa03b7
|
|
| MD5 |
d5e691a7c5c68dd97d8b8a888b480866
|
|
| BLAKE2b-256 |
08f88c28c61f69649b49021905920d236b88c4f434281de32e92dc07449070af
|
Provenance
The following attestation bundles were made for bbox_overlay-0.1.2.tar.gz:
Publisher:
release.yml on albertoburgosplaza/bbox-overlay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bbox_overlay-0.1.2.tar.gz -
Subject digest:
447eba2d234b1a007ac52a42b1b90a7a1a00e170c446e8b73a824d3d74fa03b7 - Sigstore transparency entry: 774269607
- Sigstore integration time:
-
Permalink:
albertoburgosplaza/bbox-overlay@c108779373450a3feeb0985118184b557e57a13b -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/albertoburgosplaza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c108779373450a3feeb0985118184b557e57a13b -
Trigger Event:
push
-
Statement type:
File details
Details for the file bbox_overlay-0.1.2-py3-none-any.whl.
File metadata
- Download URL: bbox_overlay-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4db2e53b35091f31408a06eb8075bb95635ebb9d0a8532a9b3be790287f5bebb
|
|
| MD5 |
e58788675dc18b76afe14b3c1e6ffe9b
|
|
| BLAKE2b-256 |
ae099b1e62806268307063644322eccef6e932b2a3630fd5909fc153faf525ff
|
Provenance
The following attestation bundles were made for bbox_overlay-0.1.2-py3-none-any.whl:
Publisher:
release.yml on albertoburgosplaza/bbox-overlay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bbox_overlay-0.1.2-py3-none-any.whl -
Subject digest:
4db2e53b35091f31408a06eb8075bb95635ebb9d0a8532a9b3be790287f5bebb - Sigstore transparency entry: 774269609
- Sigstore integration time:
-
Permalink:
albertoburgosplaza/bbox-overlay@c108779373450a3feeb0985118184b557e57a13b -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/albertoburgosplaza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c108779373450a3feeb0985118184b557e57a13b -
Trigger Event:
push
-
Statement type: