How to detect simple geometric shapes using OpenCV
If you have only these regular shapes, there is a simple procedure as follows : Find Contours in the image ( image should be binary as given in your question) Approximate each contour using approxPolyDP function. First, check number of elements in the approximated contours of all the shapes. It is to recognize the shape. … Read more