MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / blur

Method blur

diffusers/src/diffusers/image_processor.py:184–190  ·  view source on GitHub ↗

Applies Gaussian blur to an image.

(image: PIL.Image.Image, blur_factor: int = 4)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected