New file |
| | |
| | | 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];//行人专属特征,可用来做ReID |
| | | |
| | | // 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];//上述结构体,代表一幅图中所有的框,最大支持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 |
| | | } |