Fingerprint scanners work by capturing the ridge pattern of fingerprints using either optical or capacitive scanning. Optical scanners use cameras to image fingerprints while capacitive scanners detect ridges using capacitive sensors. Both result in an image of the ridges and valleys. Analysis then focuses on distinctive minutiae points such as ridge endings and bifurcations to match fingerprints rather than the overall pattern.