-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathyolo_grpc.proto
82 lines (71 loc) · 2.03 KB
/
yolo_grpc.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
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
79
80
81
82
syntax = "proto3";
package odam;
option go_package = "./;odam";
// Reference info about detection, camera, timestamp and etc.
message ObjectInformation{
// Camera identifier
string cam_id = 1;
// Timestamp in Unix UTC
int64 timestamp = 2;
// Bytes representation of image (PNG)
bytes image = 3;
// Reference information about detection rectangle
Detection detection = 4;
// Reference information about object class
ClassInfo class = 5;
// Reference information about virtual line (detection line)
VirtualLineInfo virtual_line = 6;
// Reference information about tracking parameters of object (speed + track points)
TrackInfo track_information = 7;
}
// Reference information about detection rectangle
message Detection{
int32 x_left = 1;
int32 y_top = 2;
int32 height = 3;
int32 width = 4;
}
// Reference information about object class
message ClassInfo{
int32 class_id = 1;
string class_name = 2;
}
// Reference information about virtual line (detection line)
message VirtualLineInfo{
int64 id = 1;
int32 left_x = 2;
int32 left_y = 3;
int32 right_x = 4;
int32 right_y = 5;
}
// Information about estimated speed and track itself
message TrackInfo{
float estimated_speed = 1;
repeated Point points = 2;
}
// Union of EuclideanPoint and WGS84Point structures
message Point{
EuclideanPoint euclidean_point = 1;
WGS84Point wgs84_point = 2;
}
// Representation of a point in Euclidean space
message EuclideanPoint{
float x = 1;
float y = 2;
}
// Representation of a point in spatial system called WGS84. See ref. https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84
message WGS84Point{
float longitude = 1;
float latitude = 2;
}
// Response from server-side application
message Response{
string message = 1;
string warning = 2;
string error = 3;
}
// ServiceYOLO - service for second and third yolo stages
// in car number search cascade
service ServiceYOLO{
rpc SendDetection(ObjectInformation) returns (Response){};
}