factory/apps/ai/BeiHangGrpc.proto

65 lines
1.8 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./BeiHangGrpc.proto
syntax = "proto3";
option java_generic_services = true;
option java_multiple_files = true;
option java_package = "com.lyzh.aiservice.grpc";
option java_outer_classname = "BeiHangProto";
service Helmet_Reg {
rpc sendHelmet_Info(JinYu_Request) returns (BHhelmet_Response){}
}
service Fire_Reg {
rpc sendFire_Info(JinYu_Request) returns (BHFire_Response){}
}
service FA_Reg {
rpc sendFA_Info(JinYu_Request) returns (BHFA_Response){}
}
message JinYu_Request {
int64 zzid = 1; //业务唯一ID
string imgsbase64 = 2 ; //图像Base64字符串
string imgUrl = 3 ; //图像oss链接Url
}
message BHhelmet_Response {
int64 zzid = 1; //业务唯一ID
repeated HelmetInfo helmetinfoList = 2; //0:带安全帽 1未带安全帽 2:未知
}
message BHFire_Response {
int64 zzid = 1; //业务唯一ID
repeated FireInfo FireinfoList = 2; //0:灭火器 1气瓶 2:隔离符 3.气瓶倾倒 4.气瓶正常放置
}
message BHFA_Response {
int64 zzid = 1; //业务唯一ID
bool FAinfo = 2; //是否身穿防烫服 False:炉口开时穿着不规范 True:其它情况
}
message Point {
double x = 1; //x坐标
double y = 2; //y坐标
}
message Rectangle {
Point uleft = 1; //左上
Point lright = 2; //右下
}
message HelmetInfo {
int64 head_helmet = 1; //戴头盔
double conf = 2; //置信度
Rectangle coord = 3; //矩形坐标
}
message FireInfo {
int64 fire = 1; //0:灭火器 1气瓶 2:隔离符 3.气瓶倾倒 4.气瓶正常放置
double conf = 2; //置信度
Rectangle coord = 3; //矩形坐标
}