ball-tracking | This project uses OpenCV to track ball movement | Computer Vision library
kandi X-RAY | ball-tracking Summary
kandi X-RAY | ball-tracking Summary
This project uses OpenCV to track ball movement. The process for tracking is as follows:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- handle mouse click
- Called when the trackbar changes .
ball-tracking Key Features
ball-tracking Examples and Code Snippets
Community Discussions
Trending Discussions on ball-tracking
QUESTION
I made a ball tracking program using this guide: https://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/
I wanted to ask if there is a way I can tell how many bounces a ball makes in a certain time. Or even any method I can use to count the bounces of the ball on the ground, because I intend to use the program to track someone doing basketball dribbling training. Thank you in advance :)
I want to make something similar to this: https://youtu.be/OMXYvkryF1I at 2:26
Here is my code if it helps:
...ANSWER
Answered 2021-Mar-13 at 15:53I set up a simulation to show what I was talking about in the comments. Basically, every time the camera takes a picture (whatever fps your camera runs at) you can get the ball's position. Using that position you can estimate velocity (change in position divided by time). If there's a sudden change in the direction of that velocity then you can count that as a bounce.
The vast majority of this code is for setting up the simulation and can be safely ignored for your purposes. Here's the relevant code block
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ball-tracking
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page