track a ball moving in hight speed [closed]

asked 2016-06-22 21:26:37 -0600

Lafi gravatar image

Hi, i want to track a ball moving in hight speed what could be the best method to track, it's a roulette play ball.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-08 03:08:04.619118

Comments

Try opencv sample first and lkdemo too

LBerger gravatar imageLBerger ( 2016-06-23 03:46:15 -0600 )edit

it didn't give good result since the ball have high velocity

Lafi gravatar imageLafi ( 2016-06-23 11:28:40 -0600 )edit

Can you post video or two images from video (image i and image i+1)?

LBerger gravatar imageLBerger ( 2016-06-23 12:08:42 -0600 )edit
Lafi gravatar imageLafi ( 2016-06-23 19:36:05 -0600 )edit

That's hard. The camera's frame rate is so low the ball is almost invisible. If you only need to track it once it hits the spinning part it might be ok. Use Match Template to find it initially, then track with pyrLK. That might work.

Tetragramm gravatar imageTetragramm ( 2016-06-23 20:28:17 -0600 )edit

the problem is that i need to detect it when it's moving, i have tried template matching but didn't get the result i need !! is there any other solution for this problem? can i use descriptor ? if yes how ?

Lafi gravatar imageLafi ( 2016-06-23 20:51:37 -0600 )edit

Is the camera fixed? If it is, you could do background subtraction and ignore the spinning part in the middle, which would leave just the ball as the only part moving. It's so blurry that the traces would be really faint and any lighting changes would swamp it though.

Really, you need a higher frame rate camera so it's not as blurry while it's moving that fast.

Tetragramm gravatar imageTetragramm ( 2016-06-23 22:26:00 -0600 )edit

yes the camera is fixed, okay, can the bakcground subtraction give goos result while the ball is moving ? and please how i can ignore the spinning part in the middle as it's moving? and as for the n first frame the ball is in the middle!!

Lafi gravatar imageLafi ( 2016-06-23 22:29:26 -0600 )edit

Possibly, by using some intelligence with OpenCV, and everything you know about the path and motion of the ball is useful.

Start by learning how to use OpenCV. Work your way through the tutorials, especially, the introduction, Core, Image Processing and Video modules. If you do that, you'll know what you need to make a good start.

Tetragramm gravatar imageTetragramm ( 2016-06-23 23:44:17 -0600 )edit

Hi, using background subtraction i'm able to extract the ball motion then i can track it, but the problem is i have other motion from the moving background !! any idea to remove it?? here is a link for a frame using background subtraction , the ball motion and the spinning part in the middle please how i can ignore it?? https://drive.google.com/file/d/0BxQp...

Lafi gravatar imageLafi ( 2016-06-25 23:49:57 -0600 )edit