RemoveGarbage Method of the ImageDocument Object

This method removes garbage (excess dots that are smaller than a certain size) from the image. The image can be color as well as black-and-white. In case of a color image the garbage will be detected on the black-and-white image plane and afterwards removed from all planes.

Syntax

HRESULT RemoveGarbage(
  IRegion* Region,
  int      GarbageSize
);
    

Parameters

Region
[in] This parameter of the Region type specifies the set of rectangles to remove garbage from. The coordinates of rectangles are related to the deskewed image. This parameter may be 0. In this case, the garbage is removed from the whole image.
GarbageSize
[in] This variable specifies the maximum area of black dots that are to be considered garbage (in pixels). The value of -1 for this input parameter tells ABBYY FineReader Engine to automatically calculate the size of garbage.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

ImageDocument

03.07.2024 8:50:10

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.