Q: I configure the camera and it only scores correctly for a few frames or games.

A: The problem is that your cappings that hold the camera unit have come loose.  Whenever a ball hits the gutter at a point close to the camera, then the whole camera unit is shaken to a slightly different position, therefore resulting in scoring issues.  Secure the capping and check that the camera mounting brackets are tight, and the problem should go away.