factory/apps/ai/helmet/BeiHangGrpc.proto

38 lines
1.0 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){}
}
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 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; //矩形坐标
}