- 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> |
||
|---|---|---|
| .. | ||
| compact_mask | ||
| count_people_in_zone | ||
| heatmap_and_track | ||
| speed_estimation | ||
| time_in_zone | ||
| tracking | ||
| traffic_analysis | ||
| README.md | ||
README.md
Examples
Here, you'll find end-to-end examples that show how to solve common computer vision problems using Supervision.
For more information and examples, visit our documentation and explore our how-to guides and cookbooks. Join our Discord and meet other Supervision power users!