Quantcast
Channel: The Juggling Edge - Forum posts
Viewing all articles
Browse latest Browse all 11976

Post by Stephen Meschke

$
0
0

runfinder.py - counts catches and links to the start of each run.

When I juggle for 7 ball endurance, I like to turn the camera on and try to juggle 7 balls for about 10 minutes. I capture juggling, but I also capture picking up drops, taking breaks, and drinking water. Reviewing video can be time consuming.

Why not automate?

I wrote runfinder.py. This program watches the video and counts the number of catches in each run. The number of catches and the time the run started are displayed.

This is the 9 minutes 7 ball endurance juggling practice video I analyzed using runfinder.py: https://youtu.be/sm-GxpeuMsA.

This is the output from runfinder.py:

Run number 1 was 14 catches: https://youtu.be/sm-GxpeuMsA?start=12
Run number 2 was 43 catches: https://youtu.be/sm-GxpeuMsA?start=23
Run number 3 was 44 catches: https://youtu.be/sm-GxpeuMsA?start=45
Run number 4 was 31 catches: https://youtu.be/sm-GxpeuMsA?start=88
Run number 5 was 40 catches: https://youtu.be/sm-GxpeuMsA?start=117
Run number 6 was 40 catches: https://youtu.be/sm-GxpeuMsA?start=142
Run number 7 was 27 catches: https://youtu.be/sm-GxpeuMsA?start=212
Run number 8 was 24 catches: https://youtu.be/sm-GxpeuMsA?start=240
Run number 9 was 36 catches: https://youtu.be/sm-GxpeuMsA?start=262
Run number 10 was 43 catches: https://youtu.be/sm-GxpeuMsA?start=282
Run number 11 was 52 catches: https://youtu.be/sm-GxpeuMsA?start=309
Run number 12 was 85 catches: https://youtu.be/sm-GxpeuMsA?start=341
Run number 13 was 34 catches: https://youtu.be/sm-GxpeuMsA?start=403
Run number 14 was 29 catches: https://youtu.be/sm-GxpeuMsA?start=429
Run number 15 was 152 catches: https://youtu.be/sm-GxpeuMsA?start=461

The throw counts are off by only a few throws, if any. Any juggles with fewer than 14 throws (an arbitrary number) aren't considered runs. The accuracy is good enough to find the best few runs out of the video, without having to watch any of it.

Here is a link to the code: http://pastebin.com/WVgjbetY.

Post reply

by Stephen Meschke, 2015-12-04 06:26:38


Viewing all articles
Browse latest Browse all 11976

Trending Articles