cheliequan
2023-02-10 a6e9a16da0fc1255ead73825fbc938b228d08ad2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
syntax = "proto3";
package protomsg;
 
import "sdk.proto";
import "rule.proto";
import "protomsg.proto";
 
message TaskBasicInfo {
    string CamId = 1;       
    string CamName = 2;     
    string TaskID = 3;      
    string TaskName = 4;    
    string HandleTime = 5;  
    int64 ImageId = 6;     
    string ImageTime = 7;   
    bool IsEndRecord = 8; 
    string  FileId = 9;      // 数据栈中的文件id
}
 
message RuleParams {
    string SdkArgAlias = 1; 
    string Operator = 2;    
    string OperatorType = 3;  
    string SdkArgValue = 4; 
}
 
message SoRule {
    string Id = 1;          
    string CameraId = 2;     
    string PolygonId = 3;   
    string SdkId = 4;        
    int32 Sort = 5;        
    string RuleWithPre = 6;  
    bool IsSaveAnyhow =7; 
    string GroupId = 8;     
    repeated RuleParams Params = 9;
}
 
message SoTarget {
    Target SrcTarget = 1;       
    string AreaId = 2;      
    string AreaName = 3;      
    string BelongsTargetID = 4;
    repeated RuleBaseCompareInfo CompDbInfo = 5;
    int64 ImageId = 6;      
}
 
message SOResult {
    bool IsEvent = 1;    
    bool IsEndRecord = 2;
    repeated SoTarget Targets = 3;
    Image FirstImage = 4;
    Image CacheImage = 5;
    SoRule SoRule = 6;
    GroupRule GroupRule = 7;
    string SoType = 8;
}
 
 
 
 
message EventCache {
    map<uint64, SoTarget> Targets = 1;
    map<string, GroupRule> RuleGroups = 2; 
    map<int64, Image> Images = 3;
}
 
message TargetCache  {
    repeated SoTarget Target = 1;
    map<string, GroupRule> RuleGroups = 2;
    Image Image = 3;
}
 
message FilterResult {
    TaskBasicInfo BaseInfo = 1;
    map<string, EventCache> Events = 2;
    map<string, TargetCache> Targets = 3;
}