Video Analysis底层库拆分,sdk的go封装
chenshijun
2020-09-09 a3dc3aa4ec63bcc7844bc4ae7a77f992b9fa74dd
csdk_struct.h
@@ -62,6 +62,20 @@
    long        nFaceID;//face tracking id
} cFaceInfo;
typedef struct _cThfqParam{
   int brightness_min;//0-100,太暗阈值,建议25.越小越可能把过暗的人脸当作正常人脸,此参数会影响THFQ_Result::brightness
   int brightness_max;//0-100,太亮阈值,建议75.越大越可能把的过亮人脸当作正常人脸,此参数会影响THFQ_Result::brightness
}cThfqParam;
typedef struct _cThfqResult{
   int brightness;//人脸亮度,只有3种可能的值:[-1->太暗,0->正常,1->太亮],亮度结果会受亮度阈值参数brightness_min和brightness_max影响
   int occlusion;//人脸遮挡度,范围值为0-100,越大表示人脸遮挡程度越高
   int hat;//带帽子,范围为0-100,越大表示越可能有佩戴帽子,建议判别阈值为50
   int blur;//人脸模糊度,范围值为0-100,越大表示图像越模糊,建议人脸模糊度判别阈值为70
   int glasses;//带眼镜,范围为0-100,越大表示越可能有戴眼镜,建议判别阈值为70
}cThfqResult;
typedef struct _cObjInfo
{
    cRECT rcObj;
@@ -179,4 +193,39 @@
   int iCharNum;               //车牌字符数目
}cPlateIDCloudSDKResult;
typedef struct _cPlateInfo
{
   int ePlateColor;
   int  ePlateType;
   char platenumber[20];         //车牌号码
   int iPlateConfidence;
   int iCharNum;
   int iCharConfidence[20];
}cPlateInfo;
typedef struct _cVehicleITSResult {
   int iPlateFlag;         //是否识别到车牌
   cPlateInfo plateInfo;    //车牌信息
   cRECT plateRect;        //车牌位置
   cRECT tempVehicleRect;  //车辆位置
   char tempVehicleType[1024];     //车辆类型--总名称  jeep-大切诺基-2004
   char tempVehicleBrand[1024];    //车辆品牌       jeep
   char tempVehicleSub[1024];      //车辆子型号     大切诺基
   char tempVehicleType1[1024];    //车辆类型   轿车 货车  客车  面包车
   float fVDConf;                  //车辆检测置信度
   float fConfdence;               //车辆类型置信度
   int iVehicleSubModel;           //车型名称索引
   int eVehicleBright;             //车辆深浅色
   int eVehicleColor1;             //车身主颜色
   int eVehicleColor2;             //车身辅颜色
   unsigned char*pCaptureImage; //视频模式识别下抓拍的图片数据
   int iImageWidth;             //视频模式下抓拍图像宽度
   int iImageHeight;            //视频模式下抓拍图像高度
}cVehicleITSResult;
#endif