From 7f469a379d450f8528bae99d80301c83470a87fc Mon Sep 17 00:00:00 2001 From: Javi Carnero Date: Fri, 12 Jun 2020 14:10:49 +0200 Subject: [PATCH] Fixed wrong split threshold in down images --- VirtualStage/BackgroundMatting/fixed_threshold.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualStage/BackgroundMatting/fixed_threshold.py b/VirtualStage/BackgroundMatting/fixed_threshold.py index 6b77905..bd26c19 100644 --- a/VirtualStage/BackgroundMatting/fixed_threshold.py +++ b/VirtualStage/BackgroundMatting/fixed_threshold.py @@ -16,7 +16,7 @@ def fixed_split(videos, thresholds, mask_suffix, overlap=0): threshold = int(thresholds[i]) iup_region = f"iw:{threshold + overlap}:0:0" - idw_region = f"iw:ih-{threshold + overlap}:0:{threshold - overlap}" + idw_region = f"iw:ih-{threshold}+{overlap}:0:{threshold - overlap}" # crop color images code = os.system(