Spaces:
Sleeping
Sleeping
Panagiota Moraiti commited on
Commit ·
6654dec
1
Parent(s): 8d7cbb4
Modify video and code
Browse files- scripts/plot_tracks.py +1 -1
- videos/bear.mp4 +2 -2
scripts/plot_tracks.py
CHANGED
|
@@ -21,7 +21,7 @@ def annotate_image(image, detections, class_names, trace_annotator):
|
|
| 21 |
# Draw box
|
| 22 |
_, width = image.shape[:2]
|
| 23 |
text_size = 2.0*width/1024
|
| 24 |
-
box_thickness = int(6 * width / 1024)
|
| 25 |
text_thickness = max(1, int(6 * width / 1024)) # scale text thickness, min 1
|
| 26 |
|
| 27 |
box_annotator = sv.BoxAnnotator(thickness=box_thickness)
|
|
|
|
| 21 |
# Draw box
|
| 22 |
_, width = image.shape[:2]
|
| 23 |
text_size = 2.0*width/1024
|
| 24 |
+
box_thickness = int(6 * width / 1024) # scale box thickness
|
| 25 |
text_thickness = max(1, int(6 * width / 1024)) # scale text thickness, min 1
|
| 26 |
|
| 27 |
box_annotator = sv.BoxAnnotator(thickness=box_thickness)
|
videos/bear.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c926d94f9caff31cd80fe139cbdc71e39b1d7abbcc4184a2f29a642a443c0f5
|
| 3 |
+
size 296819
|