Can I detect rectangle objects with different interior?
Hello everyone
I am newbie - but I hope that my question will be understandable.
I would like to train classifier to detect rectangle objects. Problem is that these objects have different interiors - different colours, some pictures etc.
It is possible? How can I do that in the best way?
How can I set option, when I train my classifier, that interior is not important?
And BTW - why the ObjectMarker tool which is used when I train classifier (according to http://www.technolabsz.com/2011/08/ho...) is not included in OpenCV for Windows?
Kind regards Chris
After edit (due to the comments):
Examples of pictures:
I want to detect rectangles, e.g. the biggest one on the picture, I want to know its position (corners).
"the object detection tools / formats have changed significantly over the years"
Does this mean that ObjectMaker is no longer used? What would the training classifier procedure in my case? Can I find a more detailed description than on (http://docs.opencv.org/doc/user_guide...
Thank you
btw, the object detection tools / formats have changed significantly over the years. please try to avoid anything from 2011
Would you add some images describes the problem your are trying to solve
imho, you can't train a cascade on abstract 'rectangles' (not enough features) ,and your images already show, that the difference of the content of your rects is far too large for this.
you could try finding rectagular shapes , but even that will be difficult, since all your images also suffer heavily from perspective distortion and occlusion.
opencv can do a lot, but i think, your expectation is far too broad here
berak - thank you very much for your opinion.
But I think in the following way:
I can recognize straight lines - as line (shape) or edge (http://docs.opencv.org/modules/objdet...)
so if I can recognize several lines (edges) on one picture, then I can conclude (maybe outside of the OpenCV) whether these lines construct a rectangle or not
Tell me if I am wrong.
Thank you for your answer and help
sure, that will be the most easy way to start. also, findContours()
I think also a shape detection algorithm, would be able to help you at some range. Have a look in this example here.
berak and theodore, thank you again. I will try your suggestions. It will take some time - but I will tell you about the results.