Create mask of one column/row [closed]
Error:
Extract white pixels in image boundary of 2*60 . Starting point of rectanglr(xs,intY)
height intH, width is 2 pixels.
Snippet:
mask = np.zeros(2*intH)
mask=img[xs+i: xs+i+3, intY: intY+intH]
pxs=np.size(mask)-cv2.countNonZero(mask)
this neeeds more context. what are xs,intY,intH, etc ?
error says - your mask is empty, so you cannot index it
it's also not an opencv problem
The code is used in opencv image based program. Please look into the title also. Basically i want to check if the column of an image is fully white i.e no pixels in grayscale image.
again, we cannot help without context, so please ...