Library for computing BRISQUE scores using OpenCV and native interop.
$ dotnet add package Luxoria.Algorithm.BrisqueScoreThis NuGet package provides a .NET wrapper for the BRISQUE (Blind/Referenceless Image Spatial Quality Evaluator) algorithm implemented in native C++ with OpenCV. It allows .NET developers to compute the perceptual quality of images using the BRISQUE algorithm without requiring a reference image.
x86 (32-bit Windows)x64 (64-bit Windows)arm64 (ARM-based 64-bit Windows)brisque_quality.dll for all supported architectures.net8.0 or compatible.The precompiled native libraries are built from the source code available at LuxoriaSoft/brisque_impl
You can install the package via NuGet Package Manager or the .NET CLI:
Search for Luxoria.Algorithm.BrisqueScore in the NuGet Package Manager and install it.
Run the following command:
dotnet add package Luxoria.Algorithm.BrisqueScore --version 3.0.3.4100
using Luxoria.Algorithm.BrisqueScore;
class Program
{
static void Main()
{
string modelPath = @"path\to\brisque_model_live.yml";
string rangePath = @"path\to\brisque_range_live.yml";
string imagePath = @"path\to\image.jpg";
try
{
using var brisque = new BrisqueInterop(modelPath, rangePath);
double score = brisque.ComputeScore(imagePath);
Console.WriteLine($"BRISQUE Score: {score}");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}
Luxoria.Algorithm.BrisqueScore is licensed under the Apache 2.0 License. See LICENSE for more information.
LuxoriaSoft