![]() |
VOOZH | about |
dotnet add package Light.SDK --version 1.0.7
NuGet\Install-Package Light.SDK -Version 1.0.7
<PackageReference Include="Light.SDK" Version="1.0.7" />
<PackageVersion Include="Light.SDK" Version="1.0.7" />Directory.Packages.props
<PackageReference Include="Light.SDK" />Project file
paket add Light.SDK --version 1.0.7
#r "nuget: Light.SDK, 1.0.7"
#:package Light.SDK@1.0.7
#addin nuget:?package=Light.SDK&version=1.0.7Install as a Cake Addin
#tool nuget:?package=Light.SDK&version=1.0.7Install as a Cake Tool
Light SDK is a professional .NET SDK for ID photo generation and image processing. It is designed for production apps that need reliable background matting, face-aware framing, beauty adjustments, watermarking, printable layouts, and flexible export options.
dotnet add package Light.SDK
The NuGet package is intentionally lightweight and does not include model binaries.
Download models from the official release assets:
models/
detector models/
Light_faceDetect.lsdkm
matting models/
Light.Huma.lsdkm
Light.lite.lsdkm
Light.M01.lsdkm
Light.M02.lsdkm
Light.M03.lsdkm
Light.M04.lsdkm
Light.M05.lsdkm
Light.M06.lsdkm
Light.M07.lsdkm
Light.M08.lsdkm
Light.M09.lsdkm
Light.M10.lsdkm
Light.M11.lsdkm
Light.M12.lsdkm
Light.M13.lsdkm
Light.M14.lsdkm
Light.M15.lsdkm
Light.M16.lsdkm
Light.M17.lsdkm
Light.M18.lsdkm
Light.X01.lsdkm
Light.X02.lsdkm
Light.X03.lsdkm
Light.X04.lsdkm
Light.X05.lsdkm
Light.X06.lsdkm
Light.X07.lsdkm
Light.X08.lsdkm
Light.X09.lsdkm
Light.X10.lsdkm
Light.X11.lsdkm
dotnet add package Light.SDK
Package on NuGet.org: https://www.nuget.org/packages/Light.SDK
D:\lightpxl\modelsusing HivisionIDPhotos.Core.Models.Sdk;
using Light.SDK;
var options = new IdCreatorOptions
{
ModelsRootPath = @"D:\lightpxl\models"
};
using var creator = new IdCreator(options);
var result = creator.CreateFromFile("input.jpg", cfg => cfg
.WithSizePreset(IdPhotoSizePreset.AmericanVisa)
.WithBackgroundColor("FFFFFF")
.WithModels(FaceDetectionModelPreset.LightFaceDetect, MattingModelPreset.LightLite)
.WithFaceLayout(headRatio: 0.2, topDistance: 0.12, faceAlign: true)
.WithStandardExport(OutputImageFormat.Jpeg, dpi: 300));
File.WriteAllBytes("output.jpg", result.StandardImageBytes);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Unrestricted production SDK. Models are external and provided by host applications via IdCreatorOptions model paths.