AI.Facial.Emotion 25.3.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package AI.Facial.Emotion --version 25.3.3
                    
NuGet\Install-Package AI.Facial.Emotion -Version 25.3.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AI.Facial.Emotion" Version="25.3.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AI.Facial.Emotion" Version="25.3.3" />
                    
Directory.Packages.props
<PackageReference Include="AI.Facial.Emotion" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AI.Facial.Emotion --version 25.3.3
                    
#r "nuget: AI.Facial.Emotion, 25.3.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=AI.Facial.Emotion&version=25.3.3
                    
Install AI.Facial.Emotion as a Cake Addin
#tool nuget:?package=AI.Facial.Emotion&version=25.3.3
                    
Install AI.Facial.Emotion as a Cake Tool

AI.Facial.Emotion

NuGet

AI.Facial.Emotion is a .NET library for analyzing facial attributes, including emotion. It seamlessly integrates with C#.NET, providing efficient and secure facial analysis with embedded AI models. Ideal for chatbots, customer insights, security, and healthcare applications.

Illustration

🚀 Features

  • Emotion Detection – Recognizes emotions such as happiness, sadness, anger, surprise, and more.
  • Optimized for .NET – Fully compatible with .NET 6/7/8/9.
  • Easy Integration – Works seamlessly with ASP.NET Web APIs, Windows Application, allowing quick integration into existing projects.
  • Supports multiple input formats: URL, Base64, File Stream

📦 Installation

You can install this library via NuGet Package Manager:

dotnet add package AI.Facial.Emotion

📦 Mandatory ingredients

  • If your server runs windows operating system
dotnet add package Emgu.CV.runtime.windows
  • If your server runs ubuntu operating system
dotnet add package Emgu.CV.runtime.ubuntu-x64

⚡ Usage

For example

1️⃣ Analyze emotion from an image URL

using AI.Facial.Emotion;

var analyzer = new EmotionAnalyzer();
var result = await analyzer.AnalyzeEmotionFromUrlAsync("https://example.com/image.jpg");

Console.WriteLine($"Emotion: {result.Emotion}");

2️⃣ Analyze emotion from a Base64 image string

var base64Image = "iVBORw0KGgoAAAANSUhEUgAA...";
var result = await analyzer.AnalyzeEmotionFromBase64Async(base64Image);

Console.WriteLine($"Emotion: {result.Emotion}");

3️⃣ Analyze emotion from a file stream

using var fileStream = File.OpenRead("image.jpg");
var result = await analyzer.AnalyzeEmotionFromStreamAsync(fileStream);

Console.WriteLine($"Emotion: {result.Emotion}");

Example Response

{
  "emotion": "sadness"
}

Contact

For any questions, feel free to contact me or create an issue in the repository.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
25.3.26 458 14 days ago
25.3.16 150 23 days ago
25.3.11 286 a month ago
25.3.4.2231 332 a month ago
25.3.4 351 a month ago
25.3.3 394 a month ago

25.3.3. Improve the performance
25.3.2. Improve the performance