Chinese Simplified (简体中文)

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

C++

HRESULT RemoveGarbage(
  IRegion* Region,
  int      GarbageSize
);
    

C#

void RemoveGarbage(
  IRegion Region,
  int    GarbageSize
);
    

Visual Basic .NET

Sub RemoveGarbage( _
  Region As IRegion, _
  GarbageSize As Integer _
)
    

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

17.09.2024 15:14:41

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.