From deb2e7127b5e9315eaad9de95b47fa82e0c8dffd Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期三, 10 七月 2019 17:20:51 +0800 Subject: [PATCH] yolo跟踪代码及调试 --- go2c.go | 86 +++++++++++++++++++++++-------------------- 1 files changed, 46 insertions(+), 40 deletions(-) diff --git a/go2c.go b/go2c.go index b4c6274..0aaa446 100644 --- a/go2c.go +++ b/go2c.go @@ -4,58 +4,64 @@ package gosdk type CPOINT struct { - X int32 - Y int32 + X int32 + Y int32 } type CRECT struct { - Left int32 - Top int32 - Right int32 - Bottom int32 + Left int32 + Top int32 + Right int32 + Bottom int32 } type CIMAGE struct { - Data *uint8 - Width int32 - Height int32 - Channel int32 - Pad_cgo_0 [4]byte + Data *uint8 + Width int32 + Height int32 + Channel int32 + Pad_cgo_0 [4]byte } type CFaceAngle struct { - Yaw int32 - Pitch int32 - Roll int32 - Confidence float32 + Yaw int32 + Pitch int32 + Roll int32 + Confidence float32 } type CThftResult struct { - Gender int32 - Age int32 - Race int32 - Beauty_level int32 - Smile_level int32 + Gender int32 + Age int32 + Race int32 + Beauty_level int32 + Smile_level int32 } type CFacePos struct { - RcFace CRECT - PtLeftEye CPOINT - PtRightEye CPOINT - PtMouth CPOINT - PtNose CPOINT - FAngle CFaceAngle - NQuality int32 - PFacialData [512]uint8 + RcFace CRECT + PtLeftEye CPOINT + PtRightEye CPOINT + PtMouth CPOINT + PtNose CPOINT + FAngle CFaceAngle + NQuality int32 + PFacialData [512]uint8 } type CFaceInfo struct { - RcFace CRECT - PtLeftEye CPOINT - PtRightEye CPOINT - PtMouth CPOINT - PtNose CPOINT - FAngle CFaceAngle - NQuality int32 - PFacialData [8192]uint8 - NFaceID int64 + RcFace CRECT + PtLeftEye CPOINT + PtRightEye CPOINT + PtMouth CPOINT + PtNose CPOINT + FAngle CFaceAngle + NQuality int32 + PFacialData [8192]uint8 + NFaceID int64 } type CObjInfo struct { - RcObj CRECT - Typ int32 - Prob float32 + RcObj CRECT + Typ int32 + Prob float32 +} + +//track yolo objs info +type CObjTrackInfo struct { + ObjInfo CObjInfo + ID uint64 } -- Gitblit v1.8.0