How to capture dark object in a bright environment

asked 2019-06-27 21:45:51 -0500

yoshiros gravatar image


I am looking for a method which can recognize the dark object in a bright environment. I need to get the position of the center of the dark object. I tried several packages in opencv_apps. However, it only finds a bright object and ignores dark objects. Even the edge is clear. It will work if I can reverse white and black of my image but can not find a method to do so.

Does anyone know how to find the dark object? or how to reverse W/B of image topic?

Thank you in advance

edit retag flag offensive close merge delete


you can try adaptive thresholding method of OpenCV. link text.

nd gravatar image nd  ( 2019-06-28 02:44:06 -0500 )edit