mirror of
https://github.com/artegoser/image-pluser-webui.git
synced 2025-02-22 20:23:15 +03:00
feat: bulk processing
This commit is contained in:
parent
eb26452ad6
commit
45916cd320
4 changed files with 44 additions and 6 deletions
9
methods/bulk_methods.py
Normal file
9
methods/bulk_methods.py
Normal 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)
|
Loading…
Add table
Reference in a new issue