zhangmeng
2019-06-17 08b1f570d8e9aaa7a1a757d5ce2b842f9b0f4603
protomsg.proto
@@ -1,4 +1,5 @@
syntax = "proto3";
import "base.proto";
package protomsg;
@@ -13,6 +14,96 @@
   string cid = 1;
   TaskLabel tasklab = 2;
   bytes   data =3 ;
    Personaction personaction =4;
    Vediopersons vedioperson = 5;
}
message Personaction{
    string imgKey       = 1;
    string videoReqNum  = 2;
    string sdkType      = 3;
    string picName      = 4;
    string content      = 5;
    string cluster_id   = 6;
    string personPicUrl = 7;
    string channlId     = 8;
    string likeDate     = 9;
    string picAddress   = 10;
    string picMaxUrl    = 11;
    string picDate      = 12;
    string picLocalUrl  = 13;
    string isDelete     = 14;
    string likePer      = 15;
    string baseName     = 16;
    string videoNum     = 17;
    string collection   = 18;
    string picSmUrl     = 19;
    string indeviceid   = 20;
    string idcard       = 21;
    string ack_alarm    = 22;
    string personId     = 23;
    string id           = 24;
    string indevicename = 25;
    string faceFeature  = 26;
    string personIsHub  = 27;
    string videoIp      = 28;
    string taskId       = 29;
}
message PersonBaseInfo {
    string personNamae  = 1;
    string iDCard       = 2;
    string gender       = 3;
    string personPicUrl = 4;
    string likePer      = 5;
    string tableId      = 6;
    string monitorLevel = 7;
    string personId     = 8;
    string phoneNum     = 9;
    string content      = 10;
    string tableName    = 11;
}
message Vediopersons {
    string iD           = 1;
    string videoReqNum  = 2;
    string sdkType=3;
    string gender=4;
    string picName=5;
    string content=6;
    string personPicUrl=7;
    string channlId=8;
    string likeDate=9;
    string race=10;
    string pciAddress=11;
    string picMaxUrl=12;
    string age=13;
    string picDate=14;
    string picLocalUrl=15;
    string isDelete=16;
    repeated string tableName=17;
    string videoNum=18;
    string picSmUrl=19;
    string simleLevel=20;
    string indeviceId=21;
    repeated string iDcard=22;
    repeated string personId=23;
    string beautyLevel=24;
    string indeviceName=25;
    string faceFeature=26;
    string personIsHub=27;
    string videoIp=28;
    string ackAlarm=29;
    string clusterId=30;
    string taskId=31;
    string taskName=32;
    repeated PersonBaseInfo baseinfo =33;
    string collection=34;
    string ageDescription=35;
    repeated string tableId=36;
}
@@ -198,79 +289,3 @@
    int32 defence_state = 8;
}
// struct for sdk
message Point{
   int32 x = 1;
   int32 y = 2;
}
message Rect{
   int32 left = 1;
   int32 top = 2;
   int32 right = 3;
   int32 bottom = 4;
}
// Image ipc struct
message Image{
    int32 width = 1;
    int32 height = 2;
    bytes data = 3;
}
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 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 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;
}
// sdk face property
message ParamFacePos{
    FacePos pos = 1;
    ThftResult result = 2;
   Image img = 3;
}
// sdk face extract
message ParamFaceCompare{
   bytes feat1 = 1;
   bytes feat2 = 2;
}
// sdk yolo detect
message ParamYoloObj{
    repeated ObjInfo infos = 1;
    Image img = 2;
}