mirror of
https://github.com/esimov/pigo.git
synced 2025-10-08 01:20:07 +08:00
Increase blur radius
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user