Package com.mindee.parsing.common
Class Inference<TPagePrediction,TDocumentPrediction extends Prediction>
- java.lang.Object
-
- com.mindee.parsing.common.Inference<TPagePrediction,TDocumentPrediction>
-
- Type Parameters:
TPagePrediction
- Page prediction (can be the same as TDocumentPrediction).TDocumentPrediction
- Document prediction (can be the same as TPagePrediction).
- Direct Known Subclasses:
BankAccountDetailsV1
,BankAccountDetailsV2
,BankCheckV1
,BarcodeReaderV1
,BillOfLadingV1
,BusinessCardV1
,CarteGriseV1
,CropperV1
,CustomV1
,DeliveryNoteV1
,DriverLicenseV1
,DriverLicenseV1
,DriverLicenseV1
,EnergyBillV1
,FinancialDocumentV1
,GeneratedV1
,HealthCardV1
,HealthcareCardV1
,IdCardV1
,IdCardV2
,IndianPassportV1
,InternationalIdV2
,InvoiceSplitterV1
,InvoiceV4
,LicensePlateV1
,MultiReceiptsDetectorV1
,NutritionFactsLabelV1
,PassportV1
,PayslipV2
,PayslipV3
,ProofOfAddressV1
,ReceiptV4
,ReceiptV5
,ResumeV1
,UsMailV2
,UsMailV3
,W9V1
public abstract class Inference<TPagePrediction,TDocumentPrediction extends Prediction> extends Object
Common inference data.
-
-
Field Summary
Fields Modifier and Type Field Description protected Pages<TPagePrediction>
pages
The prediction on each pages of the document.
-
Constructor Summary
Constructors Constructor Description Inference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferenceExtras
getExtras()
Pages<TPagePrediction>
getPages()
The prediction on each pages of the document.TDocumentPrediction
getPrediction()
The prediction on the document level.Product
getProduct()
Type of product.boolean
isRotationApplied()
Whether a rotation was applied to parse the document.String
toString()
-
-
-
Field Detail
-
pages
protected Pages<TPagePrediction> pages
The prediction on each pages of the document.
-
-
Method Detail
-
getExtras
public InferenceExtras getExtras()
-
isRotationApplied
public boolean isRotationApplied()
Whether a rotation was applied to parse the document.
-
getProduct
public Product getProduct()
Type of product.
-
getPages
public Pages<TPagePrediction> getPages()
The prediction on each pages of the document.
-
getPrediction
public TDocumentPrediction getPrediction()
The prediction on the document level.
-
-