How to detect region of large # of white pixels using OpenCV?

后端 未结 2 1979
忘了有多久
忘了有多久 2020-12-02 07:14

I want to detect a logo inside an image in order to remove it. I have an idea which is to look for objects which have the big number of pixels then remove. Another idea is t

2条回答
  •  自闭症患者
    2020-12-02 08:06

    You may use morphological filters (perhaps alternating sequential filtering) to simplify your multi-color image and then use a segmentation algorithm like watershed or some granulometry method and choose the largest object. You may find several implementations online. But this will work only if the logo is discrete (e.g. not on the background)

提交回复
热议问题