| | |
| | | package protomsg; |
| | | |
| | | // Image ipc struct |
| | | message Image{ |
| | | message Image { |
| | | int32 width = 1; |
| | | int32 height = 2; |
| | | bytes data = 3; |
| | | |
| | | string timestamp = 4; |
| | | int64 id = 5; |
| | | string cid = 6; |
| | | bytes data = 3; |
| | | |
| | | string timestamp = 4; |
| | | int64 id = 5; |
| | | string cid = 6; |
| | | } |
| | | |
| | | message FaceAngle{ |
| | | int32 yaw = 1; |
| | | int32 pitch =2; |
| | | int32 roll = 3; |
| | | float confidence =4; |
| | | message FaceAngle { |
| | | int32 yaw = 1; |
| | | int32 pitch = 2; |
| | | int32 roll = 3; |
| | | float confidence = 4; |
| | | } |
| | | message ThftResult{ |
| | | int32 gender = 1; |
| | | int32 age = 2; |
| | | int32 race = 3; |
| | | int32 beauty = 4; |
| | | int32 smile = 5; |
| | | message ThftResult { |
| | | int32 gender = 1; |
| | | int32 age = 2; |
| | | int32 race = 3; |
| | | int32 beauty = 4; |
| | | int32 smile = 5; |
| | | } |
| | | message FacePos{ |
| | | Rect rcFace = 1; |
| | | Point ptLeftEye = 2; |
| | | Point ptRightEye = 3; |
| | | Point ptMouth = 4; |
| | | Point ptNose = 5; |
| | | FaceAngle fAngle = 6; |
| | | int32 quality = 7; |
| | | bytes facialData = 8; |
| | | message FacePos { |
| | | Rect rcFace = 1; |
| | | Point ptLeftEye = 2; |
| | | Point ptRightEye = 3; |
| | | Point ptMouth = 4; |
| | | Point ptNose = 5; |
| | | FaceAngle fAngle = 6; |
| | | int32 quality = 7; |
| | | bytes facialData = 8; |
| | | |
| | | uint64 faceID = 9; |
| | | uint64 faceID = 9; |
| | | } |
| | | message FaceInfo{ |
| | | Rect rcFace = 1; |
| | | Point ptLeftEye = 2; |
| | | Point ptRightEye = 3; |
| | | Point ptMouth = 4; |
| | | Point ptNose = 5; |
| | | FaceAngle fAngle = 6; |
| | | int32 quality = 7; |
| | | bytes facialData = 8; |
| | | int64 faceID = 9; |
| | | message FaceInfo { |
| | | Rect rcFace = 1; |
| | | Point ptLeftEye = 2; |
| | | Point ptRightEye = 3; |
| | | Point ptMouth = 4; |
| | | Point ptNose = 5; |
| | | FaceAngle fAngle = 6; |
| | | int32 quality = 7; |
| | | bytes facialData = 8; |
| | | int64 faceID = 9; |
| | | } |
| | | message ObjInfo{ |
| | | Rect rcObj = 1; |
| | | int32 typ = 2; |
| | | float prob = 3; |
| | | uint64 objID = 4; |
| | | message ObjInfo { |
| | | Rect rcObj = 1; |
| | | int32 typ = 2; |
| | | float prob = 3; |
| | | uint64 objID = 4; |
| | | } |
| | | |
| | | // sdk face property |
| | | message ResultFaceDetect{ |
| | | message ResultFaceDetect { |
| | | FacePos pos = 1; |
| | | ThftResult result = 2; |
| | | bytes feats = 3; |
| | | ThftResult result = 2; |
| | | bytes feats = 3; |
| | | } |
| | | message ParamFacePos{ |
| | | repeated ResultFaceDetect faces = 1; |
| | | message ParamFacePos { |
| | | repeated ResultFaceDetect faces = 1; |
| | | } |
| | | |
| | | message ResultFaceExtCom{ |
| | | bytes feats = 1; |
| | | bytes comp = 2; |
| | | ResultFaceDetect pos = 3; |
| | | message ResultFaceExtCom { |
| | | bytes feats = 1; |
| | | bytes comp = 2; |
| | | ResultFaceDetect pos = 3; |
| | | } |
| | | message ParamFaceFeature{ |
| | | repeated ResultFaceExtCom extComp = 2; |
| | | message ParamFaceFeature { |
| | | repeated ResultFaceExtCom extComp = 2; |
| | | } |
| | | |
| | | // sdk yolo detect |
| | | message ParamYoloObj{ |
| | | message ParamYoloObj { |
| | | repeated ObjInfo infos = 1; |
| | | } |
| | | |
| | | message SoInfo { |
| | | int32 id = 1; |
| | | string sdkId = 2; |
| | | string soName = 3; |
| | | } |