syntax = "proto3"; // Image finding service to determine descriptions. service Mav { rpc ParseImg (ParseParams) returns (Img) {} // determine an image from a base64 string or url. } // params to use on image parsing. message ParseParams { string img = 1; // base64 string of the image. int64 width = 2; // image approx width. int64 height = 3; // image approx height. string url = 4; // url of the image. bool cv = 5; // perform with Computer Vision API. } // the image returned as a readable text message Img { string className = 1; // the name of the image. float probability = 2; // the accuracy of the image being true. }