TensorStack.Extractors 0.1.9

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package TensorStack.Extractors --version 0.1.9
                    
NuGet\Install-Package TensorStack.Extractors -Version 0.1.9
                    
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="TensorStack.Extractors" Version="0.1.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TensorStack.Extractors" Version="0.1.9" />
                    
Directory.Packages.props
<PackageReference Include="TensorStack.Extractors" />
                    
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 TensorStack.Extractors --version 0.1.9
                    
#r "nuget: TensorStack.Extractors, 0.1.9"
                    
#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.
#:package TensorStack.Extractors@0.1.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TensorStack.Extractors&version=0.1.9
                    
Install as a Cake Addin
#tool nuget:?package=TensorStack.Extractors&version=0.1.9
                    
Install as a Cake Tool

TensorStack.Extractors

Canny

Hed

Depth

Background Removal

Image Example

// Extractor config
var config = new ExtractorConfig("hed.onnx", Provider.DirectML);

// Create Pipeline
using (var pipeline = ExtractorPipeline.Create(config))
{
    // Load Pipeline
    await pipeline.LoadAsync();

    // Read input image
    var input = new ImageInput("Input.png");

    // Options
    var options = new ExtractorImageOptions(input);

    // Run Extractor Pipeline
    var outputTensor = await pipeline.RunAsync(options);

    // Save Output image
    await outputTensor.SaveAsync("Output.png");
}

Video Example

// Extractor config
var config = new ExtractorConfig("hed.onnx", Provider.DirectML);

// Create Pipeline
using (var pipeline = ExtractorPipeline.Create(config))
{
    // Load Pipeline
    await pipeline.LoadAsync();

    // Read input video
    var video = new VideoInput("Input.mp4");

    // Get video input
    var input = await video.GetTensorAsync();

    // Options
    var options = new ExtractorVideoOptions(input);

    // Run Extractor Pipeline
    var outputTensor = await pipeline.RunAsync(inputTensor);

    // Save Output video
    await outputTensor.SaveAync("Output.mp4");
}

Video Stream Example

// Extractor config
var config = new ExtractorConfig("hed.onnx", Provider.DirectML);

// Create Pipeline
using (var pipeline = ExtractorPipeline.Create(config))
{
    // Load Pipeline
    await pipeline.LoadAsync();

    // Read input video
    var video = new VideoInput("Input.mp4");

    // Get video stream
    var videoStream = video.GetStreamAsync();

    // Options
    var options = new ExtractorStreamOptions(videoStream);

    // Get Extractor stream
    videoStream = pipeline.RunAsync(options);

    // Save Video Steam
    await videoStream.SaveAync("Output.mp4");
}
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
0.1.18 163 10/23/2025
0.1.17 85 10/17/2025
0.1.9 160 10/14/2025