Spaces:
Runtime error
Runtime error
Commit
·
9bcdb1d
1
Parent(s):
ef7e2aa
Update track_detection.py
Browse files
scripts/track_detection.py
CHANGED
@@ -97,10 +97,10 @@ def track(in_loc_dir, out_loc_dir, metadata_path, seq, config, verbose):
|
|
97 |
image_meter_height = -1
|
98 |
with open(metadata_path, 'r') as f:
|
99 |
json_object = json.loads(f.read())
|
100 |
-
for
|
101 |
-
if
|
102 |
-
image_meter_width =
|
103 |
-
image_meter_height =
|
104 |
|
105 |
print(metadata_path)
|
106 |
print(image_meter_height)
|
|
|
97 |
image_meter_height = -1
|
98 |
with open(metadata_path, 'r') as f:
|
99 |
json_object = json.loads(f.read())
|
100 |
+
for sequence in json_object:
|
101 |
+
if sequence['clip_name'] == seq:
|
102 |
+
image_meter_width = sequence['x_meter_stop'] - sequence['x_meter_start']
|
103 |
+
image_meter_height = sequence['y_meter_stop'] - sequence['y_meter_start']
|
104 |
|
105 |
print(metadata_path)
|
106 |
print(image_meter_height)
|