Applies Gaussian blur to an image.
(image: PIL.Image.Image, blur_factor: int = 4)
| 182 | |
| 183 | @staticmethod |
| 184 | def blur(image: PIL.Image.Image, blur_factor: int = 4) -> PIL.Image.Image: |
| 185 | """ |
| 186 | Applies Gaussian blur to an image. |
| 187 | """ |
| 188 | image = image.filter(ImageFilter.GaussianBlur(blur_factor)) |
| 189 | |
| 190 | return image |
| 191 | |
| 192 | @staticmethod |
| 193 | def get_crop_region(mask_image: PIL.Image.Image, width: int, height: int, pad=0): |
nothing calls this directly
no outgoing calls
no test coverage detected