Аннотация:The paper introduces a quality metric for a projective correction of a document photograph obtained from any viewpoint. For the quantitative quality measurement of the projective transform every document point is assigned a specific shift - the distance between the ideal and real positions of this point on the corrected image. We chosen the maximal shift throughout the document as the overall quality measure. We contradict a hypothesis that the maximal shift is obtained in the document corners. A proof is given that the maximal shift occurs on a document border and provide the analytical solution to the problem of locating it.