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,EnergyBillV1,FinancialDocumentV1,GeneratedV1,HealthCardV1,HealthcareCardV1,IdCardV1,IdCardV2,IndianPassportV1,InternationalIdV2,InvoiceSplitterV1,InvoiceV4,MultiReceiptsDetectorV1,NutritionFactsLabelV1,PassportV1,PayslipV2,PayslipV3,ReceiptV5,ResumeV1,UsMailV3
public abstract class Inference<TPagePrediction,TDocumentPrediction extends Prediction> extends Object
Common inference data.
-
-
Field Summary
Fields Modifier and Type Field Description protected Pages<TPagePrediction>pagesThe 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 InferenceExtrasgetExtras()Pages<TPagePrediction>getPages()The prediction on each pages of the document.TDocumentPredictiongetPrediction()The prediction on the document level.ProductgetProduct()Type of product.booleanisRotationApplied()Whether a rotation was applied to parse the document.StringtoString()
-
-
-
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.
-
-