Merge branch 'master' of https://git.wmi.amu.edu.pl/s352038/BlurMe
This commit is contained in:
commit
28464cd4f8
@ -31,7 +31,7 @@ def blur_boxes_on_image(
|
||||
in_image_path: str, bounding_boxes: List[BoundBox], out_image_path: str = None
|
||||
):
|
||||
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)
|
||||
draw_mask = ImageDraw.Draw(mask)
|
||||
for box in bounding_boxes:
|
||||
|
Loading…
Reference in New Issue
Block a user