Minimal Python overlay to draw bounding boxes on top of the screen (Linux/X11).
- Lightweight X11 overlay using thin border windows.
- Optional labels and color control.
- Simple CLI with JSON input.
- Linux/X11 (or WSLg/XWayland on Windows 11).
- Tkinter (e.g.
sudo apt-get install python3-tkon Ubuntu).
python3 -m pip install bbox-overlaypython3 -m pip install -e .[dev]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--timeoutis 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
labelfield in each box object. - Colors accept Tk names (
red,cyan) or hex (#RRGGBB).
ruff check .
ruff format .
mypy bbox_overlay
pytest- Source: https://github.com/albertoburgosplaza/bbox-overlay
- Issues: https://github.com/albertoburgosplaza/bbox-overlay/issues
- Changelog: https://github.com/albertoburgosplaza/bbox-overlay/blob/main/CHANGELOG.md
bbox-overlay --help