mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-18 18:27:55 +08:00
Increase max distance for TextDirection.Other in NearestNeighbourWordExtractor
This commit is contained in:
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
List<Word> wordsU = GetWords(
|
List<Word> wordsU = GetWords(
|
||||||
letters.Where(l => l.TextDirection == TextDirection.Other),
|
letters.Where(l => l.TextDirection == TextDirection.Other),
|
||||||
(l1, l2) => Math.Max(Math.Abs(l1.GlyphRectangle.Width), Math.Abs(l2.GlyphRectangle.Width)) * 0.2,
|
(l1, l2) => Math.Max(Math.Abs(l1.GlyphRectangle.Width), Math.Abs(l2.GlyphRectangle.Width)) * 0.5,
|
||||||
Distances.Euclidean, MaxDegreeOfParallelism)
|
Distances.Euclidean, MaxDegreeOfParallelism)
|
||||||
.OrderByDescending(x => x.BoundingBox.Bottom)
|
.OrderByDescending(x => x.BoundingBox.Bottom)
|
||||||
.ThenBy(x => x.BoundingBox.Left).ToList();
|
.ThenBy(x => x.BoundingBox.Left).ToList();
|
||||||
|
Reference in New Issue
Block a user