Video Analysis底层库拆分,sdk的go封装
chenshijun
2019-07-10 deb2e7127b5e9315eaad9de95b47fa82e0c8dffd
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
}