Class FormField
java.lang.Object
com.azure.ai.formrecognizer.models.FormField
Represents a field recognized in an input document.
-
Constructor Summary
ConstructorDescriptionFormField
(String name, FieldData labelData, FieldData valueData, FieldValue value, float confidence) Constructs a FormField object. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the estimated confidence value of the recognized field.Get the text, bounding box, and field elements for the field label.getName()
Get the name of the field in the provided document.getValue()
Get the value of the recognized field.Get the text, bounding box, and field elements for the field value.
-
Constructor Details
-
FormField
public FormField(String name, FieldData labelData, FieldData valueData, FieldValue value, float confidence) Constructs a FormField object.- Parameters:
name
- The name the field or label.labelData
- The text, bounding box, and field elements for the field label.valueData
- The text, bounding box, and field elements for the field value.value
- The value of the recognized field.confidence
- The confidence of the recognized field.
-
-
Method Details
-
getConfidence
public float getConfidence()Get the estimated confidence value of the recognized field.- Returns:
- the confidence value.
-
getLabelData
Get the text, bounding box, and field elements for the field label.- Returns:
- the text, bounding box, and field elements for the field value.
-
getName
Get the name of the field in the provided document.- Returns:
- the name of field or label.
-
getValue
Get the value of the recognized field.- Returns:
- Value of the recognized field.
-
getValueData
Get the text, bounding box, and field elements for the field value.- Returns:
- the text, bounding box, and field elements for the field value.
-