From c28e067bf1b68e7ec1da5e1bf6027b85f15873bd Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 10 十二月 2019 17:55:25 +0800
Subject: [PATCH] udpate

---
 sdkstruct.go |  158 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 158 insertions(+), 0 deletions(-)

diff --git a/sdkstruct.go b/sdkstruct.go
new file mode 100644
index 0000000..44fe644
--- /dev/null
+++ b/sdkstruct.go
@@ -0,0 +1,158 @@
+package sdkstruct
+
+// CPOINT pt
+type CPOINT struct {
+	X int32
+	Y int32
+}
+
+// CRECT rc
+type CRECT struct {
+	Left   int32
+	Top    int32
+	Right  int32
+	Bottom int32
+}
+
+// CIMAGE img
+type CIMAGE struct {
+	Data      *uint8
+	Width     int32
+	Height    int32
+	Channel   int32
+	Pad_cgo_0 [4]byte
+}
+
+//////////////////////////////// face
+
+// CFaceAngle angle
+type CFaceAngle struct {
+	Yaw        int32
+	Pitch      int32
+	Roll       int32
+	Confidence float32
+}
+
+// CThftResult res
+type CThftResult struct {
+	Gender       int32
+	Age          int32
+	Race         int32
+	Beauty_level int32
+	Smile_level  int32
+}
+
+// CFacePos pos
+type CFacePos struct {
+	RcFace      CRECT
+	PtLeftEye   CPOINT
+	PtRightEye  CPOINT
+	PtMouth     CPOINT
+	PtNose      CPOINT
+	FAngle      CFaceAngle
+	NQuality    int32
+	PFacialData [512]uint8
+}
+
+// CFaceInfo info
+type CFaceInfo struct {
+	RcFace      CRECT
+	PtLeftEye   CPOINT
+	PtRightEye  CPOINT
+	PtMouth     CPOINT
+	PtNose      CPOINT
+	FAngle      CFaceAngle
+	NQuality    int32
+	PFacialData [8192]uint8
+	NFaceID     int64
+}
+
+//////////////////////////////// humantrack
+
+// int left;//琛屼汉鍖呭洿妗嗗乏涓婅妯潗鏍�
+// int right;//琛屼汉鍖呭洿妗嗗彸涓嬭妯潗鏍�
+// int top;//琛屼汉鍖呭洿妗嗗乏涓婅绾靛潗鏍�
+// int bottom;//琛屼汉鍖呭洿妗嗗彸涓嬭绾靛潗鏍�
+// float confidence;//琛屼汉妫�娴嬫缃俊搴﹀緱鍒�
+// int center_x;//琛屼汉鍖呭洿妗嗕腑蹇冪偣x
+// int center_y;//琛屼汉鍖呭洿妗嗕腑蹇冪偣y
+// int ID;//琛屼汉璺熻釜ID
+// float feature[FEATURESIZE];//琛屼汉涓撳睘鐗瑰緛锛屽彲鐢ㄦ潵鍋歊eID
+
+// FgInfo info
+type FgInfo struct {
+	Left       int32
+	Right      int32
+	Top        int32
+	Bottom     int32
+	Confidence float32
+	X          int32
+	Y          int32
+	ID         int32
+	Feature    [128]float32
+}
+
+// fgInfo fginfo[MAX_BG_NUM];//涓婅堪缁撴瀯浣擄紝浠h〃涓�骞呭浘涓墍鏈夌殑妗嗭紝鏈�澶ф敮鎸�2000涓锛屾殏涓嶅彲淇敼
+// int fgNum;//涓�骞呭浘涓鐨勬暟閲忥紙fginfo涓殑鏈夋晥妗嗘暟锛�
+
+// FgResult result
+type FgResult struct {
+	Fginfo [2000]FgInfo
+	FgNum  int32
+}
+
+//////////////////////////////// vehicle
+
+// CVehicleITSResult res
+type CVehicleITSResult struct {
+	NPlateFlag      int32     //鏄惁璇嗗埆鍒拌溅鐗�
+	NColor          int32     //杞﹁締棰滆壊
+	NType           int32     //杞﹁締绫诲瀷
+	License         [20]uint8 //杞︾墝鍙风爜
+	NConfidence     int32     // 杞︾墝鍙俊搴�
+	NCharNum        int32     // 鏈煡
+	NCharConfidence [20]int32 // 鏈煡
+
+	RcLocation    CRECT //杞︾墝浣嶇疆
+	RcCarLocation CRECT //杞﹁締浣嶇疆
+
+	VehicleType  [1024]uint8 //杞﹁締绫诲瀷 --鎬诲悕绉�  jeep-澶у垏璇哄熀-2004
+	VehicleBrand [1024]uint8 //杞﹁締鍝佺墝 --jeep
+	VehicleSub   [1024]uint8 //杞﹁締瀛愬瀷鍙� --澶у垏璇哄熀
+	VehicleType1 [1024]uint8 //杞﹁締绫诲瀷   杞胯溅 璐ц溅  瀹㈣溅  闈㈠寘杞�
+
+	FVDConf    float32 //杞﹁締妫�娴嬬疆淇″害
+	FConfdence float32 //杞﹁締绫诲瀷缃俊搴�
+
+	NVehicleSubModel int32 //杞﹀瀷鍚嶇О绱㈠紩
+	NVehicleBright   int32 //杞﹁締娣辨祬鑹�
+	NVehicleColor1   int32 //杞﹁韩涓婚鑹�
+	NVehicleColor2   int32 //杞﹁韩杈呴鑹�
+
+	PCaptureImage [4]uint8 //瑙嗛妯″紡璇嗗埆涓嬫姄鎷嶇殑鍥剧墖鏁版嵁
+	NImageWidth   int32    //瑙嗛妯″紡涓嬫姄鎷嶅浘鍍忓搴�
+	NImageHeight  int32    //瑙嗛妯″紡涓嬫姄鎷嶅浘鍍忛珮搴�
+}
+
+//////////////////////////////// yolo
+
+// CObjInfo yolo
+type CObjInfo struct {
+	RcObj CRECT
+	Typ   int32
+	Prob  float32
+}
+
+// CObjTrackInfo track yolo objs info
+type CObjTrackInfo struct {
+	ObjInfo CObjInfo
+	ID      uint64
+}
+
+// SDKImage sdk image
+type SDKImage struct {
+	Data    []byte
+	Width   int
+	Height  int
+	Channel int
+}

--
Gitblit v1.8.0