def bit_xor(self, frame): self._ndarray = cv2.bitwise_xor(self.ndarray, frame.ndarray) self._contours = None