Function: clusterStripes()
ts
function clusterStripes(rects, tolerance?): Rect[][];Defined in: src/helpers/utils.ts:115
Group rectangles into horizontal stripes where consecutive rectangles vertically overlap. Ports pymupdf4llm.helpers.utils.cluster_stripes — the building block used by reading-order detection.
Parameters
rects
Rect[]
tolerance?
number = 0
Returns
Rect[][]