I built hockey game with Pixy Cam5 and Arduino as a learning experience. The only problem I have is alignment with the hockey puck and the robot. When my vision system thinks they are aligned, they really aren’t. If the object is close to dead center it seems to work very well. But if the puck(object) is off center it will be inaccurate. The further from the center the more it is off. And the discrepancy varies with the distance from the camera. My camera is mounted immediately above the robot arm and travels with it.
Could this be a lens distortion issue? How do others handle such an issue? Maybe I should mount the camera high above the hockey table in a stationary position looking down on the action. That way maybe I wouldn’t have to deal with depth perception as I am now.
Thanks,
Paul