RED-8670: add table detection from idp result
* some 'slight' refactoring
This commit is contained in:
parent
0a4cd759a7
commit
5cee042c74
@ -38,9 +38,9 @@ public class TableFromCellsExtractor {
|
|||||||
this.originCells = originCells;
|
this.originCells = originCells;
|
||||||
this.pdfToPageTransform = pdfToPageTransform;
|
this.pdfToPageTransform = pdfToPageTransform;
|
||||||
this.minCellHeight = originCells.stream()
|
this.minCellHeight = originCells.stream()
|
||||||
.mapToDouble(BoundingBox::getHeight).average().orElse(0);
|
.mapToDouble(BoundingBox::getHeight).min().orElse(0);
|
||||||
this.minCellWidth = originCells.stream()
|
this.minCellWidth = originCells.stream()
|
||||||
.mapToDouble(BoundingBox::getWidth).average().orElse(0);
|
.mapToDouble(BoundingBox::getWidth).min().orElse(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user