how to detect shape of polygons after canny edge detection
after performing canny edge detection of my image(triangle) i have to make the program to identify what shape it is and type it out by detecting number of edges ,please help
one more problem is that canny image consists of two concentric triangles ,since orignal image had a black thick border along the triangle
please help!thank you
Please insert an image example.
i have added now
i'm not that into the canny edge detection, but couldn't you adjust the threshold to minimize the black border?
You can use approxPolyDP like in this post
I second what @LBerger is suggesting you. Try to search in the web with the following keywords:
opencv shape recognitionyou will find plenty of examples/tuts and code ;-)