def bit_not(self, frame): self._ndarray = cv2.bitwise_not(self.ndarray, frame.ndarray) self._contours = None # XOR this frame with another frame