Exemplo n.º 1
0
 public void CreateFaceEngine()
 {
     if (this._faceEngine == IntPtr.Zero)
     {
         this._faceEngine = WinFaceCore.Wis_Create("./");
         Console.WriteLine(string.Format("Create FaceDetect Engine Scuess {0}", this._faceEngine));
     }
 }
Exemplo n.º 2
0
        public int DetectFaces(byte[] imgRgb24, int width, int height, int widthstep, out WisFace[] winFaces, int maxCount)
        {
            int result;

            try
            {
                object obj = this._obj;
                lock (obj)
                {
                    winFaces = new WisFace[maxCount];
                    result   = WinFaceCore.Wis_DetectFaces(this._faceEngine, imgRgb24, width, height, widthstep, winFaces, maxCount);
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(result);
        }
Exemplo n.º 3
0
 public void Destroy(IntPtr engine)
 {
     WinFaceCore.Wis_Destroy(engine);
 }