Shape detection opencv. For eg, square will have 4, pentagon will have 5.

Shape detection opencv. 21 for the triangles, .