public void CreateFaceEngine() { if (this._faceEngine == IntPtr.Zero) { this._faceEngine = WinFaceCore.Wis_Create("./"); Console.WriteLine(string.Format("Create FaceDetect Engine Scuess {0}", this._faceEngine)); } }
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); }
public void Destroy(IntPtr engine) { WinFaceCore.Wis_Destroy(engine); }