Liveness detection is an essential feature of facial recognition, as it can detect whether the person behind the camera is alive. There are two types of liveness detection: passive (does not require any movement from the user) and active.