Giter Site home page Giter Site logo

billfox-lui / seetaface6sharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seetaface6sharp/seetaface6sharp

0.0 0.0 0.0 310.7 MB

C#人脸识别,人脸认证。一个基于 SeetaFace6 的 .NET 离线人脸识别解决方案。

License: MIT License

Shell 3.32% JavaScript 0.73% C++ 4.83% C# 79.63% CSS 0.26% HTML 3.55% Batchfile 7.43% Dockerfile 0.26%

seetaface6sharp's Introduction

SeetaFace6Sharp

Nuget    GitHub license    GitHub stars    GitHub forks


—— 💎 关于  | ⭐ 快速开始  | 🚀 性能  | 🔧 构建  | 📦 包清单  | 🐟 API文档   ——
—— 🔎 参考  | ❓ 问答  | 🧩 贡献  | 📄 许可   ——

💎 关于

  • 一个基于 SeetaFace6 的 .NET 离线人脸识别解决方案
  • 此项目来源于ViewFaceCore,在ViewFaceCore基础上二次开发与分发
  • 开源、免费、跨平台

受支持的 .NET Runtime 和 操作系统

OS Runtime  x86 x64 ARM ARM64
Windows .NET Framework
Windows .NET Core 3.1+
Linux .NET Core 3.1+

注意: Windows 系统需要安装Visual C++ 14,下载链接:https://learn.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist

⭐ 快速开始

  • Examples

  • Windows x64 下, 快速集成人脸检测

    1. 创建控制台项目
    2. 使用 Nuget 安装以下依赖
    包名称 版本 说明
    SeetaFace6Sharp Version SeetaFace6Sharp 核心包
    SeetaFace6Sharp.model.face_detector Version 人脸检测 模型包
    SeetaFace6Sharp.runtime.win.x64 Version Windows-x64 运行时包
    SeetaFace6Sharp.Extension.SystemDrawing Version System.Drawing 图像扩展包
    1. 获取人脸信息
      using SeetaFace6Sharp;
      using System;
      using System.Drawing;
    
      namespace ConsoleApp1
      {
      	internal class Program
      	{
      		static void Main(string[] args)
      		{
      			string imagePath = @"images/Jay_3.jpg";
      			using var bitmap = (Bitmap)Image.FromFile(imagePath);
      			using var imgData = bitmap.ToFaceImage();
      			using FaceDetector faceDetector = new FaceDetector();
      			FaceInfo[] infos = faceDetector.Detect(imgData);
      			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();
      		}
      	}
      }

🚀 性能

测试项目 特征长度 速度(AMD 5950x) 速度(Intel N305) 速度(NVDIA GTX1650) 速度(RK3588)
特征值检测 1024 14ms 42ms 7ms 未测试
人脸比对(从跟踪到比对) 1024 54ms 96ms 18ms 未测试

🔧 构建

📦 包清单

🐟 API文档

🔎 参考

❓ 问答

🧩 贡献

📄 许可

SeetaFace 开源版 可以免费用于商业和个人用途。如果需要更多的商业支持,请联系商务邮件 [email protected]

seetaface6sharp's People

Contributors

withsalt 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.