A intellectualized instrument of measuring the focus of infrared optical lens is studied. The signal is acceded by CCD in focal plane of the collimator lens. The measurement principle is analyzed , the software method is designed and the experiment result is made out .