DSOptions
@objc
public class DSOptions : NSObject
A configuration object that indicates how the document scan should behave
Discussion
DSOptions store configuration options for a specific types of document scans. These configurations can very by scan type. For example an ID1 configuration may contain different configuration options than a passport configuration
The type of options passed to the DSHandler determine how and what the scan will try to detect.
-
Flash capture options for a document scan.
See moreDeclaration
Swift
@objc public enum FlashCapture : Int
-
Sets the flash capture option for a document scan. Defaults to Front
Declaration
Swift
@objc public var enableFlashCapture: FlashCapture
-
The target DPI for the captured image, a valid DPI range is 300 to 1000. Defaults to 460 dpi Discussion: If the target DPI is given as less than 300, then the targetDPI value will default to 300. If the minimum DPI is greater than 1000, then the targetDPI value will default to 1000.
Declaration
Swift
@objc public var targetDPI: Int { get set }
-
The compression quality of the image data returned. Expressed as a value from 0.0 to 1.0. The value 0.0 represents the maximum compression (or lowest quality) while the value 1.0 represents the least compression (or best quality). Defaults to 0.30 Discussion: If the value is less than 0.0, then the value will be set to 0.0. If the value is greater than 1.0 the value will be set to 1.0
Declaration
Swift
@objc public var imageCompressionQuality: CGFloat { get set }
-
Shows an image review screen after the user scans an image of the document. Defaults to false
Declaration
Swift
@objc public var showReviewScreen: Bool
-
Sets the rectification option for a document scan. Defaults to false
Declaration
Swift
@objc public var enableRectification: Bool
-
Undocumented
Declaration
Swift
@objc public required override init()