Answers for "fill pixels with zeros python opencv"

1

fill pixels with zeros python opencv

x = y = 30
w = h = 100

mask = np.zeros(img.shape[:2],np.uint8)
mask[y:y+h,x:x+w] = 255
res = cv2.bitwise_and(img,img,mask = mask)
Posted by: Guest on October-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language