- Added `sv.ImageWindow`, a Tkinter/Pillow-based desktop image viewer with BGR, grayscale, and BGRA support, keyboard polling, left-click callbacks, context-manager usage, window-state checks, and clean close handling - Added responsive image resizing with optional aspect-ratio preservation and correctly mapped mouse coordinates after scaling or letterboxing - Updated compatible runnable examples to use `sv.ImageWindow`, while retaining OpenCV display APIs for worker-thread streaming examples that are incompatible with Tkinter - Improved `sv.cv2_to_pillow` to support grayscale and BGRA images - Updated webcam guidance to clarify capture ownership and explicit `VideoCapture` cleanup - Fixed image-window event handling to prevent stale keypresses, ghost windows, close-time races, and blocked waits after the window closes --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Codex <codex@openai.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
214 B
214 B
comments, status
| comments | status |
|---|---|
| true | new |
Image Window
:::supervision.utils.image_window.ImageWindow