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
Onuralp SEZER
07c344e050
fix: 🐛 add missing TraceAnnotator (traffic_analysis fix) and sv version adjusted
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com >
2023-09-29 13:25:26 +03:00
SkalskiP
77190f287c
📍 Pin supervision==0.15.0rc1 in examples/traffic_analysis
2023-09-04 23:08:12 +02:00
Piotr Skalski
c6517de143
Update README.md
2023-09-04 22:36:26 +02:00
pre-commit-ci[bot]
2706304a73
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-09-04 20:18:46 +00:00
SkalskiP
8538c26a22
Add TraceAnnotator, refactor traffic analysis code and improve documentation
...
Introduced TraceAnnotator in the supervision package, refactored traffic analysis script for improved readability, and added quality documentation.
2023-09-04 22:16:37 +02:00
SkalskiP
a0c60fe043
Refactor video stream and traffic analysis process
...
Restructuring the video stream and traffics analysis codes resulted in two new key classes, VideoProcessor, and DetectionsManager. The main aim behind this was to improve code readability and reusability. VideoProcessor class handles video processing as an object, while DetectionsManager is responsible for managing detections and trackings. This change has also led to the removal of the process_frame function, as its functionality is now encapsulated within VideoProcessor class methods. Moreover, the code now identifies zones in and out separately, thereby handling detections more distinctly and efficiently. Lastly, Polygon Zones are no longer differentiated by color.
2023-09-04 17:28:19 +02:00
SkalskiP
01d8b0316c
"Improve detection and annotation in the supervision module
...
The change modifies the polygon zone verification method in `polygon_zone.py` to ensure `self.current_count` always returns an integer, preventing possible type errors in downstream processing. Two classes, `Trace` and `TraceAnnotator`, were added to `annotate.py`, providing functionality for trace annotation during detection. In `script.py`, optimized the trace annotation process by replacing the previous class implementations with the new ones from `annotate.py`, and also cleaned up and simplified polygon zone initiation and frame processing. This provides more efficient and robust video processing and zone-based detection features."
2023-09-03 18:25:28 +02:00