An algorithm that can take any pitch from the camera and detect the frame where the ball was released from the pitcher’s hand.
This mini-project aims at recieving a video input from the videos of Matt Harvey pitching a baseball. Using Python and OpenCV techniques the user can determine in what frame Matt Harvey pitched the ball.
- Video breakdown into frames
- Worked with a single image channel and cropping to reduce processing time of 4K images
- Gaussian Blur to denoise
- Canny edge detector and alongwith dilation and erosion techniques
- Finding contours in each frame and the isolating the ball from pitcher after it is released from his hand
- Sorting the contours found and returning the frame with a contour area <100 (The obserevd area of the ball/circle)
test