Applies Gaussian blur to an image.
(image: PIL.Image.Image, blur_factor: int = 4)
| 163 | |
| 164 | @staticmethod |
| 165 | def blur(image: PIL.Image.Image, blur_factor: int = 4) -> PIL.Image.Image: |
| 166 | """ |
| 167 | Applies Gaussian blur to an image. |
| 168 | """ |
| 169 | image = image.filter(ImageFilter.GaussianBlur(blur_factor)) |
| 170 | |
| 171 | return image |
| 172 | |
| 173 | @staticmethod |
| 174 | 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