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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bbox_overlay-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 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.0.tar.gz
Algorithm Hash digest
SHA256 0e9f497dda092f8b37926a0bb68ee0eb790c45367826b1eb0395959918c14eb0
MD5 6292714e2d9712acbc7696c8561c7815
BLAKE2b-256 d6f2429c0fc2fa276174d4faccdde9df122c6734e2a7ed3ad91187958936f3b6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: bbox_overlay-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b40d5e991547e57f991a5c0a724a4515b1e4881f7bb6113810da14d95fd9657f
MD5 813a4b560761b47d27ac5e80b7d470a0
BLAKE2b-256 2cb11b52a2127055f2865057c1d7e2c4538193bbb6073372bb6c4bcaff1c22e4

See more details on using hashes here.

Provenance

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