Increase blur
This commit is contained in:
parent
89c2eeea0d
commit
f8531fcc19
@ -31,7 +31,7 @@ def blur_boxes_on_image(
|
|||||||
in_image_path: str, bounding_boxes: List[BoundBox], out_image_path: str = None
|
in_image_path: str, bounding_boxes: List[BoundBox], out_image_path: str = None
|
||||||
):
|
):
|
||||||
img = Image.open(in_image_path)
|
img = Image.open(in_image_path)
|
||||||
blur_img = img.filter(ImageFilter.GaussianBlur(radius=7))
|
blur_img = img.filter(ImageFilter.GaussianBlur(radius=13)) # to increase the blur, increase the radius
|
||||||
mask = Image.new("L", img.size, 255)
|
mask = Image.new("L", img.size, 255)
|
||||||
draw_mask = ImageDraw.Draw(mask)
|
draw_mask = ImageDraw.Draw(mask)
|
||||||
for box in bounding_boxes:
|
for box in bounding_boxes:
|
||||||
|
Loading…
Reference in New Issue
Block a user