public static void ShowExtractedTests(ResponseOCR ocr) { foreach (var x in ocr.ParsedResults) { Console.WriteLine(x.ParsedText); } }
public static void ProcessFile(Document document) { try { ResponseOCR response = LibraryBLL.InitializeOCR(document); CompareBLL.ShowExtractedTests(response); } catch (Exception) { throw; } }
public static void Process(List <Document> documents) { try { foreach (Document document in documents) { ResponseOCR response = LibraryBLL.InitializeOCR(document); CompareBLL.ShowExtractedTests(response); } } catch (Exception) { throw; } }
public static bool CompareDeepProcess(ResponseOCR ocr, string ComparedValue) { foreach (SpaceParsedResult result in ocr.ParsedResults) { if (result.TextOverlay != null) { foreach (SpaceLine lines in result.TextOverlay.Lines) { foreach (var word in lines.Words) { if (word.WordText.Equals(ComparedValue)) { return(true); } else { return(false); } } } } } return(false); }