Detecting tennis balls using OpenCV. A few different scripts for detection using different methods.
Detection by comparing the areas of the minimum enclosing circle and the hough circle.
Detection based on the following comparisons:
- Areas of contour and minimum enclosing circle.
- Centroids of contour and minimum enclosing circle.
- Value of Aspect ratio of bounding rectangle.
Detection by comparing the areas of the contour and the hough circle.
Similar to aspectratio but also checks solidity.
A script to help determine the mask values for HSV colourspace in a given environment.