1 Star 0 Fork 100

tongjiajian / ViewFaceCore

forked from ViewFaceCore / ViewFaceCore 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ViewFaceCore

Nuget    GitHub license    GitHub stars    GitHub forks


—— 🪧 关于  | ⭐ 快速开始  | 🔧 构建  | 📄 文档  | ❓ 常见问题  | 📦 使用许可 ——

🪧 关于

  • 一个基于 SeetaFace6 的 .NET 人脸识别解决方案
  • 本项目受到了 SeetaFaceEngine.Net 的启发
  • 开源、免费、跨平台 (win/linux)

⭐ 快速开始

  • 受支持的 .NET 框架 和 操作系统

    目标框架 最低版本 操作系统
    .NET Framework 4.0 win-x64、win-x86
    .NET Standard 2.0 win-x64、win-x86
    .NET / .NET Core 3.1 win-x64、win-x86、linux-x64
  • 简单的人脸信息检测

    1. 使用 nuget 安装依赖
      包名称 最小版本 build 文件夹
      ViewFaceCore 0.3.5 viewfacecore
      ViewFaceCore.face_detector 6.0.0 models
    2. 获取人脸信息
      using System;
      using System.Drawing;
      using ViewFaceCore.Sharp;
      
      namespace YourFaceProject
      {
          class Program
          {
              static void Main(string[] args)
              {
                  ViewFace face = new ViewFace();
                  string filename = @"[your face image file path]";
                  Bitmap bitmap = (Bitmap)Image.FromFile(filename);
                  var infos = face.FaceDetector(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.Read();
              }
          }
      }

🔧 构建

  • 项目结构

    Bridges
    Models
    SeetaFace/index
    Simples
    Tests
    ViewFaceCore

  • 开发环境

    • Visual Studio 2022 (17.0.2)
    • Windows 11 专业版 (21H2)
    • Ubuntu 20.04 (WSL)
  • 编译过程

    使用 SeetaFace6 开发包 编译

    描述 后缀名 放置路径
    头文件 *.h ViewFaceCore\SeetaFace\index\build\include\seeta\
    —— —— ——
    Windows 开发包 (x64) *.dll ViewFaceCore\SeetaFace\index\build\bin\x64\
    Windows 开发包 (x64) *.lib ViewFaceCore\SeetaFace\index\build\lib\x64\
    Windows 开发包 (x86) *.dll ViewFaceCore\SeetaFace\index\build\bin\x86\
    Windows 开发包 (x86) *.lib ViewFaceCore\SeetaFace\index\build\lib\x86\
    Ubuntu 开发包 (x64) *.so ViewFaceCore\SeetaFace\index\build\lib64\
    Ubuntu 开发包 (arm64) *.so ViewFaceCore\SeetaFace\index\build\lib\arm64\
    Ubuntu 开发包 (arm) *.so ViewFaceCore\SeetaFace\index\build\lib\arm\

    全部重新编译

    1. 配置 %VctPath% 环境变量 (即:vcvarsall.bat 脚本的路径)

      以 Visual Studio 2022 为例:
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build

    2. 按照 SeetaFace 编译依赖 配置好依赖工具
      • 本项目使用 MSVC (win) / GCC (linux on wsl) 编译完成
      1. 编译工具
      2. For linux
        GNU Make 工具
        GCC 或者 Clang 编译器
      3. For windows
        MSVC 或者 MinGW.
        jom
      4. CMake
      5. 依赖架构
        CPU 支持 AVX 和 FMA [可选](x86)或 NENO(ARM)支持
    3. 首先编译 OpenRoleZoo SeetaAuthorizeTenniS 三个项目
      • 在项目的 craft 文件夹下启动 shell

      powershell > ./build.win.vc14.all.cmd
      linux shell(wsl) > ./build.linux.all.sh

    4. 然后编译其他项目 SeetaMaskDetectorFaceAntiSpoofingX6FaceBoxesFaceRecognizer6FaceTracker6LandmarkerOpenRoleZooPoseEstimator6QualityAssessor3SeetaAgePredictorSeetaAuthorizeSeetaEyeStateDetectorSeetaGenderPredictor
      • 在项目的 craft 文件夹下启动 shell

      powershell > ./build.win.vc14.all.cmd
      linux shell(wsl) > ./build.linux.all.sh

📄 文档

❓ 常见问题

📦 使用许可

MIT © 2021 View

MIT License Copyright (c) 2021 View Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

C# 超简单的人脸识别库。 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/tjiajian/ViewFaceCore.git
git@gitee.com:tjiajian/ViewFaceCore.git
tjiajian
ViewFaceCore
ViewFaceCore
main

搜索帮助