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.2.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.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for bbox_overlay-0.1.2.tar.gz
Algorithm Hash digest
SHA256 447eba2d234b1a007ac52a42b1b90a7a1a00e170c446e8b73a824d3d74fa03b7
MD5 d5e691a7c5c68dd97d8b8a888b480866
BLAKE2b-256 08f88c28c61f69649b49021905920d236b88c4f434281de32e92dc07449070af

See more details on using hashes here.

Provenance

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

Hashes for bbox_overlay-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4db2e53b35091f31408a06eb8075bb95635ebb9d0a8532a9b3be790287f5bebb
MD5 e58788675dc18b76afe14b3c1e6ffe9b
BLAKE2b-256 ae099b1e62806268307063644322eccef6e932b2a3630fd5909fc153faf525ff

See more details on using hashes here.

Provenance

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