Atalasoft MobileImage API Reference
|
Passport Detector class. More...
#import <KFXPassportDetector.h>
Instance Methods | |
(KFXPassportDetectionResult *) | - detectImage:withSettings:andError: |
Determines if a given image contains a passport. More... | |
(KFXPassportDetectionResult *) | - detectSample:withSettings:andError: |
Determines if a given sample buffer contains a passport. More... | |
Passport Detector class.
Passport Detector is a standalone processing class for determining if a given image or sample buffer contains a passport. When a passport is found, a result object will be returned containing its coordinates. Since this class is limited in scope to detecting passports, the results will not include any data from the passport itself.
- (KFXPassportDetectionResult*) detectImage: | (UIImage *) | image | |
withSettings: | (KFXPassportDetectionSettings *) | settings | |
andError: | (NSError **) | error | |
Determines if a given image contains a passport.
Given an image, this method will determine if a passport is present or not. If a passport is found, a result object containing the passport's bounding coordinates will be returned.
image | The image to search for passport within. |
settings | Passport detection settings. If nil than default settings will be used. |
error | On return, if detection could not be performed, a pointer to an error object that encapsulates the reason for failure. The detect method will also return nil in this instance. Pass nil for this argument if you are not interested in specific error information. |
- (KFXPassportDetectionResult*) detectSample: | (CMSampleBufferRef) | sample | |
withSettings: | (KFXPassportDetectionSettings *) | settings | |
andError: | (NSError **) | error | |
Determines if a given sample buffer contains a passport.
Given a sample buffer in kCVPixelFormatType_32BGRA format, this method will determine if a passport is present or not. If a passport is found, a result object containing the passport's bounding coordinates will be returned.
sample | The sample buffer in kCVPixelFormatType_32BGRA format to search for passport within. |
settings | Passport detection settings. If nil than default settings will be used. |
error | On return, if detection could not be performed, a pointer to an error object that encapsulates the reason for failure. The detect method will also return nil in this instance. Pass nil for this argument if you are not interested in specific error information. |