Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fill #pixels #zeros #python #opencv
ADD COMMENT
Topic
Name
1+5 =