Robotics StackExchange | Archived questions

How to capture dark object in a bright environment

Hi,

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

Asked by yoshiros on 2019-06-27 21:45:51 UTC

Comments

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

Asked by nd on 2019-06-28 02:44:06 UTC

Answers