This document presents an improved method for fingerprint image segmentation utilizing k-means and DBSCAN clustering techniques. The approach enhances fingerprint recognition accuracy through a series of pre-processing steps and feature extractions, reducing segmentation time compared to previous methods. Experimental results demonstrate the algorithm's effectiveness on four different databases, showcasing significant improvements in distinguishing ridge and non-ridge regions.