Yucv 1.1.6
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package Yucv --version 1.1.6
NuGet\Install-Package Yucv -Version 1.1.6
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="Yucv" Version="1.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yucv" Version="1.1.6" />
<PackageReference Include="Yucv" />
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 Yucv --version 1.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Yucv, 1.1.6"
#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 Yucv@1.1.6
#: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=Yucv&version=1.1.6
#tool nuget:?package=Yucv&version=1.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
YUCV — 高性能图像视觉库 (.NET)
YUCV 是自研高性能工业视觉库:API 风格对 OpenCV 用户友好,有 NVIDIA GPU 时算子链全程显存驻留加速,无 GPU 时自动回退自研 CPU 后端(AVX2 + OpenMP),业务代码零改动。
安装
dotnet add package Yucv
支持 .NET 8+ / .NET Framework 4.6.2+(netstandard2.0)。原生库已随包内置,构建时自动拷贝到输出目录,无需手工部署。
运行前提
| 依赖 | 说明 |
|---|---|
CUDA 13 cuBLAS 运行库<br>cublas64_13.dll + cublasLt64_13.dll |
必需(装载期依赖,缺失时本库无法加载,CPU 模式也不行)。安装 CUDA Toolkit 13,或通过发布方渠道获取 |
| NVIDIA GPU(RTX 50 系 / sm_120)+ 新版驱动 | 可选,仅 GPU 加速需要;无 GPU 自动 CPU 模式 |
快速上手
using Yucv;
using Yucv.Operators;
// 创建图像:设备省略 = 自动(有 GPU 用显存,无 GPU 用主存)
byte[] raw = ...; // 相机帧 / 文件字节
using var img = Mat.FromPixels(raw, width, height, PixelType.Gray8);
// 算子链:数据驻留原设备,不产生中间回传
using var mask = img.GaussianBlur(5, 1.2) // 高斯
.Threshold(60); // 二值化
long area = mask.CountNonZero();
var mm = img.MinMaxLoc(); // MinValue/MaxValue/MinLoc/MaxLoc
// 文件读写(自研编解码,中文路径开箱即用)
using var file = Mat.Load("零件.png");
file.Save("结果.tif");
// 显式设备控制
using var gpu = img.ToGpu(); // 上显存(无 GPU 抛异常)
using var cpu = gpu.ToCpu(); // 回主存
包内容
| 文件 | 说明 |
|---|---|
lib/net8.0、lib/netstandard2.0 |
C# 主程序集 Yucv.dll |
runtimes/win-x64/native/yucv_native.dll |
原生库(CUDA Runtime/FFT/OpenMP/CRT 已静态编入) |
runtimes/win-x64/native/vcomp140.dll |
OpenMP 运行库 |
build/Yucv.targets |
老式工程自动拷贝原生库 |
GPU 推理组件(YOLO / 分割等 TensorRT 运行库)不在本包内,通过附加包或发布方渠道提供。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
-
net8.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.