bands library

This library is part of the Textify package. Provides functionality for managing collections of text bands identified in images.

Classes

Artifact
Represents a 2D grid of boolean values, primarily used for image processing and pattern recognition tasks.
Band
Represents a horizontal band (aka strip) in an image/document.
Bands
Manages a collection of text bands identified in an image, providing methods for processing, merging, sorting, and extracting text from these bands.

Functions

tryJumpThreshold(List<int> gaps, int maxThreshold, {int minGapCount = Band._minArtifactsForSpaceDetection, double minJumpRatio = Band._spaceGapJumpRatio, int midpointDivisor = Band._gapMidpointDivisor}) int
Returns a threshold when sorted gaps show a clear jump in spacing.