With accurate automatic ball detection calculating the optical flow (separating out each ball) is quite simple. I choose to leave it out of the program in this post, because it can be a little confusing. It takes a lot of code to work out which points fit nicely on a parabola.
If you are familiar with siteswap graphs, you can clearly see the red pattern is 645. One of the goals of this project was to analyze a pattern for symmetry and throw height (as in 97531), to improve juggling performance.
by Stephen Meschke, in response to this post 2015-07-28 13:46:40