Aracılığıyla paylaş


FormReadingOrder Class

public final class FormReadingOrder
extends ExpandableStringEnum<FormReadingOrder>

Defines values for the order in which recognized text lines are returned.

Field Summary

Modifier and Type Field and Description
static final FormReadingOrder BASIC

Static value BASIC for FormReadingOrder.

static final FormReadingOrder NATURAL

Static value NATURAL for FormReadingOrder.

Constructor Summary

Constructor Description
FormReadingOrder()

Deprecated

Use the fromString(String value) factory method.

Creates a FormReadingOrder object.

Method Summary

Modifier and Type Method and Description
static FormReadingOrder fromString(String value)

Parses a serialized value to a FormReadingOrder instance.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BASIC

public static final FormReadingOrder BASIC

Static value BASIC for FormReadingOrder. Set it to basic for the lines to be sorted top to bottom, left to right, although in certain cases proximity is treated with higher priority.

NATURAL

public static final FormReadingOrder NATURAL

Static value NATURAL for FormReadingOrder. Set it to "natural" value for the algorithm to use positional information to keep nearby lines together.

Constructor Details

FormReadingOrder

@Deprecated
public FormReadingOrder()

Deprecated

Use the fromString(String value) factory method.

Creates a FormReadingOrder object.

Method Details

fromString

public static FormReadingOrder fromString(String value)

Parses a serialized value to a FormReadingOrder instance.

Parameters:

value - the serialized value to parse.

Returns:

the parsed FormReadingOrder object, or null if unable to parse.

Applies to