23b719w commited on
Commit
17ae86d
·
verified ·
1 Parent(s): a6e3242

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -112,7 +112,7 @@ def predict2(image_np,threshold):
112
  category_index,
113
  use_normalized_coordinates=True,
114
  max_boxes_to_draw=200,
115
- min_score_thresh=float(threshold),
116
  agnostic_mode=False,
117
  line_thickness=2)
118
 
@@ -151,7 +151,7 @@ def video_fn(video_in_filepath):
151
  category_index,
152
  use_normalized_coordinates=True,
153
  max_boxes_to_draw=200,
154
- min_score_thresh=.50 if threshold is not None else 0.40,
155
  agnostic_mode=False,
156
  line_thickness=2)
157
 
 
112
  category_index,
113
  use_normalized_coordinates=True,
114
  max_boxes_to_draw=200,
115
+ min_score_thresh=float(threshold) if threshold is not None else 0.40,
116
  agnostic_mode=False,
117
  line_thickness=2)
118
 
 
151
  category_index,
152
  use_normalized_coordinates=True,
153
  max_boxes_to_draw=200,
154
+ min_score_thresh=.50,
155
  agnostic_mode=False,
156
  line_thickness=2)
157