In the paper Sobel operator to distill the direction of the ridges was used, then the size of each block according to the thickness of the ridges was decided and the fit size of the filter was selected. According to the ridges had the continuity in the local area, an intelligent algorithm of smoothing the direction map was proposed, and then according to the direction map the temp late of direction filter was designed, then the fingerp rint image with the designed template was filtered and the binarization image was obtained. Using the method, good effect was obtained in connect the breaks and dispart conglutinated ridges.