Kofax Mobile SDK API Reference
|
Public Member Functions | |
GlareRemover (Context context) | |
float | getGlareFraction (Image image) |
Call this method to get the glare fraction on the image. More... | |
IGlareResult | removeGlare (ArrayList< Bitmap > imageList) |
Call this method to get the glare free image. More... | |
void | destroy () |
Destroys this object instance and releases resources associated with it. More... | |
This class provides the main entry point to run Kofax's glare detection and removal algorithm against the passed bitmap images.
GlareRemover | ( | Context | context | ) |
void destroy | ( | ) |
Destroys this object instance and releases resources associated with it.
Call this method when you are done with this glare removal completely. A destroyed instance should not be used.
float getGlareFraction | ( | Image | image | ) |
Call this method to get the glare fraction on the image.
None of the parameter values should be null. throws IllegalArgumentException if image is null.
image | the image object for which the glare fraction is calculated |
IGlareResult removeGlare | ( | ArrayList< Bitmap > | imageList | ) |
Call this method to get the glare free image.
None of the parameter values should be null.
imageList | list of images to remove glare in which the first image will be considered as primary image. At present only two images are supported. throws kmcException if images are null or if images list size not equal to 2 |
null
if the algorithm could not remove glare on the image and an error message if the glare removal fails