The present invention discloses an image preprocessing method capable of increasing
the accuracy of face detection by enhancing the contrast between dark pixels and
their surrounding bright pixels, and increasing the brightness difference between
dark pixels and bright pixels. Even in insufficient and non-uniform lighting conditions,
the eye-analogue segments of a human face are obvious; so as to make a subsequent
algorithm using eye-analogue segments for detecting human faces and producing more
accurate results.