Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ vehicle_threshold = 0.5
|
|
28 |
def bbox_normalization(bbox, width, height):
|
29 |
height_coeff = height/352
|
30 |
width_coeff = width/352
|
31 |
-
normalized_bbox = [bbox[0]*width_coeff, bbox[1]*height_coeff,
|
32 |
-
bbox[2]*width_coeff, bbox[3]*height_coeff]
|
33 |
return normalized_bbox
|
34 |
|
35 |
def bbox_area(bbox):
|
|
|
28 |
def bbox_normalization(bbox, width, height):
|
29 |
height_coeff = height/352
|
30 |
width_coeff = width/352
|
31 |
+
normalized_bbox = [[bbox[0]*width_coeff, bbox[1]*height_coeff],
|
32 |
+
[bbox[2]*width_coeff, bbox[3]*height_coeff]]
|
33 |
return normalized_bbox
|
34 |
|
35 |
def bbox_area(bbox):
|