Skip to main content

What it does

Represents a picture that can be edited in ABBYY FlexiCapture. The object is an extension of the IPictureObject interface.
This object is not available on the Web Verification Station for checking rules locally.

Methods

The rect parameter passed to the CutOut and Crop methods is a string in the form "[left, top, right, bottom]". To get this string, call the ToString method of any IRect object, or use the Rect method of IFlexiCaptureTools (FCTools).

Remove color stamps from an image

The RemoveStamps method deletes color stamps and other marks of a specified color from an image. This method works only for color images. The following sample script for an On User Command event removes red stamps from all pages. The entire page area is searched for stamps.

Remove additional stamp colors

The RemoveStampsExt method deletes color stamps and other marks of a specified color from an image. It is similar to RemoveStamps, but it uses an improved algorithm that removes more colors. This is the recommended method for removing stamps. The colorsToFilter parameter (string) sets the color of stamps to remove:
  • Accepts the following string values: Red, Green, Blue, Yellow, Orange, LightBlue, and Purple (not case-sensitive).
  • You can specify multiple values separated by commas, for example "Red, Green".
  • You can specify an empty string ("") to let the program select the appropriate stamp color automatically. The program deletes any stamps it detects on an image that have one of the allowed color values.
The following sample script for an On User Command event removes red and green stamps from all pages:

Custom processing stage examples

These scripts show how to use IEditablePictureObject methods in custom processing stages.

Apply a local contrast filter

This script creates an object with parameters for the local contrast filter, sets the parameters manually, and applies the filter to an image.

Binarize an image with custom parameters

This script creates an object with parameters for the Binarize method and converts the image to black-and-white with the set parameters.

Enhance selected pages from the Verification Station

This script increases contrast, removes digital noise, applies automatic cropping, and removes blurring on the selected pages. A Verification Station operator runs the script.