Bitwise-AND mask and original image

Hello All,

In unit3, the cropped image is in BGR format whereas the mask image is in HSV format. I wonder why we could bitwise-AND two images in different format? Thanks.

Hello @tonyli19970130,

If I’m not wrong, we are converting it to HSV right above in the notebook, here:

# Convert from RGB to HSV
hsv = cv2.cvtColor(crop_img, cv2.COLOR_BGR2HSV)