Video object tracking: ping-pong balls

AI Thread Summary
To determine the trajectory and spin of a ping-pong ball for a project, a stationary video camera will be used to record the ball. The analysis will be conducted on a computer afterward. Key considerations include using a distinctive color and striping on the ball to facilitate spin analysis. While a brute-force, frame-by-frame analysis is feasible, exploring algorithms for motion tracking and computer vision is recommended. Implementing depth perception is essential, which can be achieved by calibrating the camera and using the ball's (x,y) coordinates and size to estimate its three-dimensional position. The OpenCV library is identified as a valuable resource for computer vision tasks. Additionally, automation tools like AutoHotKey and software like Logger Pro may assist in the analysis process.
awvvu
Messages
188
Reaction score
1
I'm interested in determining the trajectory and spin of a ping-pong ball for a project for class. I plan on getting a decent resolution video camera and record the ball (with the camera stationary). Afterward, I'll analyze the video on my computer.

My question is: what kind of algorithm can I get more (detailed) information about so I can go about implementing it myself? What kind of things should I search for to find more information? I have a lot of experience programming (in script languages though), so I think I can pull it off. I realize it's not an easy task though. (and it's really not a big deal if I can't get it to work).

I think if I color the ball a really distinctive and bright color (and do some sort of striping to be able to analyze its spin), it wouldn't be terribly hard to do. I can probably do it a brute-force and slow way by analyzing frame-by-frame and comparing it with previous ones, but I'd like some suggestions before I start hacking away at it.

I also reckon I'll have to figure out how to implement some basic depth perception, but I think that can be determined from knowing the (x,y) coordinates on frame and the apparent size of the ball. Then with some calibration based on my video camera placement, I can approximate its coordinates in three dimensions.

(I wasn't sure which forum to place this in exactly.)

edit: Hrm, I just found a library for computer vision, opencv, which looks like it'll be useful for this.
 
Last edited:
Computer science news on Phys.org
One, this should be in technology.
Two, you could get a macro (AutoHotKey is great and free) and have it do it the slow way. Logger Pro may have a setup to do it.
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...

Similar threads

Back
Top