Merge branch 'RED-9149-header' into 'main'

RED-9149 - Remove header detection

See merge request fforesight/layout-parser!157
This commit is contained in:
Andrei Isvoran 2024-05-20 14:12:04 +02:00
commit b2a47f66ae

View File

@ -71,8 +71,7 @@ public class DocuMineClassificationService {
== null
|| textBlock.getHighestFontSize()
<= document.getFontSizeCounter()
.getMostPopular()))
|| HeaderFooterDetection.isLikelyHeader(textBlock, document, page)) {
.getMostPopular()))) {
textBlock.setClassification(PageBlockType.HEADER);
} else if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.FOOTER)