GSKProcessingConfiguration
Objective-C
@interface GSKProcessingConfiguration : NSObject
Swift
class GSKProcessingConfiguration : NSObject
The configuration object to configure the GSKProcessor’s behavior.
You can use the default constructors.
-
+configurationWithPerspectiveCorrectionConfiguration:
curvatureCorrectionConfiguration: enhancementConfiguration: rotationConfiguration: outputConfiguration: Undocumented
Declaration
Objective-C
+ (instancetype)configurationWithPerspectiveCorrectionConfiguration:(GSKPerspectiveCorrectionConfiguration *)perspectiveCorrectionConfiguration curvatureCorrectionConfiguration:(GSKCurvatureCorrectionConfiguration *)curvatureCorrectionConfiguration enhancementConfiguration:(GSKEnhancementConfiguration *)enhancementConfiguration rotationConfiguration:(GSKRotationConfiguration *)rotationConfiguration outputConfiguration:(GSKOutputConfiguration *)outputConfiguration;
Swift
convenience init(perspectiveCorrectionConfiguration: GSKPerspectiveCorrectionConfiguration, curvatureCorrectionConfiguration: GSKCurvatureCorrectionConfiguration, enhancementConfiguration: GSKEnhancementConfiguration, rotationConfiguration: GSKRotationConfiguration, outputConfiguration: GSKOutputConfiguration)
-
Automatic perspective correction, distortion correction, followed by automatic enhancement and automatic rotation. Output is JPEG.
Declaration
Objective-C
+ (nonnull instancetype)defaultConfiguration;
Swift
class func `default`() -> Self
-
Specify how to correct perspective distortions present in the scan (such as when the scan was taken with an angle)
Declaration
Objective-C
@property (nonatomic, strong, readonly) GSKPerspectiveCorrectionConfiguration *_Nonnull perspectiveCorrectionConfiguration;
Swift
var perspectiveCorrectionConfiguration: GSKPerspectiveCorrectionConfiguration { get }
-
Specify how to correct curvature distortions present in the scan (such as a bent book)
Declaration
Objective-C
@property (nonatomic, strong, readonly) GSKCurvatureCorrectionConfiguration *_Nonnull curvatureCorrectionConfiguration;
Swift
var curvatureCorrectionConfiguration: GSKCurvatureCorrectionConfiguration { get }
-
The enhancement configuration. This includes the filters enhancing the legibility of the document.
Declaration
Objective-C
@property (nonatomic, strong, readonly) GSKEnhancementConfiguration *_Nonnull enhancementConfiguration;
Swift
var enhancementConfiguration: GSKEnhancementConfiguration { get }
-
The rotation configuration. The rotation will be applied after all the other processing.
Declaration
Objective-C
@property (nonatomic, strong, readonly) GSKRotationConfiguration *_Nonnull rotationConfiguration;
Swift
var rotationConfiguration: GSKRotationConfiguration { get }
-
Configures the output format of the processing.
Declaration
Objective-C
@property (nonatomic, strong, readonly) GSKOutputConfiguration *_Nonnull outputConfiguration;
Swift
var outputConfiguration: GSKOutputConfiguration { get }