ViewFaceCore 0.4.0-alpha2
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. 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.
This is a prerelease version of ViewFaceCore.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ViewFaceCore --version 0.4.0-alpha2
NuGet\Install-Package ViewFaceCore -Version 0.4.0-alpha2
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="ViewFaceCore" Version="0.4.0-alpha2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ViewFaceCore --version 0.4.0-alpha2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ViewFaceCore, 0.4.0-alpha2"
#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 ViewFaceCore as a Cake Addin #addin nuget:?package=ViewFaceCore&version=0.4.0-alpha2&prerelease // Install ViewFaceCore as a Cake Tool #tool nuget:?package=ViewFaceCore&version=0.4.0-alpha2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
1. 关于
- 一个基于 SeetaFace6 的 .NET 人脸识别解决方案
- 本项目受到了 SeetaFaceEngine.Net 的启发
- 开源、免费、跨平台 (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、5.0、6.0、7.0 | win ( x64/x86 )、linux ( arm/arm64/x64 ) |
2.2 简单的人脸信息检测
以 Windows x64平台 为例,一个简单的人脸检测Demo。
- 使用 nuget 安装依赖
包名称 | 最小版本 | 生成文件夹 | 说明 |
---|---|---|---|
ViewFaceCore | —— | ViewFaceCore .NET 核心库 | |
ViewFaceCore.all_models | viewfacecore\models |
人脸检测的模型支持(图省事可以直接安装这个) | |
ViewFaceCore.runtime.win.x64 | viewfacecore\win\x64 |
Windows-x64 的本机运行时,其它平台自行选择安装,可安装多个 | |
ViewFaceCore.Extension.SkiaSharp | <span style="display:inline-block;width:150px"> </span> | —— | SkiaSharp图像处理扩展,ImageSharp、SkiaSharp、System.Drawing三选一 |
- 获取人脸信息
using SkiaSharp;
using System;
using ViewFaceCore.Core;
using ViewFaceCore.Model;
namespace ViewFaceCore.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. 使用许可
<div align="center">
Copyright (c) 2021, View | Copyright (c) 2019, SeetaTech
</div>
[源] >
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 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 was computed. 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.
NuGet packages (7)
Showing the top 5 NuGet packages that depend on ViewFaceCore:
Package | Downloads |
---|---|
ViewFaceCore.Extension.SkiaSharp
ViewFaceCore 的 SkiaSharp 实现。 |
|
ViewFaceCore.Extension.SystemDrawing
ViewFaceCore 的 System.Drawing 实现。 |
|
LDFCore.Face
Package Description |
|
ViewFaceCore.Extension.ImageSharp
ViewFaceCore 的 ImageSharp 实现。 |
|
ViewFaceCore.Extension.DependencyInjection
ViewFaceCore 的依赖载入扩展。 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on ViewFaceCore:
Repository | Stars |
---|---|
ViewFaceCore/ViewFaceCore
C# 超简单的离线人脸识别库。( 基于 SeetaFace6 )
|
Version | Downloads | Last updated | |
---|---|---|---|
0.4.0-alpha4 | 831 | 11/20/2022 | |
0.4.0-alpha3 | 258 | 11/10/2022 | |
0.4.0-alpha2 | 370 | 9/25/2022 | |
0.4.0-alpha1 | 329 | 9/13/2022 | |
0.3.8 | 7,378 | 8/18/2022 | |
0.3.7 | 3,640 | 8/13/2022 | |
0.3.6 | 1,258 | 8/10/2022 | |
0.3.5 | 1,335 | 12/30/2021 | |
0.3.4 | 4,574 | 9/18/2020 | |
0.2.1 | 2,747 | 7/21/2020 | |
0.1.2 | 979 | 7/21/2020 | |
0.0.9 | 1,046 | 6/17/2020 |