Jirka Borovec
bcbe8de1e4
chore(pre-commit): remove unnecessary exclude rule for changelog... ( #2452 )
...
* chore(pre-commit): remove unnecessary exclude rule for changelog and deprecated docs
* docs(changelog): reformat code blocks for consistency and clarity
* docs(changelog): reformat and align code blocks for consistent indentation and readability
* chore(pre-commit): update mdformat hooks to include gfm and frontmatter extensions
* chore(pre-commit): split mdformat hook into gfm and mkdocs variants
* docs(changelog): fix nested code fences breaking mdformat-mkdocs
* fix(pre_commit): 🎨 auto format pre-commit hooks
---------
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-21 19:33:35 +02:00
Jirka Borovec
16814acff3
feat(utils): add `TkImageWindow` to unblock switch to `opencv-python-headless` ( #2320 )
...
- 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>
2026-07-15 15:06:55 +02:00
Jirka Borovec
0a95bae8a8
chore: bump minimum Python to 3.10 ( #2260 )
...
- Drop Python 3.9 from CI test matrix
- requires-python = ">=3.10" in pyproject.toml
- ruff target-version py39 → py310
- mypy python_version 3.9 → 3.10
- Remove Python 3.9 classifier
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-29 14:45:30 +02:00
Jirka Borovec
09b21992c5
chore: port example typing refinements ( #2358 )
...
Co-authored-by: Codex <codex@openai.com>
2026-06-27 09:08:54 +02:00
Jirka Borovec
9faa4f6133
chore: update `mdformat` hook arguments to disable wrapping ( #2307 )
...
* chore: update `mdformat` hook arguments to disable wrapping
* fix(pre_commit): 🎨 auto format pre-commit hooks
* Apply suggestions from code review
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-09 16:15:05 +02:00
Jirka Borovec
d925cdf666
Standardize examples and error messages with `uv` CLI for virtual env. and dependency installation ( #2129 )
2026-02-03 13:59:35 +01:00
Jirka Borovec
66c49b2e80
examples/traffic_analysis: improve CLI argument handling ( #2059 )
...
* refactor(traffic_analysis): improve CLI argument handling
* fix(pre_commit): 🎨 auto format pre-commit hooks
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-02-03 12:56:56 +01:00
pre-commit-ci[bot]
3abb6245c1
chore(pre_commit): ⬆ pre_commit autoupdate ( #2075 )
...
* chore(pre_commit): ⬆ pre_commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.14.10 → v0.14.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.14.11 )
- [github.com/executablebooks/mdformat: 0.7.17 → 1.0.0](https://github.com/executablebooks/mdformat/compare/0.7.17...1.0.0 )
* fix(pre_commit): 🎨 auto format pre-commit hooks
* Apply suggestions from code review
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: jirka <jirka.borovec@seznam.cz>
2026-01-12 20:15:27 +01:00
Onuralp SEZER
212e69b5a4
refactor: 🧪 type hints to use the new union syntax for optional types
...
- Updated type hints across multiple files to replace `Optional[X]` with `X | None` for better readability and consistency.
- Added `from __future__ import annotations` to files to enable postponed evaluation of type annotations.
- Adjusted function signatures and variable types in various modules including `polygon_zone.py`, `smoother.py`, `transformers.py`, `vlm.py`, and others.
- Ensured compatibility with Python 3.10+ type hinting features.
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2025-07-15 16:36:01 +03:00
Onuralp SEZER
2adb64b949
chore: 🧹 update requirements files to remove version constraints
2025-07-15 12:15:55 +02:00
Onuralp SEZER
00fab37e58
feat: 🚀 dropping python 3.8 support and upgrade all codes to python3.9 syntax style as min
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2025-07-14 20:12:11 +03:00
LinasKo
f3d27d8381
Cap ultralytics version
2024-12-05 17:23:05 +02:00
Onuralp SEZER
a57f4f22ae
docs: 📝 git clone examples with single branch and single depth added into example docs
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2024-11-19 17:59:58 +03:00
Onuralp SEZER
78f17cba2e
chore: 🧹 clean up documentation and improve formatting
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2024-09-27 14:18:26 +03:00
Onuralp SEZER
1f0c278c4e
refactor: ✨ ruff rules enabled and fixed and code refactor made
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2024-09-19 10:35:30 +03:00
LinasKo
28f83b18f9
Deprecate BoundingBoxAnnotator, rename to BoxAnnotator
2024-07-12 18:18:50 +03:00
SkalskiP
ffda94b1e5
pin inference version to 0.9.17
2024-04-30 16:06:02 +02:00
SkalskiP
d4b1375db7
pin inference version
2024-04-29 21:46:07 +02:00
SkalskiP
a45341ce63
final cleanup; setting `supervision>=0.20.0` in `requirements.txt` and refactoring stream processing scripts
2024-04-24 22:41:59 +02:00
pre-commit-ci[bot]
d531c59f85
fix(pre_commit): 🎨 auto format pre-commit hooks
2024-04-13 05:39:05 +00:00
Jeslin P James
15b1473c2f
Updated examples to remove frame_resolution_wh from PolygonZone
2024-04-13 10:28:11 +05:30
SkalskiP
8a2abe72ae
utils refactor
2024-03-20 19:37:03 +01:00
Onuralp SEZER
56825423dc
fix: 🐞 update PolygonZone test and update traffic-analysis depricated codes are updated
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2024-03-02 03:25:59 +03:00
Kokouvi
226090aeaf
Update inference_example.py
...
formattig
2024-01-30 11:20:55 +00:00
Kokouvi
0603527bb2
Update inference_example.py
...
fix formatting
2024-01-30 11:12:54 +00:00
Kokouvi
c781a8efa1
Update ultralytics_example.py
...
adding else statement to return an empty array when there is no detections
2024-01-30 10:58:16 +00:00
Kokouvi
82aa4bb857
Update inference_example.py
...
Formatting
2024-01-30 10:55:34 +00:00
pre-commit-ci[bot]
6c98e211e5
fix(pre_commit): 🎨 auto format pre-commit hooks
2024-01-30 10:54:00 +00:00
Kokouvi
1e482e172f
Update inference_example.py
...
Adding else statement
2024-01-30 10:53:40 +00:00
bright1205
2d494893fc
Refactor class DetectionsManager to handle empty detections_all array
2024-01-28 16:29:11 +00:00
pre-commit-ci[bot]
e3529436e1
fix(pre_commit): 🎨 auto format pre-commit hooks
2024-01-17 11:14:03 +00:00
SkalskiP
99d1b6d130
ready for review
2024-01-17 12:11:31 +01:00
pre-commit-ci[bot]
4ae9131f0a
fix(pre_commit): 🎨 auto format pre-commit hooks
2024-01-08 12:03:31 +00:00
SkalskiP
5df9730b3f
🚗 💨 💨 💨 speed estimation example initial commit
2024-01-04 20:08:01 +01:00
pre-commit-ci[bot]
5b174ea7ec
fix(pre_commit): 🎨 auto format pre-commit hooks
2024-01-04 13:58:44 +00:00
SkalskiP
b5f9cdf90e
Merge remote-tracking branch 'origin/feature/from-roboflow-base-model' into feature/from-roboflow-base-model
...
# Conflicts:
# examples/traffic_analysis/README.md
2024-01-04 14:58:30 +01:00
SkalskiP
0acd408f29
traffic analysis example cleanup
2024-01-04 14:56:56 +01:00
pre-commit-ci[bot]
26829070f3
fix(pre_commit): 🎨 auto format pre-commit hooks
2024-01-04 13:34:49 +00:00
SkalskiP
9c1f06046d
traffic analysis example cleanup
2024-01-04 14:34:36 +01:00
Paul
f942d89881
Added inference examples throughout the docs.
2023-12-22 11:09:39 -07:00
Paul
362e9f7b43
Address some review feedback:
...
- separated args list in examples between inference and ultralytics
- added depricated decorator to from_roboflow
- use `with supress(...)` for parsing inference response models instead of checking instance type (no more pydantic dep)
- a few other README changes
2023-12-18 06:59:59 -07:00
pre-commit-ci[bot]
109ff2db6c
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-12-15 16:42:53 +00:00
Paul
af5861557b
Added examples using `inference` to each example directory and updated requirements and READMEs accordingly.
2023-12-15 09:38:05 -07:00
SkalskiP
770d7893c6
Final `README.md` updates
2023-12-13 15:45:14 +01:00
pre-commit-ci[bot]
697704354a
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-12-13 13:46:32 +00:00
SkalskiP
5f7ad5f4d3
Update `README.md` in example projects.
2023-12-13 14:45:17 +01:00
pre-commit-ci[bot]
f7a3a408fa
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-12-13 13:29:42 +00:00
SkalskiP
852eec4c6a
Initial commit 🎉
2023-12-13 14:28:16 +01:00
Onuralp SEZER
180fdf2168
fix(examples): 🐞 tracking LabelAnnotator and traffic_analysis deps fixed
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2023-12-08 02:56:23 +03:00
Hugo Dutra
b77bab39de
Rename script.sh to setup.sh
...
changing the file name.
2023-10-24 12:37:52 -03:00