Skip to content

Instantly share code, notes, and snippets.

@zabir-nabil
Created June 3, 2020 17:11
Show Gist options
  • Save zabir-nabil/866d3140792304bf12081e80aff96269 to your computer and use it in GitHub Desktop.
Save zabir-nabil/866d3140792304bf12081e80aff96269 to your computer and use it in GitHub Desktop.
syntax = "proto3";
// input image, width, height
message B64Image {
string b64image = 1;
int32 width = 2;
int32 height = 3;
}
// output prediction
message Prediction {
int32 channel = 4;
float mean = 5;
}
// service
service ImageProcedure {
rpc ImageMeanWH(B64Image) returns (Prediction) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment