Hi,
 
I think this might help, you need to expore more on this: 
 
https://dotnet.microsoft.com/apps/machinelearning-ai/ml-dotnet 
 
Also, check this example implementation using OpenCV
 
https://www.codeproject.com/Articles/239849/Multiple-face-detection-and-recognition-in-real