mirror of
https://github.com/artegoser/image-pluser-webui.git
synced 2025-02-23 04:33:14 +03:00
fix: name of method and formatting
This commit is contained in:
parent
1b259c886f
commit
fbc9112fba
9 changed files with 61 additions and 45 deletions
|
@ -1,7 +1,7 @@
|
|||
from PIL import Image, ImageFilter
|
||||
|
||||
|
||||
def canny_edge(file_name):
|
||||
def edge(file_name):
|
||||
image = Image.open(file_name)
|
||||
|
||||
image = image.convert("L")
|
||||
|
|
|
@ -6,8 +6,7 @@ def denoise(files):
|
|||
bias = 1
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files):
|
||||
|
||||
alpha = 1/bias
|
||||
alpha = 1 / bias
|
||||
|
||||
im2 = Image.open(file)
|
||||
im3 = Image.blend(image, im2, alpha)
|
||||
|
@ -31,7 +30,7 @@ def startracks(files):
|
|||
|
||||
def noise_extractor(files):
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files, unit=' images'):
|
||||
for file in tqdm(files, unit=" images"):
|
||||
im2 = Image.open(file)
|
||||
im3 = ImageChops.difference(image, im2)
|
||||
image = im3
|
||||
|
@ -41,7 +40,7 @@ def noise_extractor(files):
|
|||
|
||||
def untrack(files):
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files, unit=' images'):
|
||||
for file in tqdm(files, unit=" images"):
|
||||
im2 = Image.open(file)
|
||||
im3 = ImageChops.darker(image, im2)
|
||||
image = im3
|
||||
|
|
Loading…
Add table
Reference in a new issue