Aiming at location of mechanical drilling in machine vision,the affine model and the mesh model of the target image are established,then the whole and separated adjustment of the distorted image is performed.The experimental results demonstrate that the adjusting error of simulating processing would not surpass 0.1mm if targets were accurate.