Here are the steps to follow:
- Convert your image to HSV.
- Threshold the image based on your color value.
- Run
findcontours
on the thresholded image. - Look at different contour properties to find a shape match. This page can help in looking at different properties that you can access.