Skip to main content
This object allows you to preprocess images before recognition. The standard procedure, which uses this object, is as follows:
  1. Open an image file using either the OpenImageFile or OpenImageFileFromStream method. These methods return an opened file as the ImageFile object.
  2. Open a page of the image file using the OpenImagePage of the ImageFile object. This method provides access to an image page as the Image object.
  3. Preprocess the image page using one of the available methods or implement your own preprocessing algorithm. With the available methods you can do the following operations:
    • remove noise from color photos (RemoveNoise, CreateDenoiseFilterParamsByImage methods)
    • remove motion blur from photos, equalize their brightness (RemoveMotionBlur, EqualizeBrightness methods)
    • remove geometrical distortions from an image or stretch it (CorrectImageGeometry, StretchTrapezoidToRectangle, StretchImage methods)
    • suppress color objects in official documents (SuppressColorObjects method)
    • remove garbage (excess dots that are smaller than a certain size) from an image (RemoveGarbage method)
    • smooth image (SmoothImageBySquareAverage, SmoothImageByGaussianKernel methods)
    • smooth texture (SmoothTexture method)
    • detect orientation of the text on an image and rotate an image either by a predefined angle, or by any custom angle (DetectOrientationByText, RotateImageByRotationType, RotateImage methods)
    • mirror or invert an image (MirrorImage, InvertRegion methods)
    • crop an image (CropImage method)
    • fill with color a region on an image (FillRegionWithColor method)
    • convert image to gray or black and white (ConvertToGray, Binarize methods)
    • convert an internal image plane to a bitmap and vice versa (ImageToBitmap and BitmapToImage methods)

Methods

Output parameter

This object is the output parameter of the CreateImageProcessingTools method of the Engine object.

Samples