Kofax Mobile SDK API Reference
Public Member Functions | Static Public Attributes | List of all members
IdExtractionParameters Class Reference

Public Member Functions

 IdExtractionParameters (Image frontImage, List< BarCodeResult > frontBarcodes, Image backImage, List< BarCodeResult > backBarcodes, boolean isProcessed, IIdExtractionListener listener)
 
 IdExtractionParameters (String projectName, IdType idType, Image frontImage, List< BarCodeResult > frontBarcodes, Image backImage, List< BarCodeResult > backBarcodes, boolean isProcessed, IIdExtractionListener listener)
 
 IdExtractionParameters (String projectName, IdType idType, Image frontImage, List< BarCodeResult > frontBarcodes, Image backImage, List< BarCodeResult > backBarcodes, boolean isProcessed, boolean extractFaceImage, boolean extractSignatureImage, IIdExtractionListener extractionListener, IIdImageProcessingListener imageProcessingListener)
 
IIdExtractionListener getListener ()
 
IIdExtractionListener getExtractionListener ()
 
IIdImageProcessingListener getImageProcessingListener ()
 
String getProjectName ()
 
IdType getIdType ()
 
Image getFrontImage ()
 
Image getBackImage ()
 
List< BarCodeResultgetFrontBarcodes ()
 
List< BarCodeResultgetBackBarcodes ()
 
boolean isProcessed ()
 
boolean getExtractFaceImage ()
 
boolean getExtractSignatureImage ()
 

Static Public Attributes

static final String PREPROCESS_STRING = "_DeviceType_2_Do90DegreeRotation_4_DoCropCorrection__DoScaleImageToDPI_500_DoSkewCorrectionPage__DocDimLarge_3.375_DocDimSmall_2.125_LoadSetting_<Property Name=\"CSkewDetect.correct_illumination.Bool\" Value=\"0\" />"
 
static final String PREPROCESS_PASSPORT_STRING = "_DeviceType_2_DoCropCorrection__DoSkewCorrectionAlt__Do90DegreeRotation_4_DoScaleImageToDPI_500_DocDimSmall_3.465_DocDimLarge_4.921_"
 
static final String PREPROCESS_ID2_STRING = "_DeviceType_2_Do90DegreeRotation_4_DoCropCorrection__DoScaleImageToDPI_500_DoSkewCorrectionPage__DocDimLarge_4.134_DocDimSmall_2.913_LoadSetting_<Property Name=\"CSkewDetect.correct_illumination.Bool\" Value=\"0\" />"
 

Detailed Description

Parameter holder object for on-device extraction.

Any Image(s) may be pre-processed for de-skew and crop prior to sending it for extraction.

One or both images, or a barcode string is required.

Constructor & Destructor Documentation

IdExtractionParameters ( Image  frontImage,
List< BarCodeResult frontBarcodes,
Image  backImage,
List< BarCodeResult backBarcodes,
boolean  isProcessed,
IIdExtractionListener  listener 
)

Construct a new IdExtractionParameters object.

At least one of the frontImage, backImage, frontBarcodes, backBarcodes parameters is required.

Parameters
frontImagePass the front-side image (optional)
frontBarcodesPass the front-side barcode strings and types (optional)
backImagePass the back-side image (optional)
backBarcodesPass the back-side barcode strings and types (optional)
isProcessedWhether the images passed are pre-processed or not. If true, the SDK will not pre-process both images before extraction. Otherwise, any processing required will be handled internally by the SDK.
listenerA callback that will be called with results and errors (cannot be null)
Exceptions
KmcRuntimeException(KMC_GN_ILLEGAL_ARGUMENT_EXCEPTION) When both images and barcode lists are null.
IdExtractionParameters ( String  projectName,
IdType  idType,
Image  frontImage,
List< BarCodeResult frontBarcodes,
Image  backImage,
List< BarCodeResult backBarcodes,
boolean  isProcessed,
IIdExtractionListener  listener 
)

Construct a new IdExtractionParameters object.

At least one of the frontImage, backImage, frontBarcodes, backBarcodes parameters is required.

