SuppressColorObjects Method of the ImageProcessingTools Object
This method suppresses objects with the specified color in official documents.
The method is primarily designed for filtering color on images of passports and certificates. Such preprocessing allows the program to pick out texts on the images.
Important! This method can be used for color images only.
Visual Basic .NET
Function SuppressColorObjects( _ Image As Image, _ HslHue As Integer, _ SaturationBoundary As Integer, _ ) As Image
HRESULT SuppressColorObjects( IImage* Image, int HslHue, int SaturationBoundary, IImage** Result );
- [in] This variable refers to the Image object which is to be preprocessed.
- [in] This parameter specifies the hue, which is to be filtered, in HSL representation. The value of this parameter must be in range from 0 to 255. The value 0 corresponds to red color, 43 — to yellow, 85 — to green, 171 — to blue, 213 — to purple.
- [in] This variable specifies saturation boundary in HSL representation. The value of this parameter must be in range from 1 to 254. If the saturation value is higher than the value of this parameter, the specified hue will be removed from the image. For example, for passports the value in range from 25 to 35 is suitable.
- [out, retval] A pointer to the IImage* pointer variable that provides access to the resulting image.
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.