Skip to content

Commit

Permalink
Added randomness to blurring
Browse files Browse the repository at this point in the history
  • Loading branch information
navchandar authored Mar 12, 2024
1 parent f5464dd commit 1d8ac14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def black_and_white_image(image):

def blur_image(image):
"""Blur a PIL Image object"""
blurred_image = image.filter(ImageFilter.GaussianBlur(2))
blurred_image = image.filter(ImageFilter.GaussianBlur(random.uniform(1.2, 1.4)))
return blurred_image


Expand Down

0 comments on commit 1d8ac14

Please sign in to comment.