-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathservice.proto
43 lines (37 loc) · 972 Bytes
/
service.proto
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
syntax = "proto3";
service Detector {
// Sends a greeting
rpc Inference (InferenceRequest) returns (InferenceReply) {}
}
// The request message containing the user's name.
message InferenceRequest {
repeated string file_paths = 1;
// A serialized tensor, directly using tf.io.serialize_tensor API.
bytes data = 2;
int32 original_image_height = 3;
int32 original_image_width = 4;
}
message BoundingBox {
string file_path = 1;
int32 class_id = 2;
float score = 3;
float left = 4;
float top = 5;
float width = 6;
float height = 7;
}
// The response message containing the greetings
message InferenceReply {
repeated BoundingBox detections = 1;
// A serialized tensor, directly using tf.io.serialize_tensor API.
bytes data = 2;
}
message TrackerResult {
BoundingBox detection = 1;
int64 sequence_id = 2;
int64 sequence_length = 3;
}
message TrackerResults {
string file_path = 1;
repeated TrackerResult tracker_results = 2;
}