VC++开发人脸识别 (二)

2014-11-24 02:49:06 · 作者: · 浏览: 6
R_CORNER 15
#define FSDKP_NOSE_TIP 2
#define FSDKP_NOSE_BOTTOM 49
#define FSDKP_NOSE_BRIDGE 22
#define FSDKP_NOSE_LEFT_WING 43
#define FSDKP_NOSE_LEFT_WING_OUTER 45
#define FSDKP_NOSE_LEFT_WING_LOWER 47
#define FSDKP_NOSE_RIGHT_WING 44
#define FSDKP_NOSE_RIGHT_WING_OUTER 46
#define FSDKP_NOSE_RIGHT_WING_LOWER 48
#define FSDKP_MOUTH_RIGHT_CORNER 3
#define FSDKP_MOUTH_LEFT_CORNER 4
#define FSDKP_MOUTH_TOP 54
#define FSDKP_MOUTH_TOP_INNER 61
#define FSDKP_MOUTH_BOTTOM 55
#define FSDKP_MOUTH_BOTTOM_INNER 64
#define FSDKP_MOUTH_LEFT_TOP 56
#define FSDKP_MOUTH_LEFT_TOP_INNER 60
#define FSDKP_MOUTH_RIGHT_TOP 57
#define FSDKP_MOUTH_RIGHT_TOP_INNER 62
#define FSDKP_MOUTH_LEFT_BOTTOM 58
#define FSDKP_MOUTH_LEFT_BOTTOM_INNER 63
#define FSDKP_MOUTH_RIGHT_BOTTOM 59
#define FSDKP_MOUTH_RIGHT_BOTTOM_INNER 65
#define FSDKP_NASOLABIAL_FOLD_LEFT_UPPER 50
#define FSDKP_NASOLABIAL_FOLD_LEFT_LOWER 52
#define FSDKP_NASOLABIAL_FOLD_RIGHT_UPPER 51
#define FSDKP_NASOLABIAL_FOLD_RIGHT_LOWER 53
#define FSDKP_CHIN_BOTTOM 11
#define FSDKP_CHIN_LEFT 9
#define FSDKP_CHIN_RIGHT 10
#define FSDKP_FACE_CONTOUR1 7
#define FSDKP_FACE_CONTOUR2 5
#define FSDKP_FACE_CONTOUR12 6
#define FSDKP_FACE_CONTOUR13 8


// Initialization functions
int _FSDKIMPORT_ FSDK_ActivateLibrary(char * LicenseKey);
int _FSDKIMPORT_ FSDK_GetHardware_ID(char * HardwareID);
int _FSDKIMPORT_ FSDK_GetLicenseInfo(char * LicenseInfo);
int _FSDKIMPORT_ FSDK_SetNumThreads(int Num);
int _FSDKIMPORT_ FSDK_GetNumThreads(int * Num);
int _FSDKIMPORT_ FSDK_Initialize(char * DataFilesPath);
int _FSDKIMPORT_ FSDK_Finalize();

// Face detection functions
int _FSDKIMPORT_ FSDK_DetectEyes(HImage Image, FSDK_Features * FacialFeatures);
int _FSDKIMPORT_ FSDK_DetectEyesInRegion(HImage Image, TFacePosition * FacePosition, FSDK_Features * FacialFeatures);
int _FSDKIMPORT_ FSDK_DetectFace(HImage Image, TFacePosition* FacePosition);
int _FSDKIMPORT_ FSDK_DetectMultipleFaces(HImage Image, int * DetectedCount, TFacePosition * FaceArray, int MaxSize);
int _FSDKIMPORT_ FSDK_DetectFacialFeatures(HImage Image, FSDK_Features * FacialFeatures);
int _FSDKIMPORT_ FSDK_DetectFacialFeaturesInRegion(HImage Image, TFacePosition * FacePosition, FSDK_Features * FacialFeatures);
int _FSDKIMPORT_ FSDK_DetectFacialFeaturesEx(HImage Image, FSDK_Features * FacialFeatures, FSDK_ConfidenceLevels * ConfidenceLevels);
int _FSDKIMPORT_ FSDK_DetectFacialFeaturesInRegionEx(HImage Image, TFacePosition * FacePosition, FSDK_Features * FacialFeatures, FSDK_ConfidenceLevels * ConfidenceLevels);
int _FSDKIMPORT_ FSDK_SetFaceDetectionParameters(bool HandleArbitraryRotations, bool DetermineFaceRotationAngle, int InternalResizeWidth);
int _FSDKIMPORT_ FSDK_SetFaceDetectionThreshold(int Threshold);

// Image manipulation functions
int _FSDKIMPORT_ FSDK_CreateEmptyImage(HImage * Image);
int _FSDKIMPORT_ FSDK_LoadImageFromFile(HImage * Image, char * FileName);
int _FSDKIMPORT_ FSDK_LoadImageFromBuffer(HImage * Image, unsigned char * Buffer, int Width, int Height, int ScanLine, FSDK_IMAGEMODE ImageMode);
int _FSDKIMPORT_ FSDK_LoadImageFromJpegBuffer(HImage * Image, unsigned char * Buffe