How to detect if the image being captured by webcam is a live human, not just a still image of a person?

Posted by Vegetable-Might-8158@reddit | programming | View on Reddit | 13 comments

I'm currently using face-api.js to detect if there's a face being captured, but my boss that I need to make sure that it is live person being captured. I'm really clueless how to do it.When I google it, it gives me different result.

Every help will be much appreciated, thanks!