mirror of
https://github.com/artegoser/image-pluser-webui.git
synced 2024-11-06 04:33:57 +03:00
17 lines
334 B
Python
17 lines
334 B
Python
from methods.stack_methods import (
|
|
methods_funcs,
|
|
)
|
|
import os
|
|
from processing.utils import generate_name
|
|
|
|
|
|
def stacking(dir, method):
|
|
files = os.listdir(dir)
|
|
files = list(map(lambda x: os.path.join(dir, x), files))
|
|
|
|
img = methods_funcs[method](files)
|
|
|
|
name = generate_name()
|
|
img.save(name)
|
|
|
|
return [name]
|