getDetectLanguagePageFraction

public final double getDetectLanguagePageFraction()

The share of a page (0.0 to 1.0) the automatic language-detection pass reads text from. 0 reads the whole page; a smaller share reads a centered band of the page, full width. Recognition cost scales with the amount of text read, so a band is faster, but on pages whose middle is a table of codes and figures, such as invoices, it identifies the language less often. A band that yields too little text falls back to the whole page. Orientation and script detection always read the whole page. Set it to 0.5 to read the middle half of the page, for about a fifth less detection time.

Return

The value of the DetectLanguagePageFraction property.