Browse Source

increase min confidence to .5

blakeblackshear 6 years ago
parent
commit
f7c8b742e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      detect_objects.py

+ 1 - 1
detect_objects.py

@@ -66,7 +66,7 @@ def detect_objects(cropped_frame, sess, detection_graph, region_size, region_x_o
     objects = []
     for index, value in enumerate(classes[0]):
         score = scores[0, index]
-        if score > 0.1:
+        if score > 0.5:
             box = boxes[0, index].tolist()
             box[0] = (box[0] * region_size) + region_y_offset
             box[1] = (box[1] * region_size) + region_x_offset