C#Face Comparison
Optical Character Recognition and face detection have been written before. They are all using ready-made wheels (directly called Baidu SDK). In fact, after taking a closer look at the documentation, you will know how to write it. Moreover, Baidu also provides code examples in multiple languages.