This is a .NET API for detecting faces in images using Microsoft Azure Cognitive Services.
- Detects faces in images
- Retrieves face attributes such as occlusion, accessories, blur, exposure, noise, glasses, and head pose
- .NET Core
- Microsoft Azure Cognitive Services
- ASP.NET Core MVC
- .NET Core SDK
- Azure Cognitive Services Face API subscription
-
Clone the repository:
git clone https://github.com/dcosodev/cognitve-face-detection.git cd face-detection-api
-
Set up your Azure Face API credentials in appsettings.json:
"AzureFaceApi": { "Endpoint": "your_endpoint_here", "SubscriptionKey": "your_subscription_key_here" }
-
Build and run the project:
dotnet build dotnet run
-
Endpoint: 'POST /api/FaceDetection/detect'
-
Request Body: { "url": "https://example.com/image.jpg" }