Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: show image with ratio opencv python 
Python :: python request post with json with headers 
Python :: subprocess the system cannot find the file specified 
Python :: json post python with headers 
Python :: drop null rows pandas 
Python :: python search for string in file 
Python :: confusion matrix from two columns pandas dataframe 
Python :: django httpresponseredirect 
Python :: how to factorise an expression in python 
Python :: how to create an empty 2d list in python 
Python :: python seconds counter 
Python :: numpy.datetime64 to datetime 
Python :: turn off grid in matplotlib 3d 
Python :: python program to give shop name 
Python :: use of the word bruh over time 
Python :: python read file in string list 
Python :: python get city name from IP 
Python :: Feature importance Decision Tree 
Python :: print nested list in new lines 
Python :: logout in discord.py 
Python :: pip proxy settings 
Python :: datetime to int python 
Python :: convert list to array python 
Python :: remove substring python 
Python :: opencv get contours 
Python :: python namedtuple 
Python :: vsc python close all functions 
Python :: python version command notebook 
Python :: mirror 2d numpy array 
Python :: pandas sort values group by 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =