|
2 | 2 |
|
3 | 3 | ## Description
|
4 | 4 |
|
5 |
| -This is an `OpenCV` implementation of detecting and tracking a baseball across multiple frames. We're given images of 15 consecutive frames in the `images/` folder and we have to find the position and velocity of baseball programatically without using Machine Learning. |
| 5 | +This is an `OpenCV` implementation of detecting and tracking a baseball across multiple frames. We're given images of 15 consecutive frames of a video in the `images/` folder and we have to find the position and velocity of baseball programatically without using Machine Learning. Some of the useful information is given below- |
| 6 | +- Pixel Size : 0.0048mm |
| 7 | +- Frame per second (fps) : 240 |
6 | 8 |
|
7 | 9 | ## Approach
|
8 | 10 |
|
@@ -50,3 +52,25 @@ I tried to use Sparse Optical flow to track movement of baseball. I performed th
|
50 | 52 | **Solutions tried** : Choose pyramid structures with Lucas-Kanade and use larger window size.<br>
|
51 | 53 |
|
52 | 54 | I was still unable to improve the predictions with the solutions tried so I gave up on this approach.
|
| 55 | + |
| 56 | + |
| 57 | +## Results |
| 58 | + |
| 59 | +The results of the images, which marks the centre of the baseball is shown in `results/`. From frame 3 to frame 15, the position and speed of the ball are shown below. |
| 60 | + |
| 61 | +| Frame number | Position of ball | Speed (mm/s) | |
| 62 | +| ------------ | ------------- | ------------ | |
| 63 | +| 3 | (538, 803) | 15.02| |
| 64 | +| 4 | (510, 799) | 32.583 | |
| 65 | +| 5 | (481, 792) | 34.367 | |
| 66 | +| 6 | (450, 784) | 36.882 | |
| 67 | +| 7 | (417, 778) | 38.639 | |
| 68 | +| 8 | (379, 769) | 44.987 | |
| 69 | +| 9 | (341, 761) | 44.736 | |
| 70 | +| 10 | (296, 747) | 54.291 | |
| 71 | +| 11 | (253, 742) | 49.87 | |
| 72 | +| 12 | (202, 732) | 59.871 | |
| 73 | +| 13 | (149, 723) | 61.93 | |
| 74 | +| 14 | (93, 707) | 67.093 | |
| 75 | +| 15 | (30, 695) | 73.881 | |
| 76 | + |
0 commit comments