Script execution

This commit is contained in:
sfop
2017-05-29 11:54:44 +02:00
parent db36dc750d
commit cfd17b339b

View File

@@ -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()