def loadSavedContent(self, loader): """ OTModuleBackgroundCalc.loadSavedContent reimplementation """ OTModulePlugin.loadSavedContent(self, loader) if '_backgroundDetector' in loader: self._backgroundDetector = OTPBackGroundDetector( capture=self._video.value.videoInput) self._backgroundDetector.load(loader['_backgroundDetector'])
def loadSavedContent(self, loader): if 'results' in loader: results = loader['results'] for key, sql in results.items(): self._results.addItem(key, sql) OTModulePlugin.loadSavedContent(self, loader)