Camera Calibration on a curved surface

And here’s the “reference” image:

I can find all the grid intersection points correctly, but using these points in findHomography doesn’t seem to create a very good homography matrix to use in perspectiveTransform; the first temporary output is a gray screen!

Thanks again for your help.