SeetaFace6Sharp 1.0.5
dotnet add package SeetaFace6Sharp --version 1.0.5
NuGet\Install-Package SeetaFace6Sharp -Version 1.0.5
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="SeetaFace6Sharp" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SeetaFace6Sharp --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SeetaFace6Sharp, 1.0.5"
#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.
// Install SeetaFace6Sharp as a Cake Addin
#addin nuget:?package=SeetaFace6Sharp&version=1.0.5
// Install SeetaFace6Sharp as a Cake Tool
#tool nuget:?package=SeetaFace6Sharp&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
1. 关于
- 一个基于 SeetaFace6 的 .NET 离线人脸识别解决方案
- 此项目来源于ViewFaceCore,在ViewFaceCore基础上二次开发与分发
- 开源、免费、跨平台 (win/linux)
2. 快速开始
2.1 受支持的 .NET 框架 和 操作系统
目标框架 | 最低版本 | 操作系统 |
---|---|---|
.NET Framework | 4.0 | win ( x64/x86 ) |
.NET Standard | 2.0 | win ( x64/x86 ) |
.NET / .NET Core | 3.1+ | win ( x64/x86 )、linux ( arm/arm64/x64 ) |
2.2 简单的人脸信息检测
以 Windows x64平台 为例,一个简单的人脸检测Demo。
- 使用 nuget 安装依赖
包名称 | 最小版本 | 生成文件夹 | 说明 |
---|---|---|---|
SeetaFace6Sharp | —— | SeetaFace6Sharp .NET 核心库 | |
SeetaFace6Sharp.model.all | runtimes\models |
人脸检测的模型支持(图省事可以直接安装这个) | |
SeetaFace6Sharp.runtime.win.x64 | runtimes\win-x64\native |
Windows-x64 的本机运行时,其它平台自行选择安装,可安装多个 | |
SeetaFace6Sharp.Extension.SkiaSharp | —— | SkiaSharp图像处理扩展,ImageSharp、SkiaSharp、System.Drawing三选一 |
- 获取人脸信息
using SkiaSharp;
using System;
using SeetaFace6Sharp;
namespace SeetaFace6Sharp.Example.ConsoleApp
{
internal class Program
{
private readonly static string imagePath = @"images/Jay_3.jpg";
static void Main(string[] args)
{
using var bitmap = SKBitmap.Decode(imagePath);
using FaceDetector faceDetector = new FaceDetector();
FaceInfo[] infos = faceDetector.Detect(bitmap);
Console.WriteLine($"识别到的人脸数量:{infos.Length} 个人脸信息:\n");
Console.WriteLine($"No.\t人脸置信度\t位置信息");
for (int i = 0; i < infos.Length; i++)
{
Console.WriteLine($"{i}\t{infos[i].Score:f8}\t{infos[i].Location}");
}
Console.ReadKey();
}
}
}
更多案例参见 src/Examples
3. 使用许可
Copyright (c) 2021, SeetaFace6Sharp | Copyright (c) 2019, SeetaTech
[源] >
SeetaFace
开源版可以免费用于商业和个人用途。如果需要更多的商业支持,请联系商务邮件 bd@seetatech.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.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.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on SeetaFace6Sharp:
Package | Downloads |
---|---|
SeetaFace6Sharp.Extension.SystemDrawing
SeetaFace6Sharp 的 System.Drawing 实现。 |
|
SeetaFace6Sharp.Extension.SkiaSharp
SeetaFace6Sharp 的 SkiaSharp 实现。 |
|
SeetaFace6Sharp.Extension.DependencyInjection
SeetaFace6Sharp 的依赖注入扩展。 |
|
SeetaFace6Sharp.Extension.ImageSharp
SeetaFace6Sharp 的 ImageSharp 实现。 |
GitHub repositories
This package is not used by any popular GitHub repositories.