Class Field
-
- All Implemented Interfaces:
-
android.os.Parcelable,java.lang.AutoCloseable
public final class Field implements AutoCloseable, Parcelable
Generic document field.
-
-
Field Summary
Fields Modifier and Type Field Description private final FieldTypetypeprivate final OcrResultvalueprivate final DoubleconfidenceWeightprivate final ImageRefimageprivate final List<PointF>polygonInRootprivate final FieldValidationStatusvalidationStatusprivate final List<FieldParsedData>parsedData
-
Method Summary
Modifier and Type Method Description final FieldTypegetType()The type of the field. final OcrResultgetValue()Value of the field. final DoublegetConfidenceWeight()Confidence weight. final ImageRefgetImage()Crop of the field. final List<PointF>getPolygonInRoot()Coordinates of the field in the root document coordinate system. final FieldValidationStatusgetValidationStatus()Field validation status. final List<FieldParsedData>getParsedData()Parsed data. final JSONObjecttoJson(ToJsonConfiguration config)final Fieldclone()Unitclose()-
-
Constructor Detail
-
Field
Field(JSONObject json)
-
Field
Field(FieldType type, OcrResult value, Double confidenceWeight, ImageRef image, List<PointF> polygonInRoot, FieldValidationStatus validationStatus, List<FieldParsedData> parsedData)
-
-
Method Detail
-
getConfidenceWeight
final Double getConfidenceWeight()
Confidence weight.
Default is 1.0
-
getPolygonInRoot
final List<PointF> getPolygonInRoot()
Coordinates of the field in the root document coordinate system.
-
getValidationStatus
final FieldValidationStatus getValidationStatus()
Field validation status. Applicable only to fields that support some kind of validation.
Default is NONE
-
getParsedData
final List<FieldParsedData> getParsedData()
Parsed data.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
-
-
-