public static string ExtractUrl(RecognitionResult resultObj) { return(resultObj.recognitionResult.lines.Where(x => x.text.StartsWith("https://techprofile.microsoft.com")).Select(x => x.text).FirstOrDefault()); }
public static int ExtractScore(RecognitionResult resultObj) { string exp = resultObj.recognitionResult.lines.Where(x => x.text.EndsWith(" XP")).Select(x => x.text).FirstOrDefault(); return(ScoreValidator.ScoreSplitter(exp)); }