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.

Syntax

Visual Basic .NET

Function SuppressColorObjects( _
  Image As Image, _
  HslHue As Integer, _
  SaturationBoundary As Integer, _
) As Image
    

C++

HRESULT SuppressColorObjects(
  IImage*  Image,
  int      HslHue,
  int      SaturationBoundary,
  IImage** Result
);
    

Parameters

Image
[in] This variable refers to the Image object which is to be preprocessed.
HslHue
[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.
SaturationBoundary
[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.
Result
[out, retval] A pointer to the IImage* pointer variable that provides access to the resulting image.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

ImageProcessingTools

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.