How to differentiate a live person infront of Web Cam to a Photo of person

For an attendance project, How can I differentiate Live person infront of web cam to showing a photo of the person. How do we do that? Any ideas is appreciated

Hi Varsha. One thing that comes to mind is to use a infrared camera / thermal camera data with the webcam data. It would allow to differenciate the people from images of people.