Skip to main content

Simple screen overlay for drawing bounding boxes

Project description

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

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

bbox_overlay-0.1.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bbox_overlay-0.1.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file bbox_overlay-0.1.3.tar.gz.

File metadata

  • Download URL: bbox_overlay-0.1.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bbox_overlay-0.1.3.tar.gz
Algorithm Hash digest
SHA256 39ce27815e12c2f564a4e12c018d15ffee09727d487e63c1fa8fcbbd335e1acf
MD5 8090cf91ce5c2277c397e4e43e6b759d
BLAKE2b-256 8c6a7bd081c6aacdc7ee1e78ec98dd98d19814902458487e62fd001307d818ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for bbox_overlay-0.1.3.tar.gz:

Publisher: release.yml on albertoburgosplaza/bbox-overlay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bbox_overlay-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: bbox_overlay-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bbox_overlay-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 388986ced6d748a0ac03eb50e3f38e9fb43c111ccfd319e9a07a08160d8ced7a
MD5 426bec0a4d0cb1c26a40281b08c59dfc
BLAKE2b-256 e649d52523bd426f402363aaed607462bf93f4ad8b90f30080c022bf4ebc302a

See more details on using hashes here.

Provenance

The following attestation bundles were made for bbox_overlay-0.1.3-py3-none-any.whl:

Publisher: release.yml on albertoburgosplaza/bbox-overlay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page