suvadityamuk
commited on
Commit
•
fd4e202
1
Parent(s):
471c9f3
lowered confidence threshold
Browse filesSigned-off-by: Suvaditya Mukherjee <suvadityamuk@gmail.com>
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.
|
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]
|