Ask Your Question
0

Detecting a thrown object hitting a wall in front of the camera?

asked 2017-05-11 03:03:56 -0500

goolag gravatar image

Hi

Has anyone any ideas on how I would detect a thrown object hitting a wall in front of the camera - the object could originate from any angle so I'm racking my brains on how I would determine when the object impacted the wall.

For example, I have the camera a fixed distance perpendicular to a wall - if i throw a ball at the wall, I want to track it then determine the moment of impact against the wall.

Would I use the diameter of the ball? As the ball moved further from the camera, the perceived diameter would shrink - I could then take the calibrated diameter and camera distance and assume the ball had hit the wall.

Does that make sense, is it possible or is there a better way

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-11 04:32:59 -0500

kbarni gravatar image

Check the optical flow methods in OpenCV.

For this application you can use a sparse optical flow (much faster than the dense optical flows).

To detect the impact, check the high values in the derivatives of the path.

Another idea would be to use a PCA based optical flow analysis and check when the Lambda2 increases. (maybe check this code I found on google? https://github.com/jswulff/pcaflow)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-11 03:03:56 -0500

Seen: 596 times

Last updated: May 11 '17