This document presents a face detection algorithm utilizing 3×3 block rank patterns of gradient magnitude images along with a geometrical face model. The proposed method addresses challenges posed by varying illumination and complex backgrounds by correcting lighting conditions, extracting facial features through gradient magnitude images, and classifying potential faces using template patterns. Experimental results demonstrate the algorithm's effectiveness in detecting faces from images in different databases.