fix(examples): 🐞 tracking LabelAnnotator and traffic_analysis deps fixed

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER committed 2023-12-08 02:56:23 +03:00
1 parent 2f6195ad5d
commit 180fdf2168
3 files changed
+12 -2

No files matched your search

+10
View File
@@ -9,6 +9,16 @@ detection and Supervision for tracking and annotation.
pip install -r requirements.txt
```
## ⚙️ run
```bash
python script.py \
--source_weights_path yolov8s.pt \
--source_video_path input.mp4 \
--target_video_path tracking_result.mp4
```
## ⚙️ parameters
| parameter | required | description |
+1 -1
View File
@@ -17,7 +17,7 @@ def process_video(
tracker = sv.ByteTrack()
box_annotator = sv.BoundingBoxAnnotator()
label_annotator = sv.LabelAnnotator(classes=model.names)
label_annotator = sv.LabelAnnotator()
frame_generator = sv.get_video_frames_generator(source_path=source_video_path)
video_info = sv.VideoInfo.from_video_path(video_path=source_video_path)
+1 -1
View File
@@ -1,4 +1,4 @@
supervision>=0.15.0rc1
supervision
tqdm
ultralytics
gdown