Giter Club home page Giter Club logo

viewfacecoredemo's Introduction

ViewFaceCore 示例

所有示例程序已移至 ViewFaceCore 项目的 src/Examples 目录下

viewfacecoredemo's People

Contributors

view12138 avatar

Stargazers

Dave Ma avatar  avatar Regina-pxk avatar  avatar 爱吃糖葫芦 avatar  avatar  avatar Chet avatar  avatar  avatar rong.li avatar  avatar  avatar  avatar 元龙 avatar  avatar  avatar  avatar  avatar  avatar  avatar lztkdr avatar 天使也掉毛儿 avatar  avatar vipyjb avatar  avatar 疯风愚雨 avatar  avatar Chen Fuyou avatar  avatar 新无止竞博客 avatar zizi avatar  avatar Vincent Wang avatar  avatar wangxin avatar Leon Tang avatar O0oo0O avatar TBoy avatar NoName avatar  avatar PenGure avatar  avatar Sun avatar yangsea101 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

viewfacecoredemo's Issues

Error

run demo has some problem:
System.TypeInitializationException
HResult=0x80131534
Message=“ViewFaceCore.Plus.ViewFaceBridge”的类型初始值设定项引发异常。
Source=ViewFaceCore
StackTrace:
在 ViewFaceCore.Plus.ViewFaceBridge.set_ModelPath(String value)
在 ViewFaceCore.Sharp.ViewFace..ctor(String modelPath)
在 ViewFaceCore.Sharp.ViewFace..ctor()
在 FaceDetectionDemo.FormDemo..ctor() 在 E:\学习\项目\git\ViewFaceCoreDemo\FaceDetectionDemo\FormDemo.cs 中: 第 51 行
在 FaceDetectionDemo.Program.Main() 在 E:\学习\项目\git\ViewFaceCoreDemo\FaceDetectionDemo\Program.cs 中: 第 19 行

此异常最初是在此调用堆栈中引发的:
[外部代码]

内部异常 1:
DirectoryNotFoundException: 找不到本机库目录:...\ViewFaceCoreDemo\FaceDetectionDemo\bin\Debug\viewfacecore\win\x86

调用人脸识别出错

image

您好,请问下这个是这样调用的么?看你的API 提取特征值的方法就是这样,但是报错了,能否帮忙看看?

webapi问题

麻烦问下,用webapi做成服务然后调用一切正常,但是连续多访问几次服务就会蹦掉,是我哪里出问题了么?

性能提升

你好 按照示例测试,完成一次人脸比对的完整过程大概需要3秒钟时间,加上其它逻辑处理后会更长。
请问如何再优化调用,能够进入到1秒内或者较短时间完成整个过程,2个测试图片均不超过300K。

下面是测试代码
`
private void button1_Click(object sender, EventArgs e)
{
ViewFace.FaceType = FaceType.Normal;

        //目标图片
        Bitmap targetImg = (Bitmap)Image.FromFile(@"D:\\测试文件\\裁.jpg");
        FaceInfo[] targetFaces = ViewFace.FaceDetector(targetImg);
        FaceMarkPoint[] targetMark = ViewFace.FaceMark(targetImg, targetFaces[0]);
        AntiSpoofingStatus targetass = ViewFace.AntiSpoofing(targetImg, targetFaces[0], targetMark, true);
        float[] targetExtract = ViewFace.Extract(targetImg, targetMark);

        //基准图片
        Bitmap baseImg = (Bitmap)Image.FromFile("D:\\测试文件\\2\\大文件4压缩后.png");
        FaceInfo[] baseFaces = ViewFace.FaceDetector(baseImg);
        FaceMarkPoint[] baseMark = ViewFace.FaceMark(baseImg, baseFaces[0]);
        //AntiSpoofingStatus baseass = ViewFace.AntiSpoofing(baseImg, baseFaces[0], baseMark, true);
        float[] baseExtract = ViewFace.Extract(baseImg, baseMark);

        //结果
        float similarity = ViewFace.Similarity(baseExtract, targetExtract);
        bool isSelf = ViewFace.IsSelf(similarity);
    }

`

Error

Hello @View12138
I am new in ViewFaceCoreDemo
when I want to test this code ,
I got this error ,
Error :
System.OverflowException: 'Arithmetic operation resulted in an overflow.'
this line:
ViewFace.Extract(oldImg, oldPoints)

My Code :

Bitmap _oldImg = new Bitmap(@"images/Jay_4.jpg");
Bitmap oldImg = (Bitmap)ResizeBitmap(_oldImg, 1024, 768);
var oldFaceInfos = ViewFace.FaceDetector(oldImg);
var oldPoints = ViewFace.FaceMark(oldImg, oldFaceInfos[0]);
var oldEigenValues = ViewFace.Extract(oldImg, oldPoints);

单步执行不报错,F5话就报错了

托管调试助手 "FatalExecutionEngineError":“运行时遇到了错误。此错误的地址为 0x29276e66,在线程 0x608 上。错误代码为 0xc0000005。此错误可能是 CLR 中的 bug,或者是用户代码的不安全部分或不可验证部分中的 bug。此 bug 的常见来源包括用户对 COM-interop 或 PInvoke 的封送处理错误,这些错误可能会损坏堆栈。”
大概定位到这里 var infos = await ViewFace.FaceTrackAsync(bitmap); // 识别画面中的人脸,机器不支持 fma和AVX,会是因为机器性能问题?

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.