We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Motion Tracking for Cycling (Read 919 times)
Motion Tracking for Cycling
Jun 28th, 2009, 7:51pm
 
I'm working on a sketch which will be used to analyze a cyclist's position on his/her bike. It will be used to help "fit" a cyclist (the process by which adjustments are made to the bike to ensure a proper fit).

I've done some Processing work in the past (grad school 5 years ago...) and my thinking is that this won't be all that tough, and that you all might be able to point me towards projects that have done some of this in the past. Ideally I would:

1. Place brightly colored dots on the body points I wish to track, and have the cyclist ride a stationary trainer.

2. Position the camera so that the entire athlete is in frame.

3. Write to code to track the positions.

4. Get it to draw "trails" on those positions.

5. Have it export a movie.

I've looked into a few solutions for the color tracking:

1. JMyron - I can't seem to get the library to load
(I posted a message on their message board)

2. Found a script from Justin Brooks (based on one from Golan Levin) which works well for tracking one point.

My questions would be:

1. Does anyone have any precedent for a project like this? Seems to me to be something that would have already been done a few times over.

2. Any suggestions on a good library to use?

3. Thoughts on tracking multiple points simultaneously?

4. Thoughts on drawing "trails" for the colored dots?

5. Is it possible to save a movie out after the fact?

I really appreciate all your help. Processing has come a long way since I last used it!

Matt
Re: Motion Tracking for Cycling
Reply #1 - Jun 30th, 2009, 7:02am
 
every video library should work for you.

for the dot tracking, you'll probably want to search both the forum and the site for "blobs": thresholding the frame to reveal only the color you're looking for and then looking for blobs should do the trick.

Re: Motion Tracking for Cycling
Reply #2 - Jun 30th, 2009, 8:04am
 
Thanks for your reply. I had read a bit on the forum and elsewhere, and wasn't entirely sure if blob detection was exactly what I was looking to do. I'm sure that will be very helpful. Thanks for the tip.

Any other suggestions and/or comments are welcomed.

Matt
Page Index Toggle Pages: 1