There are two approaches for liveness detection: active and passive. Active liveness detection refers to methods where the user performs an action, such as blinking, making facial movements or keystroking, which makes it more difficult and time consuming for the user to spoof the system. Passive liveness detection uses internal algorithms to detect spoofs and requires nothing from the user.