Find geometric shape [closed]
Hi guys"
I have to following issue:
I have an arbitrary polygon (defined with points A,B,C,D,...) and I want to find the position of this polygon in "real" images: In these images the polygons are not ideal geometric shapes, but physical objects.
For instance the polygon might be a right-angled triangle and I then want to detect "set squares" in an image + its rotation.
Do you know any solutions to this problem? I already tried to do this with SURF and SIFT where I would simply paint an artifical image with my polygon and extracting features of this artifical image, however the extracted feature do not seem to work quite well. Template matching with an artifical image is not working either, because the objects in the real images can be rotated.
Does this tutorial help?
http://opencv-code.com/tutorials/detecting-simple-shapes-in-an-image/
No not really, I am dealling with real images and the contours found in this images are not as perfect as in this tutorial. I really think that I need some kind of matching algorithmn for this problem
Can you upload some examples of images?
here two examples http://imageshack.us/a/img51/8590/8wlo.png
http://imageshack.us/a/img542/5932/n6a3.png
as I said I am merely interested in the rotation and position of these shapes (I have given polygons, which are rotated differently)
Which feature detector
http://docs.opencv.org/modules/features2d/doc/feature_detection_and_description.html#ORB : public Feature2D
do you suggest for my images?