Generic Document
data class GenericDocument(val type: GenericDocumentType, val fields: List<Field>, val children: List<GenericDocument>, val quad: List<PointF>, val quadInRoot: List<PointF>, val crop: ImageRef? = null, val confidence: Double = 0.0, val confidenceWeight: Double = 0.0) : AutoCloseable, Parcelable
Generic document.
Properties
Link copied to clipboard
List of document sub-documents.
Link copied to clipboard
The average confidence in the accuracy of the document recognition result.
Link copied to clipboard
The weight of the confidence. Can be used to calculate the weighted average confidence of two documents.
Link copied to clipboard
Coordinates of the document in the root document coordinate system.
Link copied to clipboard
Document type.
Functions
Link copied to clipboard
Returns a sub-document given its document type name. Returns null if not found.
Link copied to clipboard
Returns all children given their document type name.
Link copied to clipboard
Link copied to clipboard
Returns a field given its local or common type name. Returns null if not found.
Link copied to clipboard
Returns all fields given a local or common field type name.
Link copied to clipboard
Link copied to clipboard
An extension function for GenericDocument class