def __call__(self, image): """Returns a foreground mask of the image.""" return cv2.morphologyEx(self.fgbg.apply(image), cv2.MORPH_OPEN, self.strel)