Merge branch 'RED-9149-header' into 'main'
RED-9149 - Remove header detection See merge request fforesight/layout-parser!157
This commit is contained in:
commit
b2a47f66ae
@ -71,8 +71,7 @@ public class DocuMineClassificationService {
|
|||||||
== null
|
== null
|
||||||
|| textBlock.getHighestFontSize()
|
|| textBlock.getHighestFontSize()
|
||||||
<= document.getFontSizeCounter()
|
<= document.getFontSizeCounter()
|
||||||
.getMostPopular()))
|
.getMostPopular()))) {
|
||||||
|| HeaderFooterDetection.isLikelyHeader(textBlock, document, page)) {
|
|
||||||
textBlock.setClassification(PageBlockType.HEADER);
|
textBlock.setClassification(PageBlockType.HEADER);
|
||||||
|
|
||||||
} else if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.FOOTER)
|
} else if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.FOOTER)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user