fixed upscaler diff threshold bug

This commit is contained in:
K4YT3X
2021-07-06 01:27:32 +00:00
parent 7eabac2175
commit ac80de9399
4 changed files with 26 additions and 19 deletions

View File

@@ -56,6 +56,11 @@ class Interpolator(multiprocessing.Process):
time.sleep(0.1)
continue
# if image0 is None, image1 is the first frame
# skip this round
if image0 is None:
continue
difference = ImageChops.difference(image0, image1)
difference_stat = ImageStat.Stat(difference)
difference_ratio = (