Atalasoft MobileImage API Reference
|
Document Detector class. More...
#import <kfxKCDDocumentDetector.h>
Instance Methods | |
(kfxKEDDocumentDetectionResult *) | - detectImage:withSettings:andError: |
Determines if a given image contains a document. More... | |
(kfxKEDDocumentDetectionResult *) | - detectSample:withSettings:andError: |
Determines if a given sample buffer contains a document. More... | |
Document Detector class.
Document Detector is a standalone processing class for determining if a given image contains a document. When a document is found, a result object will be returned. Since detection is based on super-resolution technique, the high accuracy results will be returned after multiply runs. For better performance recommended to use CMSampleBufferRef input, instead of UIImage.
- (kfxKEDDocumentDetectionResult*) detectImage: | (UIImage *) | image | |
withSettings: | (kfxKEDDocumentDetectionSettings *) | settings | |
andError: | (NSError **) | error | |
Determines if a given image contains a document.
Given an image, this method will determine if a document is present or not. If a document is found, a result object containing the document's bounding coordinates along with guidance will be returned. This is not recommended to use due performance overhead. Consider to use sample buffer input implementation.
image | The image for searching a document |
settings | A collection of settings to control detector behavior. 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. |
- (kfxKEDDocumentDetectionResult*) detectSample: | (CMSampleBufferRef) | sample | |
withSettings: | (kfxKEDDocumentDetectionSettings *) | settings | |
andError: | (NSError **) | error | |
Determines if a given sample buffer contains a document.
Given a sample buffer in kCVPixelFormatType_32BGRA format, this method will determine if a document is present or not. If a document is found, a result object containing the document's bounding coordinates along with guidance will be returned.
sample | The sample buffer in kCVPixelFormatType_32BGRA format for searching a document |
settings | A collection of settings to control detector behavior. 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. |