Skip to main content
StraightenLinesModeEnum Controls which algorithm is used to straighten text lines during text extraction.
typedef enum {
 SLM_Auto,
 SLM_Fast
} StraightenLinesModeEnum;

Elements

NameDescription
SLM\_AutoUses the new neural-network–based method for the best average quality (slower).
SLM\_FastUses the legacy non-NN method for maximum speed (lower average quality on average; may be better on some pages). For end users, prefer the TextExtraction\_Speed or DocumentArchiving\_Speed presets, which set all related options consistently; toggling this flag alone isn’t always sufficient.

Used in

PagePreprocessingParams::StraightenLinesMode