Skip to main content

bbox-overlay

PyPI Python CI License

Minimal Python overlay to draw bounding boxes on top of the screen (Linux/X11).

Highlights

  • Lightweight X11 overlay using thin border windows.
  • Optional labels and color control.
  • Simple CLI with JSON input.

Overlay example

Requirements

  • Linux/X11 (or WSLg/XWayland on Windows 11).
  • Tkinter (e.g. sudo apt-get install python3-tk on 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 --timeout is 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 label field in each box object.
  • Colors accept Tk names (red, cyan) or hex (#RRGGBB).

Development

ruff check .
ruff format .
mypy bbox_overlay
pytest

Project links

CLI options

bbox-overlay --help

Metadata

Release files for bbox-overlay 0.1.3

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

Source distribution (sdist)

Source distribution for bbox-overlay 0.1.3
File Size Uploaded
bbox_overlay-0.1.3.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bbox-overlay 0.1.3
File Interpreter ABI Platform
bbox_overlay-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / bbox_overlay-0.1.3.tar.gz

Download URL bbox_overlay-0.1.3.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
39ce27815e12c2f564a4e12c018d15ffee09727d487e63c1fa8fcbbd335e1acf
BLAKE2b-256 checksum
How to use checksums
8c6a7bd081c6aacdc7ee1e78ec98dd98d19814902458487e62fd001307d818ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 20, 2025.

Transparency log

Release files / bbox_overlay-0.1.3-py3-none-any.whl

Download URL bbox_overlay-0.1.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
388986ced6d748a0ac03eb50e3f38e9fb43c111ccfd319e9a07a08160d8ced7a
BLAKE2b-256 checksum
How to use checksums
e649d52523bd426f402363aaed607462bf93f4ad8b90f30080c022bf4ebc302a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 20, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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