StraightenLinesModeEnum

StraightenLinesModeEnum Controls which algorithm is used to straighten text lines during text extraction.

typedef enum {
 SLM_Auto,
 SLM_Fast
} StraightenLinesModeEnum;
    

Elements

Name Description
SLM_Auto Uses the new neural-network–based method for the best average quality (slower).
SLM_Fast

Uses 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

11/7/2025 12:48:30 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.