FormWord Class

public final class FormWord
extends FormElement

Represents a word recognized from the input document.

Constructor Summary

Constructor Description
FormWord(String text, FieldBoundingBox boundingBox, int pageNumber, float confidence)

Constructs a FormWord object.

Method Summary

Modifier and Type Method and Description
FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

float getConfidence()

Gets the confidence property of the Form Word.

int getPageNumber()

Get the 1-based page number in the input document.

String getText()

The text content of the form element.

Methods inherited from FormElement

Methods inherited from java.lang.Object

Constructor Details

FormWord

public FormWord(String text, FieldBoundingBox boundingBox, int pageNumber, float confidence)

Constructs a FormWord object.

Parameters:

text - the text content of recognized field.
boundingBox - the BoundingBox of recognized field.
pageNumber - the 1 based page number.
confidence - the confidence property of the Form Word.

Method Details

getBoundingBox

public FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

Overrides:

FormWord.getBoundingBox()

getConfidence

public float getConfidence()

Gets the confidence property of the Form Word.

Returns:

the confidence property of the Form Word.

getPageNumber

public int getPageNumber()

Get the 1-based page number in the input document.

Overrides:

FormWord.getPageNumber()

getText

public String getText()

The text content of the form element.

Overrides:

FormWord.getText()

Applies to