feat: bulk processing

This commit is contained in:
Artemy 2023-04-16 10:36:29 +03:00
parent eb26452ad6
commit 45916cd320
4 changed files with 44 additions and 6 deletions

9
methods/bulk_methods.py Normal file
View file

@ -0,0 +1,9 @@
from PIL import Image, ImageFilter
def canny_edge(file_name):
image = Image.open(file_name)
image = image.convert("L")
return image.filter(ImageFilter.FIND_EDGES)