pansen
2018-12-18 96024c860270477fe9cf387ba855632a3ead08ee
QiaoJiaSystem/testCodeMod/FaceDefine.h
@@ -12,8 +12,30 @@
using std::vector;
using std::string;
namespace BasicFace {
    typedef vector<unsigned char> Feature;
    struct InitParam {
        int nDeviceID;//device id for GPU device.eg:0,1,2,3.....
        int nImageWidth;//image width of video
        int nImageHeight;//image height of video
        int nMaxFaceNum;//max face number for tracking
        int nSampleSize;//down sample size for face detection
        int nDetectionIntervalFrame;//interval frame number of face detection for face tracking
        InitParam() {
            nMaxFaceNum = 100;
            nSampleSize = 640;
            nDeviceID = 0;
            nDetectionIntervalFrame = 5;
        }
    };
struct FaceFeatureResult {
    vector<unsigned char> feature;
        Feature feature;
    float score;
};
@@ -31,7 +53,7 @@
    float roll;        // 旋转角,真实度量的左负右正, 单位,角度
    float angle;    // sqrt(yaw*yaw/3+pitch*pitch/3+roll*roll/3)
    vector<char> attributes;
    float trackingId;
        long trackingId;
};
struct DbSearchResult {
@@ -57,4 +79,7 @@
    int stride;
    unsigned char *data;
};
}
#endif //TESTCODE_FACEDEFINE_H