GSKPerspectiveCorrectionConfiguration

Objective-C

@interface GSKPerspectiveCorrectionConfiguration : NSObject

Swift

class GSKPerspectiveCorrectionConfiguration : NSObject

A GSKPerspectiveCorrectionConfiguration defines the behavior of a GSKScanProcessor when applying perspective correction.

  • A configuration that will result in the document being auto-detected, and the perspective correction subsequently applied.

    Declaration

    Objective-C

    + (nonnull instancetype)automaticPerspectiveCorrectionConfiguration;

    Swift

    class func automatic() -> Self
  • A configuration that will result in no perspective correction being applied.

    Declaration

    Objective-C

    + (nonnull instancetype)noPerspectiveCorrectionConfiguration;

    Swift

    class func no() -> Self
  • A configuration that will result in applying the perspective correction defined by the quadrangle.

    Declaration

    Objective-C

    + (nonnull instancetype)perspectiveCorrectionConfigurationWithQuadrangle:
        (nonnull GSKQuadrangle *)quadrangle;

    Swift

    convenience init(quadrangle: GSKQuadrangle)