Hi Parth,
Arthur Juliani

Also I am using the difference of two consecutive frames as input to capture motion of the ball. Should I use something else?

Like what you read? Give Parth Sharma a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.