ResultImages ILeafAnalysis.query(QueryImageInfo queryImage) { using (QueryModel queryModel = new QueryModel()) { queryModel.ImageConversion(queryImage.image); queryModel.startComparingImages(categoryBfmatcherMapping); resultSet = queryModel.matchedResultSet; ResultImages result = new ResultImages(); result.topResultsCategory = resultSet.Select(item => item.Category).ToList(); return(result); } }
public ResultImages query(QueryImageInfo queryImage) { throw new NotImplementedException(); //using (QueryModel queryModel = new QueryModel()) //{ // queryModel.ImageConversion(queryImage.image); // queryModel.startComparingImages(categoryBfmatcherMapping); // resultSet = queryModel.matchedResultSet; // ResultImages result = new ResultImages(); // result.topResultsCategory = resultSet.Select(item => item.Category).ToList(); // return result; //} }