111,126
社区成员
发帖
与我相关
我的任务
分享[DllImport("dll名", CallingConvention = CallingConvention.StdCall)]
private static extern int THIDGetFaceFeatFromImageW([MarshalAs(UnmanagedType.LPWStr)] string lpszPathName, THIDEyePoint* pEyePoint, IntPtr pFeatures);
[StructLayout(LayoutKind.Sequential)]
public struct HS_CMP_RESULT
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
byte[] describe; //结果描述
IntPtr pImageBuffer; //场景大图
int uImageSize; //场景大图数据大小
HS_RECT faceRect; //人脸位置
IntPtr pFaceBuffer; //抠出的人脸图片数据
int uFaceSize; //抠出的人脸图片数据大小
}