BcmFingerImage
A scan result object is provided by BcmScanController to PBcmFlowDelegate. It captures the result of a scan session.
Bitmap output format support for custom integration and projects.
Interface
public struct BcmFingerImage {
/**
* The finger image data are represented as a 8-bit grayscale uiimage
* optimized for matching algorithms
*/
public var defaultImage: UIImage
/**
* The finger image data are represented as a 8-bit grayscale uiimage
* optimized for visual observation
*/
public var nfiq2Image: UIImage
/**
* The finger image - Dots Per Inch.
*/
public var dpi: Double
/**
* This data point is not implemented yet and can be ignored.
*/
public var distance: Double
/**
* Contains the score of the captured finger.
* The range is between [0.0 - 1.0]. Good acceptable values are around 0.2.
* 0.5 - 1.0 is hard to reach, but theoretically possible.
*/
public var score: Double
/**
* Info about which Hand - Left, Right
*/
public var hand: Hand
/**
* Info about which Finger - Thumb, Index, Middle, Ring, Pinky
*/
public var finger: Finger
public init(
defaultImage: UIImage,
nfiq2Image: UIImage,
dpi: Double,
distance: Double,
score: Double,
hand: Hand,
finger: Finger
){
self.defaultImage = defaultImage
self.nfiq2Image = nfiq2Image
self.dpi = dpi
self.distance = distance
self.score = score
self.hand = hand
self.finger = finger
}
}
Usage
BcmFingerImage is used for the PBcmFlowDelegate.fingerImagesResult() callback, when the scan
gets terminated. The scan termination can be configured via the BcmScanConfig.
There is also the possibility to set your own Scan termination logic, see Custom Scan Termination.
Default Image
Optimized for matching algorithms
NFIQ2 Image
Optimized for NFIQ2