Abijith commited on
Commit
b7a783f
1 Parent(s): 2aab4d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):