Fixing the minimum number of points and finally with a working getCameras function