internal ExtractedLayoutPage(PageResult_internal pageResult, ReadResult_internal readResult) { PageNumber = pageResult.Page; Tables = ConvertTables(pageResult.Tables, readResult); if (readResult != null) { RawExtractedPage = new RawExtractedPage(readResult); } }
// Supervised internal ExtractedPage(int pageNumber, List <ExtractedField> fields, PageResult_internal pageResult, ReadResult_internal readResult) { PageNumber = pageNumber; Fields = ConvertFields(fields); Tables = ExtractedLayoutPage.ConvertTables(pageResult.Tables, readResult); if (readResult != null) { RawExtractedPage = new RawExtractedPage(readResult); } }
// Unsupervised internal ExtractedPage(PageResult_internal pageResult, ReadResult_internal readResult) { PageNumber = pageResult.Page; Fields = ConvertFields(pageResult.KeyValuePairs, readResult); Tables = ExtractedLayoutPage.ConvertTables(pageResult.Tables, readResult); if (readResult != null) { RawExtractedPage = new RawExtractedPage(readResult); } }
internal ExtractedReceipt(DocumentResult_internal documentResult, ReadResult_internal readResult) { StartPageNumber = documentResult.PageRange.First(); EndPageNumber = documentResult.PageRange.Last(); SetReceiptValues(documentResult.Fields); if (readResult != null) { RawExtractedPage = new RawExtractedPage(readResult); } }
internal FormPage(IReadOnlyList <DataTable_internal> tablesResult, ReadResult_internal readResult) : base(null, readResult.Page, null) // TODO: retrieve text and bounding box. { TextAngle = readResult.Angle; Width = readResult.Width; Height = readResult.Height; Unit = readResult.Unit; if (readResult.Lines != null) { Lines = RawExtractedPage.ConvertLines(readResult.Lines, PageNumber); } Tables = ExtractedLayoutPage.ConvertTables(tablesResult, readResult); }