GithubHelp home page GithubHelp logo

dut3062796s / viewfacecore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viewfacecore/viewfacecore

0.0 0.0 0.0 35 KB

C# 超简单的人脸识别库。

License: Apache License 2.0

C++ 20.19% C# 79.81%

viewfacecore's Introduction

ViewFaceCore

  • 超简单的人脸识别库
  • C# 库
  • Nuget Pack

样例

WinForm 摄像头人脸检测

使用

一、1 分钟在你的项目中集成人脸识别

1. 创建你的 .NET 应用

  • .NET Standard >= 2.0
  • .NET Core >= 2.0
  • .NET Framework >= 4.6.1^2

2. 使用 Nuget 安装 ViewFaceCore

  • Author : View
  • Version >= 0.1.1

此 Nuget 包会自动添加依赖的 C++ 库,以及最精简的识别模型。
如果需要其它场景的识别模型,请下载 SeetaFace6 模型文件

3. 在项目中编写你的代码

  • 一个简单的例子 ViewFaceTest/Program.cs

二、说明

ViewFaceCore.Sharp.ViewFace : 人脸识别类

1. 属性说明

属性名称 类型 说明 默认值
ModelPath string 获取或设置模型路径 [ 如非必要,请勿修改 ] ./model/
FaceType FaceType 获取或设置人脸类型 FaceType.Light
MarkType MarkType 获取或设置人脸关键点类型 MarkType.Light
DetectorSetting DetectorSetting 获取或设置人脸检测器设置 new DetectorSetting()

2. 方法说明


using System.Drawing;
using ViewFaceCore.Sharp;
using ViewFaceCore.Sharp.Model;

// 识别 bitmap 中的人脸,并返回人脸的信息。
FaceInfo[] FaceDetector(Bitmap);

// 识别 bitmap 中指定的人脸信息 info 的关键点坐标。
FaceMarkPoint[] FaceMark(Bitmap, FaceInfo);

// 提取人脸特征值。
float[] Extract(Bitmap, FaceMarkPoint[]);

// 计算特征值相似度。
float Similarity(float[], float[]);

// 判断相似度是否为同一个人。
bool IsSelf(float);

说明

项目 语言 说明
ViewFace C++ 基于 SeetaFace6 的接口封装,支持 x86、x64
ViewFaceCore C# 基于 ViewFace 的 C# 形势的封装,支持 AnyCPU
ViewFaceTest C# 调用 ViewFaceCore 实现的简单的图片人脸识别

编译

  • 开发工具 : Visual Studio 2019 16.5.5
  • 构建平台 : Windows 10 专业版 2004 19041.329

ViewFace 项目

  • 下载 SeetaFace6 开发包
  • 设置 不同的平台 [x86、x64] 下的相关依赖路径,链接路径,生成路径
  • 分别编译并得到 不同平台的 ViewFace.dll

ViewFaceCore 项目

  • 直接编译生成 AnyCPU 的 ViewFaceCore.dll
  • 在 .NET 项目的生成文件夹中创建 FaceLibrariesFaceLibraries\x64FaceLibraries\x86model 文件夹
  • SeetaFace6ViewFace 的不同平台的 dll 分别拷贝至 x86 和 x64 文件夹中
  • 将下载的 模型文件 拷贝至 model 文件夹中
  • 在 .NET 项目中引用 ViewFaceCore.dll 即可

viewfacecore's People

Contributors

view12138 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.