共用方式為


FormSelectionMark Class

public final class FormSelectionMark
extends FormElement

Represents a selection mark recognized from the input document.

Constructor Summary

Constructor Description
FormSelectionMark(String text, FieldBoundingBox boundingBox, int pageNumber)

Creates a FormSelectionMark.

Method Summary

Modifier and Type Method and Description
FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

float getConfidence()

Gets the confidence property of the selection mark.

int getPageNumber()

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

SelectionMarkState getState()

Gets the state property of the selection mark.

String getText()

The text content of the form element.

Methods inherited from FormElement

Methods inherited from java.lang.Object

Constructor Details

FormSelectionMark

public FormSelectionMark(String text, FieldBoundingBox boundingBox, int pageNumber)

Creates a FormSelectionMark.

Parameters:

text - The text content of the extracted element.
boundingBox - The BoundingBox specifying relative coordinates of the element.
pageNumber - the 1 based page number.

Method Details

getBoundingBox

public FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

Overrides:

FormSelectionMark.getBoundingBox()

getConfidence

public float getConfidence()

Gets the confidence property of the selection mark.

Returns:

the confidence property of the selection mark.

getPageNumber

public int getPageNumber()

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

Overrides:

FormSelectionMark.getPageNumber()

getState

public SelectionMarkState getState()

Gets the state property of the selection mark.

Returns:

the state property of the selection mark.

getText

public String getText()

The text content of the form element.

Overrides:

FormSelectionMark.getText()

Applies to