Ask Your Question

Revision history [back]

Here are the steps to follow:

  1. Convert your image to HSV.
  2. Threshold the image based on your color value.
  3. Run findcontours on the thresholded image.
  4. Look at different contour properties to find a shape match. This page can help in looking at different properties that you can access.