feat: sharpen method

This commit is contained in:
Artemy 2023-04-16 10:46:55 +03:00
parent 45916cd320
commit 8d9f2a8a17
3 changed files with 21 additions and 10 deletions

View file

@ -7,3 +7,8 @@ def canny_edge(file_name):
image = image.convert("L")
return image.filter(ImageFilter.FIND_EDGES)
def sharpen(file_name):
image = Image.open(file_name)
return image.filter(ImageFilter.SHARPEN)