Increase blur radius

This commit is contained in:
Endre Simo
2019-02-19 13:03:22 +02:00
parent d2340ee5a3
commit 816f47667a

View File

@@ -65,7 +65,7 @@ while(True):
if dets is not None:
for det in dets:
mask = np.zeros((height, width, 3), dtype=np.uint8)
mask = cv2.circle(mask, (int(det[1]), int(det[0])), int(det[2]/2.0), np.array([255, 255, 255]), -1)
mask = cv2.circle(mask, (int(det[1]), int(det[0])), int(det[2]/1.8), np.array([255, 255, 255]), -1)
frame = np.where(mask!=np.array([255, 255, 255]), frame, cv2.blur(frame, (30, 30), 0))
cv2.imshow('', frame)