Kofax Mobile SDK API Reference
Public Member Functions | List of all members
PassportDetector Class Reference
Inheritance diagram for PassportDetector:
IPassportDetector IDocumentDetector< PassportDetectionSettings, PassportDetectionResult >

Public Member Functions

 PassportDetector ()
 
PassportDetectionResult detect (PassportDetectionSettings settings, Bitmap image)
 
PassportDetectionResult detect (PassportDetectionSettings settings, byte[] data, int width, int height)
 
void destroy ()
 
- Public Member Functions inherited from IDocumentDetector< PassportDetectionSettings, PassportDetectionResult >
detect (T settings, Bitmap image)
 Runs the document detection algorithm. More...
 
detect (T settings, byte[] data, int width, int height)
 Runs the document detection algorithm. More...
 
void destroy ()
 Destroys this detector instance and releases resources associated with it. More...
 

Detailed Description

This class provides the main entry point to run Kofax's PassportDetection algorithms against a bitmap image.

Constructor & Destructor Documentation

Default constructor for the PassportDetector class.

Member Function Documentation

void destroy ( )

When using the detector directly, it is necessary to call this method to allow for clean-up. Only call this method when you are done with the detector completely, i.e. in your onDestroy method of your Activity

PassportDetectionResult detect ( PassportDetectionSettings  settings,
Bitmap  image 
)

Call this method to run the check detection algorithms. Note: None of the parameter values should be null.

Parameters
settingsAn instance of a PassportDetectionSettings object.
imageThe bitmap image with which the check detection algorithm will run against. The bitmap must be in landscape orientation with the passport in an up-right orientation (MRZ in the bottom or in the top)
Returns
PassportDetectionResult Calling this method will return a PassportDetectResult object that contains the bounds of the passport, the original image, zoom guidance, rotation guidance, horizontal guidance, and vertical guidance. A null result indicates the detector was unable to locate a passport within the image.

Implements IPassportDetector.

PassportDetectionResult detect ( PassportDetectionSettings  settings,
byte[]  data,
int  width,
int  height 
)

Call this method to run the check detection algorithms.

Parameters
settingsAn instance of a PassportDetectionSettings object.
dataThe image data with which the check detection algorithm will run against. The bitmap must be in landscape orientation with the passport in an up-right orientation (MRZ in the bottom or in the top)
widthThe width of the image
heightThe height of the image
Returns
PassportDetectResult Calling this method will return a PassportDetectResult object that contains the bounds of the passport, the original image, zoom guidance, rotation guidance, horizontal guidance, and vertical guidance. A null result indicates the detector was unable to locate a passport within the image.

Implements IPassportDetector.


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.