From 423fd8152ff571e0dccf1f6ebeb695816c914f23 Mon Sep 17 00:00:00 2001 From: BobLd <38405645+BobLd@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:48:34 +0000 Subject: [PATCH] Updated Document Layout Analysis (markdown) --- Document-Layout-Analysis.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Document-Layout-Analysis.md b/Document-Layout-Analysis.md index aea4ee7..49dedfa 100644 --- a/Document-Layout-Analysis.md +++ b/Document-Layout-Analysis.md @@ -299,8 +299,8 @@ var blocks = recursiveXYCut.GetBlocks(words); var recursiveXYCut = new RecursiveXYCut(new RecursiveXYCut.RecursiveXYCutOptions() { MinimumWidth = page.Width / 3.0, - DominantFontWidthFunc = _ => page.Letters.Average(l => l.GlyphRectangle.Width), - DominantFontHeightFunc = _ => page.Letters.Average(l => l.GlyphRectangle.Height) + DominantFontWidthFunc = _ => page.Letters.Average(l => l.BoundingBox.Width), + DominantFontHeightFunc = _ => page.Letters.Average(l => l.BoundingBox.Height) }); var blocks = recursiveXYCut.GetBlocks(words); @@ -312,8 +312,8 @@ var blocks = recursiveXYCut.GetBlocks(words); var recursiveXYCut = new RecursiveXYCut(new RecursiveXYCut.RecursiveXYCutOptions() { MinimumWidth = page.Width / 3.0, - DominantFontWidthFunc = letters => letters.Select(l => l.GlyphRectangle.Width).Average(), - DominantFontHeightFunc = letters => letters.Select(l => l.GlyphRectangle.Height).Average() + DominantFontWidthFunc = letters => letters.Select(l => l.BoundingBox.Width).Average(), + DominantFontHeightFunc = letters => letters.Select(l => l.BoundingBox.Height).Average() }); var blocks = recursiveXYCut.GetBlocks(words);