Kofax Mobile SDK API Reference
|
Public Member Functions | |
DocumentDetector (Context context) | |
DocumentDetectionResult | detect (DocumentDetectionSettings settings, Bitmap image) |
Call this method to run the document detection algorithm. More... | |
DocumentDetectionResult | detect (DocumentDetectionSettings settings, byte[] data, int width, int height) |
Call this method to run the document detection algorithm. More... | |
void | destroy () |
Destroys this detector instance and releases resources associated with it. More... | |
Public Member Functions inherited from IDocumentDetector< DocumentDetectionSettings, DocumentDetectionResult > | |
U | detect (T settings, Bitmap image) |
Runs the document detection algorithm. More... | |
U | 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... | |
This class provides the main entry point to run Kofax's document detection algorithms against a bitmap image or byte array. Since detection is based on a super-resolution technique, higher accuracy results will be returned after multiple executions.
DocumentDetector | ( | Context | context | ) |
void destroy | ( | ) |
Destroys this detector instance and releases resources associated with it.
Call this method when you are done with this detector completely. A destroyed instance should not be used.
DocumentDetectionResult detect | ( | DocumentDetectionSettings | settings, |
Bitmap | image | ||
) |
Call this method to run the document detection algorithm.
None of the parameter values should be null.
settings | an instance of a DocumentDetectionSettings object |
image | the bitmap image with which the document detection algorithm will run against |
null
if the algorithm could not detect any document in the image DocumentDetectionResult detect | ( | DocumentDetectionSettings | settings, |
byte[] | data, | ||
int | width, | ||
int | height | ||
) |
Call this method to run the document detection algorithm.
None of the parameter values should be null.
settings | an instance of a DocumentDetectionSettings object |
data | the image data with which the document detection algorithm will run against |
width | the width of the image |
height | the height of the image |
null
if the algorithm could not detect any document in the image