@Cezar Pimentel You can detect head gestures like nodding and head shaking by tracking HeadPose changes in real time with your app. You can use this feature as a custom liveness detector. This is basically an attribute that is available with the detect API, by tracking this value by passing multiple frames to the detect API you can determine if an actual face or an image was used. I hope this helps!!
If an answer is helpful, please click on or upvote which might help other community members reading this thread.