Wiki | Community | Discussion Forum | Q&A

Error with numpy

After doing a cv.inRange() i tryed to find the firs non 0 of my filter with ‘hor = np.argwhere(mask > 0)[0]’
And following error appears: ‘int’ object has no attribute ‘argwhere’

I know mask is well calculated.