Click or drag to resize

ImageFileDeskew3D Method

This method performs 3-dimensional de-skew on a page, which means it is used to correct the skew and perspective distortion that can occur when an image is taken by digital camera.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void Deskew3D(
	[OptionalAttribute] int Page
)

Parameters

Page (Optional)
Type: SystemInt32
Remarks

The algorithm does not re-orient upside-down images. The Deskew3D requires at least five well aligned text lines. This means both clear horizontal text baselines, and also some good vertical alignment. This can be provided by one column of justified text (that is, with well-defined left and right margins), or two non-justified text columns, whose left text edges are clear and parallel. If the page contains only graphics, no transformation is performed. Generally, the higher the number of well-aligned text lines on the page, the better the accuracy. It helps if they are not restricted to a small part of the image.

If the Page optional Long parameter is unspecified or -1 the first page is processed. Otherwise, the page specified by the Page index parameter is processed.

This method can only be used with multi-page image TIFF files. A further requirement is that the pages in the multi-page TIFF file must be stored in one-strip format and the StripBytesCount TIFF tag must exist in the page header. TIFF image files created by the Capture SDK fulfill this requirement.

To execute 3D-deskew on files other than TIFF files, set the SP_LDI_DIGITALCAMERA workflow parameter to True and load the file into an existing document.

See Also