ExtractDocument

data class ExtractDocument(val type: String?, val typeConfidence: Double?, val boundingBox: List<Double>?, val extractorId: String, val metaData: ExtractDocumentMetaData, rawData: HashMap<String, JsonElement>, rawDetailedData: HashMap<String, List<JsonObject>>) : ExtractDocumentResult

ExtractDocument contains single document result returned by the FormXAPIClient.extract

Constructors

Link copied to clipboard
fun ExtractDocument(type: String?, typeConfidence: Double?, boundingBox: List<Double>?, extractorId: String, metaData: ExtractDocumentMetaData, rawData: HashMap<String, JsonElement>, rawDetailedData: HashMap<String, List<JsonObject>>)

Properties

Link copied to clipboard
@SerializedName(value = "bounding_box")
val boundingBox: List<Double>?

contains four percent values represents left, top, right, bottom individually

Link copied to clipboard

the document data

Link copied to clipboard

the detailed document data

Link copied to clipboard
@SerializedName(value = "extractor_id")
val extractorId: String

the extractor id

Link copied to clipboard
@SerializedName(value = "metadata")
val metaData: ExtractDocumentMetaData

the document meta data

Link copied to clipboard
@SerializedName(value = "type")
val type: String?

the predicted document type

Link copied to clipboard
@SerializedName(value = "type_confidence")
val typeConfidence: Double?

the confidence score of the predicated document type