cropImage method

Crops image according to the document boundary and size. Applying this operation removes empty fields around a detected document and corrects perspective distortion if needed.

cropImage: (image: Blob,
           coordinates: IPoint[],
           documentSize: IDocumentSizeType)
=> Promise<IBlobImageResult>;


[input] Image to be cropped, passed as a blob.
[input] The four vertex points of the cropping quadrangle, indexed clockwise starting from the bottom left. The points are represented by an array of four IPoint objects.
[input] Document size represented by one of the IDocumentSizeType values.

Return values

The method returns a cropped image, represented by an IBlobImageResult object.

03.04.2023 17:06:08

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.