- Detect all the green balls in the image
- Track the ball as it moves around in the video
- HSV color space is used to detect the green ball. Hence we convert the input RGB image to HSV color space.
- Draw an outline for the detected ball.
- Finds the region in which the ball resides.
- Displays the percentage of area covered by the ball.
- python - 3.8.6
- Flask - 1.1.2
- opencv-python - 4.5.1.48
- Jinja2 - 2.11.3
The ball is successfully detected and tracked in the video frame.