From cfd17b339b3d996fa73301f8686d1e415b57c8b7 Mon Sep 17 00:00:00 2001 From: sfop Date: Mon, 29 May 2017 11:54:44 +0200 Subject: [PATCH] Script execution --- script/Devices/ImageStats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/Devices/ImageStats.py b/script/Devices/ImageStats.py index 4364469..754abce 100644 --- a/script/Devices/ImageStats.py +++ b/script/Devices/ImageStats.py @@ -170,8 +170,8 @@ class ImageStats(DeviceBase): def __init__(self, obj): self.obj=obj def process(self, image, data): - return sub(image, obj.background, True) if (obj.background is not None) else None - self.source.filter = BackgroundSubtractor() if (value==True) else None + return sub(image, obj.background, True) if (self.obj.background is not None) else None + self.source.filter = BackgroundSubtractor(self) if (value==True) else None def captureBackground(self, images): self.doInitialize()