From 595a5ee8ec01e0199b3d69311151417307f3b264 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期三, 15 一月 2020 11:30:41 +0800 Subject: [PATCH] copy from bgr-2-analysis --- csdk_struct.h | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/csrc/struct.h b/csdk_struct.h similarity index 90% rename from csrc/struct.h rename to csdk_struct.h index 9be7c4c..e733027 100644 --- a/csrc/struct.h +++ b/csdk_struct.h @@ -1,32 +1,34 @@ -#ifndef _face_struct_h_ -#define _face_struct_h_ - +#ifndef _c_wrapper_c_structure_h_ +#define _c_wrapper_c_structure_h_ + +#include <string.h> + typedef struct _cPOINT { int x; int y; } cPOINT; - + typedef struct _cRECT { int left; int top; int right; int bottom; } cRECT; - + typedef struct _cIMAGE{ unsigned char *data; int width; int height; int channel; } cIMAGE; - + typedef struct _cFaceAngle { int yaw; int pitch; int roll; float confidence; } cFaceAngle; - + typedef struct _cThftResult { int gender;//1-male,0-female int age;//range[0-100] @@ -34,7 +36,7 @@ int beauty_level;//range[0-100] int smile_level;//range[0-100] } cThftResult; - + typedef struct _cFacePos { cRECT rcFace; cPOINT ptLeftEye; @@ -46,7 +48,7 @@ unsigned char pFacialData[512]; } cFacePos; - + typedef struct _cFaceInfo{ cRECT rcFace; cPOINT ptLeftEye; @@ -59,5 +61,6 @@ unsigned char pFacialData[8*1024]; long nFaceID;//face tracking id } cFaceInfo; - + + #endif \ No newline at end of file -- Gitblit v1.8.0