suvadityamuk commited on
Commit
fd4e202
1 Parent(s): 471c9f3

lowered confidence threshold

Browse files

Signed-off-by: Suvaditya Mukherjee <suvadityamuk@gmail.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def run_inference(myImage):
113
  detections = detector.forward()
114
  for i in range(0, detections.shape[2]):
115
  confidence = detections[0, 0, i, 2]
116
- if confidence > 0.5:
117
  box = detections[0, 0, i, 3:7] * np.array([w, h, w, h])
118
  (startX, startY, endX, endY) = box.astype("int")
119
  face = myImage[startY:endY, startX:endX]
 
113
  detections = detector.forward()
114
  for i in range(0, detections.shape[2]):
115
  confidence = detections[0, 0, i, 2]
116
+ if confidence > 0.15:
117
  box = detections[0, 0, i, 3:7] * np.array([w, h, w, h])
118
  (startX, startY, endX, endY) = box.astype("int")
119
  face = myImage[startY:endY, startX:endX]