import cv2 as cv
import numpy as np
img = cv.imread('30.jpeg')
cv.imshow('cats', img)
blank = np.zeros(img.shape[:2], dtype='uint8')
cv.imshow('blank image', blank)
mask = cv.circle(blank, (img.shape[1] // 2, img.shape[0] // 2), 100, 255, -1)
cv.imshow('Mask', mask)
masked = cv.bitwise_and(img, img, mask=mask)
cv.imshow('masked', masked)
cv.waitKey(0)

5e45f08fda43a5ce9e14b66b1ca0046a98de6779
<mask token>

<mask token>
cv.imshow('cats', img)
<mask token>
cv.imshow('blank image', blank)
<mask token>
cv.imshow('Mask', mask)
<mask token>
cv.imshow('masked', masked)
cv.waitKey(0)

<mask token>
img = cv.imread('30.jpeg')
cv.imshow('cats', img)
blank = np.zeros(img.shape[:2], dtype='uint8')
cv.imshow('blank image', blank)
mask = cv.circle(blank, (img.shape[1] // 2, img.shape[0] // 2), 100, 255, -1)
cv.imshow('Mask', mask)
masked = cv.bitwise_and(img, img, mask=mask)
cv.imshow('masked', masked)
cv.waitKey(0)

import cv2 as cv
import numpy as np
img = cv.imread('30.jpeg')
cv.imshow('cats', img)
blank = np.zeros(img.shape[:2], dtype='uint8')
cv.imshow('blank image', blank)
mask = cv.circle(blank, (img.shape[1] // 2, img.shape[0] // 2), 100, 255, -1)
cv.imshow('Mask', mask)
masked = cv.bitwise_and(img, img, mask=mask)
cv.imshow('masked', masked)
cv.waitKey(0)
