find a specific balck object with white spot on an image
Hey,
I'm, quit new with openCV, but i have a problem to solve quick and with reliable result.
First ,i have a video feed, i must find THE object on each frame.(the algorithm should be the same for 1 image) The Object is a black bag with a white light source on the middle, so its like a black ellipse with a white ellipse on it.
I need a simple solution which works in case the bag is closer or further on the image. I tired with finding ellipses, but it find more ellipse than i need and i'm not sure how to select the two on my "bag"...
I manged to identify the bag with lamp, however it is not working in every case, cuz there might be other black blobs with one or more white blob on it.
What should be a correct filtering? If the size of the bag chances in time, cuz i'm going closer and i observed that the proportion between the area of the bag and lamp is not a neighborhood of a value.