Xor mask python. bitwise_or(image, mask_rect) bitwise_xor_result = cv2.