Ask Your Question

Revision history [back]

I think you should start with a marker based approach. My favorite marker in OpenCV is the asymetric circle grid that can easiliy be detected using http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#findcirclesgrid

You need to attach the circle pattern (e.g. http://docs.opencv.org/trunk/_downloads/acircles_pattern.png) to your paddle and then uses the OpenCV calib3d lib to find it's pose relative to the camera. You then have to find the transformation between the paddle and the marker, but this should be rather easy.

With this approach, you get a very accurate and rather reliable positioning of your paddle and can concentrate on the game.

You could of course also try to find the paddle without marker (markers are always somehow ugly) but this will take much longer and won't probably never be as accurate as the marker-version.

What camera are you using? Make sure that you don't have a rolling shutter since this will introduce a larger error as soon as the paddle is moving.