Does there exist an API accessible from C# that detects faces in images?

This page summarizes the projects mentioned and recommended in the original post on /r/AskProgramming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • OpenCvSharp

    OpenCV wrapper for .NET

  • Alternatively, you can get into the nitty gritty of face detection yourself. OpenCV is a massive, open source project for all kinds computer vision tasks. Without jumping into the proprietary world, this is one of the most popular and capable computer vision libraries available. While powerful, OpenCV is comparatively low level; giving you the tools you need to accomplish your task, rather than a direct, single method to call. This tutorial goes into depth on how you'd go about training facial models to create your own detection methods. You'll notice that the example is written in C++. The con with this option (aside from it being more complex) is that OpenCV is largely used in the context of C++ or Python. However, it does have C# wrappers. Emgu CV is probably the most popular .NET wrapper for OpenCV, though there are other wrappers available. Here is a nice tutorial using OpenCVSharp, which is a bit closer to the native C++ API OpenCV uses.

  • OpenCV

    Open Source Computer Vision Library

  • Alternatively, you can get into the nitty gritty of face detection yourself. OpenCV is a massive, open source project for all kinds computer vision tasks. Without jumping into the proprietary world, this is one of the most popular and capable computer vision libraries available. While powerful, OpenCV is comparatively low level; giving you the tools you need to accomplish your task, rather than a direct, single method to call. This tutorial goes into depth on how you'd go about training facial models to create your own detection methods. You'll notice that the example is written in C++. The con with this option (aside from it being more complex) is that OpenCV is largely used in the context of C++ or Python. However, it does have C# wrappers. Emgu CV is probably the most popular .NET wrapper for OpenCV, though there are other wrappers available. Here is a nice tutorial using OpenCVSharp, which is a bit closer to the native C++ API OpenCV uses.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts