Practical overview
When it fits
Use it when a .NET application needs a classifier-generated label to inform review of submitted images, GIFs or video. Video workflows require FFmpeg; macOS has an additional TensorFlow package requirement and an M1 limitation stated in the README.
Who it is for
- C# developers building user-generated-content moderation into .NET applications.
- Teams that need documented image, GIF or video classification calls for media files, URLs or image byte arrays.
Documented uses
- Classify a single image file, web image or byte array.
- Classify GIFs and video files or URLs.
- Process multiple image files and inspect each predicted label.
- Register the classifier through .NET dependency injection.
Requirements & limits
The project is distributed as a NuGet package and its public repository lists an MIT license.
- The library targets .NET Core 2.0 and later and is written in C#.
- The model distinguishes Pornography, Sexy, Hentai and Neutral rather than returning only one generic explicit-content label.
- Video classification requires FFmpeg to be installed and available as the
ffmpegcommand. - macOS use requires SciSharp.TensorFlow.Redist 2.3.1; the README says M1 Macs cannot use the library under its stated TensorFlow and ML.NET limitation.
- GPU support instructions specify CUDA 10.1 and cuDNN 7.6.4 and report that later CUDA versions did not work for the author.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Classify an image file in a .NET app
Add the documented package and call the image-file classifier to obtain a predicted result.
Before you start
- A .NET Core 2.0 or later application.
- The NsfwSpy NuGet package.
Steps
Install the package with
dotnet add package NsfwSpyor the documented Package Manager command.Create an
NsfwSpyinstance.Call
ClassifyImagewith an image file path and store the returned result.
Expected outcome
The call returns a classification result for the image file.
Guide limitations
- The README states that the classifier is not perfect; it does not promise error-free moderation.
- This recipe covers image files, not video setup or deployment.
Prepare video classification on macOS
Install the documented video dependency and macOS TensorFlow package prerequisites.
Before you start
- A macOS system supported by the documented ML.NET and TensorFlow stack.
- Homebrew for the documented FFmpeg installation method.
- The NsfwSpy NuGet package.
Steps
Install FFmpeg with
brew install ffmpeg.Install
SciSharp.TensorFlow.Redistversion 2.3.1 using NuGet.Ensure the
ffmpegcommand is available in the command line before using the video-classification methods.
Expected outcome
The documented FFmpeg and macOS TensorFlow prerequisites are in place for the library's video-classification methods.
Guide limitations
- The README says Macs using M1 chips currently cannot use NsfwSpy because TensorFlow is unsupported there with ML.NET.
- These are setup steps; they do not demonstrate a video-classification call.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- NsfwSpy/NsfwSpy.NET · Official homepage title · retained in its source language

