Sdcb.SimdGcdrNet.Models 1.0.0

Prefix Reserved
dotnet add package Sdcb.SimdGcdrNet.Models --version 1.0.0
                    
NuGet\Install-Package Sdcb.SimdGcdrNet.Models -Version 1.0.0
                    
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="Sdcb.SimdGcdrNet.Models" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sdcb.SimdGcdrNet.Models" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Sdcb.SimdGcdrNet.Models" />
                    
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 Sdcb.SimdGcdrNet.Models --version 1.0.0
                    
#r "nuget: Sdcb.SimdGcdrNet.Models, 1.0.0"
                    
#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 Sdcb.SimdGcdrNet.Models@1.0.0
                    
#: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=Sdcb.SimdGcdrNet.Models&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Sdcb.SimdGcdrNet.Models&version=1.0.0
                    
Install as a Cake Tool

Sdcb.SimdGcdrNet.Models

The GCDRNet models (simplified GC-Net + DR-Net ONNX, ~21 MB) as embedded resources, for Sdcb.SimdGcdrNet — pure C# document-image shadow removal / appearance enhancement (CPU SIMD, Vulkan, Metal; no onnxruntime).

Requires .NET 10 (net10.0). No dependencies, versioned independently of the engine. The models are exposed as zero-copy ReadOnlySpan<byte> views of the loaded assembly image, so there are no model files to deploy.

using Sdcb.SimdGcdrNet;
using Sdcb.SimdGcdrNet.Models;

using GcdrEnhancer enh = GcdrEnhancer.FromBytes(GcdrModels.GcNet, GcdrModels.DrNet, GcdrBackend.Auto);
byte[] dst = enh.Enhance(bgr, width, height);   // tightly packed BGR24

See the project README for the full API, backends and benchmarks.

License

MIT, following the upstream GCDRNet weights (Copyright (c) 2024 Jiaxin Zhang); the full notice is in THIRD-PARTY-NOTICES.txt in this package. The engine package Sdcb.SimdGcdrNet is Apache-2.0. If you use the models, please cite:

@article{zhang2023appearance,
  title={Appearance Enhancement for Camera-captured Document Images in the Wild},
  author={Zhang, Jiaxin and Liang, Lingyu and Ding, Kai and Guo, Fengjun and Jin, Lianwen},
  journal={IEEE Transactions on Artificial Intelligence},
  year={2023}
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • No dependencies.

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
1.0.0 39 10/14/2026