Search code examples
.netimageopencvimage-processingface-recognition

Region of Interest using OpenCV


With reference to the following Image can someone guide me how to go for extracting all the bulbs (b1, b2, b3, b4, b5) and putting them in separate image (b1.jpg, b2.jpg, b3.jpg, b4.jpg, b5.jpg).

enter image description here

I can use a template, but the issue is the size and shape of the bulbs are varying as you can see varying. (But the over all look of the bulb is still the same).

Any advice how to go for this using openCV?

Thanks and regards,

Heshsham


Solution

    • Well if you are using templates, why not different templates? Keep a bunch of templates, match them against the image. Whichever gives you the best match is your candidate.
    • Second way of doing this, if I understood the problem correctly, is to use SURF features. SURF is robust pretty much to skew, perspective, rotational changes, so it will surely help you in figuring out the bulbs.
    • Here is a link to showing off using SURF. Simple and elegant.