问题
I'm trying develop a facial recognition system. But the issue is it can be by-passed by a photo. I'm using google vision api to detect faces. Is there a way to avoid detecting faces in a photo? Just want to know if there is a real person standing in front of the camera.
回答1:
The Google Vision API does not support distinguishing between a real face and a face in a photo.
There are a number of ways that you might try to do this in general. Perhaps the most reliable way would be to use stereo cameras or 3D depth sensors to infer the 3D structure of the face from different viewpoints -- a real face and a photo of a face would obviously have a different 3D structure.
来源:https://stackoverflow.com/questions/45563012/google-vision-api-differentiate-real-face-and-a-photo