| | |
| | | string snapshot_url = 4;//摄像机底图快照 |
| | | int32 type = 5; |
| | | string addr = 6; |
| | | int32 areaid = 7; |
| | | float longitude = 8; |
| | | float latitude = 9; |
| | | float longitude = 7; |
| | | float latitude = 8; |
| | | int32 floor = 9; |
| | | string rtsp = 10; |
| | | string ip = 11; |
| | | int32 port = 12; |
| | |
| | | int32 del_flag = 12;//是否删除 |
| | | } |
| | | |
| | | message TaskSdkRule { |
| | | string taskId = 1; |
| | | bool enable = 2; |
| | | repeated SdkRuleSet sdkRules = 3; |
| | | } |
| | | |
| | | message SdkRuleSet { |
| | | string sdkId = 1; |
| | | string ipcId = 2; |
| | | repeated SdkRule rules = 3; |
| | | int32 sort = 4; |
| | | } |
| | | |
| | | message SdkRule { |
| | | string id = 1; |
| | | string sdk_arg_alias = 2; |
| | | string operator = 3; |
| | | string sdk_arg_value = 4; |
| | | } |
| | | |
| | | //SdkArg struct |
| | | message SdkArg { |
| | | string alias = 1;//参数别名 |
| | |
| | | bool must = 4;//参数是否必填 |
| | | string unit = 5;//单位 |
| | | string range = 6;//参数的范围 |
| | | int32 sort = 7;//参数排序 |
| | | string default_value = 7;//参数默认值 |
| | | string default_operator = 8;//参数默认计算符号 |
| | | int32 sort = 9;//参数排序 |
| | | } |
| | | |
| | | //TableChanged enum |
| | |
| | | string cameraId = 2; |
| | | string taskId = 3; |
| | | int64 imgId = 4; |
| | | repeated string sdkIds = 5; |
| | | string videoUrl = 5; |
| | | repeated string sdkIds = 6; |
| | | int32 type = 7; |
| | | } |
| | | |
| | | message CompareArgs { |
| | | repeated string tableIds = 1; |
| | | bytes faceFeature = 2; |
| | | float compareThreshold = 3; |
| | | float compareThreshold = 2; |
| | | bytes faceFeature = 3; |
| | | repeated string tasks = 4; |
| | | repeated string treeNodes = 5; |
| | | repeated string tabs = 6; |
| | | repeated int32 alarmLevel = 7; |
| | | repeated string searchTime = 8; |
| | | string inputValue = 9; |
| | | string collection = 10; |
| | | bool source = 11; |
| | | string analyServerId = 12; |
| | | } |
| | | |
| | | message CompareEvent { |
| | | CompareEventType eventType =1; |
| | | bytes payload = 2; |
| | | } |
| | | |
| | | enum CompareEventType { |
| | | ReInitCache = 0; // 重新初始化底库缓存(加入集群后执行) |
| | | UpdateCache = 1; // 更新底库和人员缓存 |
| | | Compare = 2; // 做比对请求 |
| | | } |
| | | |
| | | message SdkCompareEach { |
| | | string id = 1; |
| | | string tableid = 2; |
| | | float compareScore = 3; |
| | | } |
| | | |
| | | message SdkCompareResult { |
| | | repeated SdkCompareEach compareResult = 1; |
| | | } |
| | | |
| | | message EventPush { |
| | |
| | | bool enable = 2; |
| | | } |
| | | |
| | | message PushAttach { |
| | | string push_id = 1; |
| | | Camera cam = 2; |
| | | string server_id = 3; |
| | | string server_name = 4; |
| | | string local_ip = 5; |
| | | string video_url = 6; |
| | | } |
| | | |
| | | enum EsCacheChanged { |
| | | T_DbTable = 0;//底库有效状态变化 |
| | | T_DbTablePerson = 1;//底库人员有效状态变化 |
| | | } |
| | | |
| | | message EsPersonCacheChange { |
| | | string table_id = 1;//底库id |
| | | string person_id = 2;//人员id |
| | | bytes feature = 3;//特征值 |
| | | DbAction action = 4; |
| | | EsCacheChanged type = 1; |
| | | repeated string table_id = 2;//底库id |
| | | string person_id = 3;//人员id |
| | | string feature = 4;//特征值base64 |
| | | DbAction action = 5; |
| | | int32 enable = 6; |
| | | } |