RED-9149 - Remove header detection

This commit is contained in:
Andrei Isvoran 2024-05-20 14:59:34 +03:00
parent b867deb9f9
commit 3835d03036

View File

@ -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)