static public string OutImageInfo(Packet[] arrPacket) { QueryImageInfo queImgInfo = new QueryImageInfo(); queImgInfo.ProgressModel = new QueryImageInfo.Progress(); queImgInfo.ImageModel = new QueryImageInfo.Image(); queImgInfo.ImagePointModel = new QueryImageInfo.ImagePoint(); queImgInfo.NominalModel = new QueryImageInfo.Nominal(); anlyzeImageInfo(arrPacket[0], ref queImgInfo.ProgressModel.ProgressTable, ref queImgInfo.ProgressModel.Message); anlyzeImageInfo(arrPacket[1], ref queImgInfo.ImageModel.ImageTable, ref queImgInfo.ImageModel.Message); anlyzeImageInfo(arrPacket[2], ref queImgInfo.ImagePointModel.ImagePointTable, ref queImgInfo.ImagePointModel.Message); anlyzeImageInfo(arrPacket[3], ref queImgInfo.NominalModel.NominalTable, ref queImgInfo.NominalModel.Message); queImgInfo.ReadTable(); string strResult = queImgInfo.ToJson(); return(strResult); }
// POST api/LeafAnalysis public ResultImages Post([FromBody] QueryImageInfo queryImage) { ResultImages result = WebApiApplication.leafAnalysis.query(queryImage); return(result); }