Parameters
projectNameThe project name (optional). The default value is null.
idTypeThe type of the document (optional). The default value is null.
frontImagePass the front-side image (optional)
frontBarcodesPass the front-side barcode strings and types (optional)
backImagePass the back-side image (optional)
backBarcodesPass the back-side barcode strings and types (optional)
isProcessedWhether the images passed are pre-processed or not. If true, the SDK will not pre-process both images before extraction. Otherwise, any processing required will be handled internally by the SDK.
listenerA callback that will be called with results and errors (cannot be null)
Exceptions
KmcRuntimeException(KMC_GN_ILLEGAL_ARGUMENT_EXCEPTION) When both images and barcode lists are null.
Deprecated:
As of SDK 3.5 replaced by IdExtractionParameters(Image, List<BarCodeResult>, Image, List<BarCodeResult>, boolean, IIdExtractionListener)
IdExtractionParameters ( String  projectName,
IdType  idType,
Image  frontImage,
List< BarCodeResult frontBarcodes,
Image  backImage,
List< BarCodeResult backBarcodes,
boolean  isProcessed,
boolean  extractFaceImage,
boolean  extractSignatureImage,
IIdExtractionListener  extractionListener,
IIdImageProcessingListener  imageProcessingListener 
)

Construct a new IdExtractionParameters object.

At least one of the frontImage, backImage, frontBarcodes, backBarcodes parameters is required.

Parameters
projectNameThe project name (optional). The default value is null.
idTypeThe type of the document (optional). The default value is null.
frontImagePass the front-side image (optional)
frontBarcodesPass the front-side barcode strings and types (optional)
backImagePass the back-side image (optional)
backBarcodesPass the back-side barcode strings and types (optional)
isProcessedWhether the images passed are pre-processed or not. If true, the SDK will not pre-process both images before extraction. Otherwise, any processing required will be handled internally by the SDK.
extractFaceImageWhether or not identification photo extraction will be attempted. Disabled by default.
extractSignatureImageWhether or not signature image extraction will be attempted. Disabled by default.
extractionListenerA callback that will be called with results and errors (cannot be null)
imageProcessingListenerA callback that will be called with the front and back processed images (optional)
Exceptions
KmcRuntimeException(KMC_GN_ILLEGAL_ARGUMENT_EXCEPTION) When both images and barcode lists are null.

Member Function Documentation

List<BarCodeResult> getBackBarcodes ( )
Image getBackImage ( )
boolean getExtractFaceImage ( )
IIdExtractionListener getExtractionListener ( )
boolean getExtractSignatureImage ( )
List<BarCodeResult> getFrontBarcodes ( )
Image getFrontImage ( )
IdType getIdType ( )
IIdImageProcessingListener getImageProcessingListener ( )
IIdExtractionListener getListener ( )

Returns the extraction listener.

Deprecated:
As of SDK 3.4 replaced by getExtractionListener()
String getProjectName ( )
boolean isProcessed ( )

Member Data Documentation

final String PREPROCESS_ID2_STRING = "_DeviceType_2_Do90DegreeRotation_4_DoCropCorrection__DoScaleImageToDPI_500_DoSkewCorrectionPage__DocDimLarge_4.134_DocDimSmall_2.913_LoadSetting_<Property Name=\"CSkewDetect.correct_illumination.Bool\" Value=\"0\" />"
static
final String PREPROCESS_PASSPORT_STRING = "_DeviceType_2_DoCropCorrection__DoSkewCorrectionAlt__Do90DegreeRotation_4_DoScaleImageToDPI_500_DocDimSmall_3.465_DocDimLarge_4.921_"
static
final String PREPROCESS_STRING = "_DeviceType_2_Do90DegreeRotation_4_DoCropCorrection__DoScaleImageToDPI_500_DoSkewCorrectionPage__DocDimLarge_3.375_DocDimSmall_2.125_LoadSetting_<Property Name=\"CSkewDetect.correct_illumination.Bool\" Value=\"0\" />"
static

The documentation for this class was generated from the following file:
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.