Skip to main content

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

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.1.tar.gz (7.2 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.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bbox_overlay-0.1.1.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

Hashes for bbox_overlay-0.1.1.tar.gz
Algorithm Hash digest
SHA256 878bef0affedbd6aa99846ea7a1fb1b860f7c4b37af4bf32ac53e52cbea45fc8
MD5 0e7bda2235a27012359f57700b37da06
BLAKE2b-256 f5d1e0af3ce7a4ca6fe9001016a95ff52db865e240b855fbb516e3241d338195

See more details on using hashes here.

Provenance

The following attestation bundles were made for bbox_overlay-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: bbox_overlay-0.1.1-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

Hashes for bbox_overlay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9117885b6c9ba550399a14a675cda0591fa9c32a3d6f4d97e4c96788987133b6
MD5 adc327464678e01eabbbe4b8bbf65abb
BLAKE2b-256 a7c970b7abde85be0067b7ee06fc17f7a389261b75547a308b123c95b02eb43d

See more details on using hashes here.

Provenance

The following attestation bundles were made for bbox_overlay-0.1.1-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