int IFaceCompare.ExtractFeature(byte[] bgr24, int width, int height, int widthstep, ref FaceModel faceModel) { int result; try { object obj = FaceCompareBase._obj; lock (obj) { FaceModelV3 faceModelV = faceModel.ToFaceModelV3(); int arg_33_0 = FaceCompareBase._ExtractFeature(FaceCompareBase._faceEngne, bgr24, width, height, widthstep, ref faceModelV); faceModel = FaceUnit.FaceModelV3ToFaceModel(faceModelV); result = arg_33_0; } } catch (Exception) { throw; } return(result); }
public static int MC_ExtractFeature(Image <Bgr, byte> image, ref FaceModel faceModel) { int result; try { object obj = FaceCompare._obj; lock (obj) { FaceModelV3 faceModelV = faceModel.ToFaceModelV3(); int arg_49_0 = FaceCompare._ExtractFeature(FaceCompare.FaceEngne, image.Bytes, image.Width, image.Height, image.MIplImage.Width, ref faceModelV); faceModel = FaceUnit.FaceModelV3ToFaceModel(faceModelV); result = arg_49_0; } } catch (Exception arg_56_0) { throw arg_56_0; } return(result); }