Image Recognition with .NET, Amazon Rekognition & ImageSharp NuGet package 😮
Face Analysis + Detection, Blurring Faces, Label Detection, Content Moderation and other features...
Hi Everyone, I just wrote a new article where I explored Amazon Rekognition and tried out various features like Face Analysis, Label Detection, and Content Moderation.
Read about it here: https://codewithmukesh.com/blog/image-recognition-in-dotnet-with-amazon-rekognition/
I built an ASP.NET Core Web APi (.NET 8 with Minimal API) with endpoints to perform the following operations.
1. Detect Labels
Ability to detect objects in an image.
2. Detect Faces and blur them.
There could be use cases where you need to detect multiple faces from an image and Blur them out for privacy concerns. This is probably my favorite part of this tutorial. When you send the image to Amazon Rekognition API, it will return you metadata about the face including the count, and the bounding box details. You can use this data, and use libraries like ImageSharp to draw Blur Boxes on top of your image. Here is the result.
3. Content Moderation
Able to detect inappropriate content from images and flag them. Here is the response from the API for an NSFW image.
The entire source code is included. I hope you have an interesting read. Thanks!
Article: https://codewithmukesh.com/blog/image-recognition-in-dotnet-with-amazon-rekognition/