withAspectRatio method of the AreaOfInterest class

Sets a single aspect ratio value for the area of interest. The aspect ratio is counted by division of the document's width to its height.

In case the end-user changes a camera orientation during capture, the area of interest, set by this method, will be inverted. To save the area of interest unchanged, use the withAspectRatioForOrientations method.

AreaOfInterest withAspectRatio( Float value );


The aspect ratio value of the area of interest.

Return values

The method returns an instance of an AreaOfInterest class with the passed to the method aspect ratio value.

02.03.2022 12:59:15

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.