ViewFaceCore 0.4.0-alpha3

This is a prerelease version of ViewFaceCore.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ViewFaceCore --version 0.4.0-alpha3                
NuGet\Install-Package ViewFaceCore -Version 0.4.0-alpha3                
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-alpha3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ViewFaceCore --version 0.4.0-alpha3                
#r "nuget: ViewFaceCore, 0.4.0-alpha3"                
#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-alpha3&prerelease

// Install ViewFaceCore as a Cake Tool
#tool nuget:?package=ViewFaceCore&version=0.4.0-alpha3&prerelease                

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。

  1. 使用 nuget 安装依赖
包名称 最小版本 生成文件夹 说明
ViewFaceCore alternate text is missing from this package README image —— ViewFaceCore .NET 核心库
ViewFaceCore.all_models alternate text is missing from this package README image viewfacecore\models 人脸检测的模型支持(图省事可以直接安装这个)
ViewFaceCore.runtime.win.x64 alternate text is missing from this package README image viewfacecore\win\x64 Windows-x64 的本机运行时,其它平台自行选择安装,可安装多个
ViewFaceCore.Extension.SkiaSharp <span style="display:inline-block;width:150px"> alternate text is missing from this package README image </span>  —— SkiaSharp图像处理扩展,ImageSharp、SkiaSharp、System.Drawing三选一
  1. 获取人脸信息
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 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 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.
  • net7.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 )