¡@

Home 

c++ Programming Glossary: gray2

how to detect region of large # of white pixels using opencv?

http://stackoverflow.com/questions/10262600/how-to-detect-region-of-large-of-white-pixels-using-opencv

cv2.COLOR_BGR2GRAY ret gray cv2.threshold gray 127 255 0 gray2 gray.copy mask np.zeros gray.shape np.uint8 Now find contours.. image where there is white in mask image. cv2.bitwise_not gray2 gray2 mask And finally show the image cv2.imshow 'IMG' gray2.. where there is white in mask image. cv2.bitwise_not gray2 gray2 mask And finally show the image cv2.imshow 'IMG' gray2 cv2.waitKey..