RestorationMode

public enum RestorationMode

Controls optional restoration of the page image before vision inference.

Entries

Link copied to clipboard

Do not run page-image restoration. This is the default and should be used for normal scans, PDF-rendered pages, born-digital documents, and reasonably captured document images.

Link copied to clipboard

Use the local restoration path only when the input is a badly taken picture of a document page, for example a folded, warped, or perspective-distorted photo. Do not enable this for ordinary scans, screenshots, born-digital PDFs, or already flat document images.

Functions

Link copied to clipboard
public static RestorationMode valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<RestorationMode> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.