Owing to the defects of fingerprint sampling facilities, it is often difficult to collect the distinct and intact images under the conditions that the finger is too dry , too wet , dirty or frayed. The authors provide a method of Gabor filtering to enhance the images which follows the orientation of fingerprint, and provide an effective method to identify and remove the invalid areas.