@thegrizzlylabs/react-native-genius-scan 5.0.2 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -1
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKBackgroundKind.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +28 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogger.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentComposition.h +16 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +3 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEdgeCleaning.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +51 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterColorPalette.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterStyle.h +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +11 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLog.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLogger.h +4 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKOutputConfiguration.h +41 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKPerspectiveCorrectionConfiguration.h +35 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingConfiguration.h +54 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +56 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKResizeConfiguration.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKResizeResult.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotation.h +27 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotationConfiguration.h +35 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +11 -210
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +207 -11
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +30 -20
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +5562 -1703
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK_GSSDKObjC.bundle/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK_GSSDKObjC.bundle/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKBackgroundKind.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +28 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDefaultLogger.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentComposition.h +16 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +3 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEdgeCleaning.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +51 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterColorPalette.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterStyle.h +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +11 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLog.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h +4 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKOutputConfiguration.h +41 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKPerspectiveCorrectionConfiguration.h +35 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingConfiguration.h +54 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +56 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKResizeConfiguration.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKResizeResult.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotation.h +27 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotationConfiguration.h +35 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +11 -210
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +414 -22
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +30 -20
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +5562 -1703
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +5562 -1703
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/package.json +1 -1
|
@@ -21,6 +21,16 @@ import Vision
|
|
|
21
21
|
import _Concurrency
|
|
22
22
|
import _StringProcessing
|
|
23
23
|
import _SwiftConcurrencyShims
|
|
24
|
+
extension GSSDK.GSKBackgroundKind : Swift.CustomStringConvertible {
|
|
25
|
+
public var description: Swift.String {
|
|
26
|
+
get
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
extension GSSDK.GSKDocumentComposition : Swift.CustomStringConvertible {
|
|
30
|
+
public var description: Swift.String {
|
|
31
|
+
get
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
@objcMembers final public class GSKDocumentFinderResult {
|
|
25
35
|
@objc final public let imageType: GSSDK.GSKDocumentFinderImageType
|
|
26
36
|
@objc public init(imageType: GSSDK.GSKDocumentFinderImageType)
|
|
@@ -42,6 +52,113 @@ import _SwiftConcurrencyShims
|
|
|
42
52
|
get
|
|
43
53
|
}
|
|
44
54
|
}
|
|
55
|
+
extension GSSDK.GSKEdgeCleaning : Swift.CustomStringConvertible {
|
|
56
|
+
public var description: Swift.String {
|
|
57
|
+
get
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@objc @objcMembers final public class GSKFilterBackgroundCleaningConfiguration : ObjectiveC.NSObject {
|
|
61
|
+
@objc final public let edgeCleaning: GSSDK.GSKEdgeCleaning
|
|
62
|
+
@objc final public let backgroundKind: GSSDK.GSKBackgroundKind
|
|
63
|
+
@objc final public let documentComposition: GSSDK.GSKDocumentComposition
|
|
64
|
+
@objc final public let strength: CoreFoundation.CGFloat
|
|
65
|
+
@objc public init(edgeCleaning: GSSDK.GSKEdgeCleaning, backgroundKind: GSSDK.GSKBackgroundKind, documentComposition: GSSDK.GSKDocumentComposition, strength: CoreFoundation.CGFloat)
|
|
66
|
+
@objc deinit
|
|
67
|
+
}
|
|
68
|
+
extension GSSDK.GSKFilterBackgroundCleaningConfiguration {
|
|
69
|
+
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
|
70
|
+
@objc override final public var hash: Swift.Int {
|
|
71
|
+
@objc get
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
extension GSSDK.GSKFilterBackgroundCleaningConfiguration {
|
|
75
|
+
@objc override final public var description: Swift.String {
|
|
76
|
+
@objc get
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@objc @objcMembers final public class GSKFilterColorConfiguration : ObjectiveC.NSObject {
|
|
80
|
+
@objc public static let monochrome: GSSDK.GSKFilterColorConfiguration
|
|
81
|
+
@objc public static let grayscale: GSSDK.GSKFilterColorConfiguration
|
|
82
|
+
@objc public static let color: GSSDK.GSKFilterColorConfiguration
|
|
83
|
+
@objc final public let palette: GSSDK.GSKFilterColorPalette
|
|
84
|
+
@objc public init(palette: GSSDK.GSKFilterColorPalette)
|
|
85
|
+
@objc deinit
|
|
86
|
+
}
|
|
87
|
+
extension GSSDK.GSKFilterColorConfiguration {
|
|
88
|
+
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
|
89
|
+
@objc override final public var hash: Swift.Int {
|
|
90
|
+
@objc get
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
extension GSSDK.GSKFilterColorConfiguration {
|
|
94
|
+
@objc override final public var description: Swift.String {
|
|
95
|
+
@objc get
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
extension GSSDK.GSKFilterColorPalette : Swift.CustomStringConvertible {
|
|
99
|
+
public var description: Swift.String {
|
|
100
|
+
get
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@objc extension GSSDK.GSKFilterConfiguration {
|
|
104
|
+
@objc public static var softGrayscale: GSSDK.GSKFilterConfiguration {
|
|
105
|
+
@objc get
|
|
106
|
+
}
|
|
107
|
+
@objc public static var softColor: GSSDK.GSKFilterConfiguration {
|
|
108
|
+
@objc get
|
|
109
|
+
}
|
|
110
|
+
@objc public static var strongMonochrome: GSSDK.GSKFilterConfiguration {
|
|
111
|
+
@objc get
|
|
112
|
+
}
|
|
113
|
+
@objc public static var strongGrayscale: GSSDK.GSKFilterConfiguration {
|
|
114
|
+
@objc get
|
|
115
|
+
}
|
|
116
|
+
@objc public static var strongColor: GSSDK.GSKFilterConfiguration {
|
|
117
|
+
@objc get
|
|
118
|
+
}
|
|
119
|
+
@objc public static var photo: GSSDK.GSKFilterConfiguration {
|
|
120
|
+
@objc get
|
|
121
|
+
}
|
|
122
|
+
@objc public static var darkBackground: GSSDK.GSKFilterConfiguration {
|
|
123
|
+
@objc get
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
@objc @objcMembers final public class GSKFilterConfiguration : ObjectiveC.NSObject {
|
|
127
|
+
@objc public static let noOp: GSSDK.GSKFilterConfiguration
|
|
128
|
+
@objc public static func photo(lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?, colorConfiguration: GSSDK.GSKFilterColorConfiguration?) -> GSSDK.GSKFilterConfiguration
|
|
129
|
+
@objc final public let lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?
|
|
130
|
+
@objc final public let backgroundCleaningConfiguration: GSSDK.GSKFilterBackgroundCleaningConfiguration?
|
|
131
|
+
@objc final public let colorConfiguration: GSSDK.GSKFilterColorConfiguration?
|
|
132
|
+
@objc public static func configurationWithLightingCorrectionConfiguration(_ lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?, backgroundCleaningConfiguration: GSSDK.GSKFilterBackgroundCleaningConfiguration?, colorConfiguration: GSSDK.GSKFilterColorConfiguration?) -> GSSDK.GSKFilterConfiguration
|
|
133
|
+
@objc public init(lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?, backgroundCleaningConfiguration: GSSDK.GSKFilterBackgroundCleaningConfiguration?, colorConfiguration: GSSDK.GSKFilterColorConfiguration?)
|
|
134
|
+
@objc deinit
|
|
135
|
+
}
|
|
136
|
+
extension GSSDK.GSKFilterConfiguration {
|
|
137
|
+
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
|
138
|
+
@objc override final public var hash: Swift.Int {
|
|
139
|
+
@objc get
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@objc @objcMembers public class GSKFilterLightingCorrectionConfiguration : ObjectiveC.NSObject {
|
|
143
|
+
@objc public static let noOp: GSSDK.GSKFilterLightingCorrectionConfiguration
|
|
144
|
+
@objc public static let textDocument: GSSDK.GSKFilterLightingCorrectionConfiguration
|
|
145
|
+
@objc public static let photos: GSSDK.GSKFilterLightingCorrectionConfiguration
|
|
146
|
+
@objc final public let minThreshold: CoreFoundation.CGFloat
|
|
147
|
+
@objc final public let maxThreshold: CoreFoundation.CGFloat
|
|
148
|
+
@objc public init(minThreshold: CoreFoundation.CGFloat, maxThreshold: CoreFoundation.CGFloat)
|
|
149
|
+
@objc deinit
|
|
150
|
+
}
|
|
151
|
+
extension GSSDK.GSKFilterLightingCorrectionConfiguration {
|
|
152
|
+
@objc override dynamic public func isEqual(_ object: Any?) -> Swift.Bool
|
|
153
|
+
@objc override dynamic public var hash: Swift.Int {
|
|
154
|
+
@objc get
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
extension GSSDK.GSKFilterLightingCorrectionConfiguration {
|
|
158
|
+
@objc override dynamic public var description: Swift.String {
|
|
159
|
+
@objc get
|
|
160
|
+
}
|
|
161
|
+
}
|
|
45
162
|
@_hasMissingDesignatedInitializers @objc final public class GSKLicenseKeyRefresher : ObjectiveC.NSObject {
|
|
46
163
|
public typealias LicenseKey = Swift.String
|
|
47
164
|
@objc final public var licenseKey: GSSDK.GSKLicenseKeyRefresher.LicenseKey {
|
|
@@ -341,6 +458,7 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
341
458
|
@objc final public var sourceImageURL: Foundation.URL?
|
|
342
459
|
@objc final public var multiPage: Swift.Bool
|
|
343
460
|
@objc final public var defaultFilter: GSSDK.GSKScanFlowFilterType
|
|
461
|
+
final public var availableFilters: [GSSDK.GSKScanFlowFilterType]
|
|
344
462
|
@objc final public var skipPostProcessingScreen: Swift.Bool
|
|
345
463
|
@objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
|
|
346
464
|
@objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
|
|
@@ -378,12 +496,18 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
378
496
|
}
|
|
379
497
|
}
|
|
380
498
|
@objc public enum GSKScanFlowFilterType : Swift.Int, Swift.CaseIterable {
|
|
381
|
-
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
382
499
|
@objc(GSKScanFlowFilterNone) case none
|
|
383
|
-
@objc(
|
|
384
|
-
@objc(
|
|
500
|
+
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
501
|
+
@objc(GSKScanFlowFilterAutomaticDocumentMonochrome) case automaticDocumentMonochrome
|
|
502
|
+
@objc(GSKScanFlowFilterAutomaticDocumentGrayscale) case automaticDocumentGrayscale
|
|
503
|
+
@objc(GSKScanFlowFilterAutomaticDocumentColor) case automaticDocumentColor
|
|
504
|
+
@objc(GSKScanFlowFilterSoftGrayscale) case softGrayscale
|
|
505
|
+
@objc(GSKScanFlowFilterSoftColor) case softColor
|
|
506
|
+
@objc(GSKScanFlowFilterStrongMonochrome) case strongMonochrome
|
|
507
|
+
@objc(GSKScanFlowFilterStrongGrayscale) case strongGrayscale
|
|
508
|
+
@objc(GSKScanFlowFilterStrongColor) case strongColor
|
|
509
|
+
@objc(GSKScanFlowFilterDarkBackground) case darkBackground
|
|
385
510
|
@objc(GSKScanFlowFilterPhoto) case photo
|
|
386
|
-
@objc(GSKScanFlowFilterMonochrome) case monochrome
|
|
387
511
|
public init?(rawValue: Swift.Int)
|
|
388
512
|
public typealias AllCases = [GSSDK.GSKScanFlowFilterType]
|
|
389
513
|
public typealias RawValue = Swift.Int
|
|
@@ -587,13 +711,13 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.RawRepresentable {}
|
|
|
587
711
|
extension GSSDK.GSKDocumentGeneratorFileFormat : Swift.Equatable {}
|
|
588
712
|
extension GSSDK.GSKDocumentGeneratorFileFormat : Swift.Hashable {}
|
|
589
713
|
extension GSSDK.GSKDocumentGeneratorFileFormat : Swift.RawRepresentable {}
|
|
714
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
715
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
716
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
590
717
|
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
591
718
|
extension GSSDK.GSKScanFlowError : Swift.Equatable {}
|
|
592
719
|
extension GSSDK.GSKScanFlowError : Swift.Hashable {}
|
|
593
720
|
extension GSSDK.GSKScanFlowError : Swift.RawRepresentable {}
|
|
594
|
-
extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
595
|
-
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
596
|
-
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
597
721
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Equatable {}
|
|
598
722
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Hashable {}
|
|
599
723
|
extension GSSDK.GSKScanFlowFlashMode : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -21,6 +21,16 @@ import Vision
|
|
|
21
21
|
import _Concurrency
|
|
22
22
|
import _StringProcessing
|
|
23
23
|
import _SwiftConcurrencyShims
|
|
24
|
+
extension GSSDK.GSKBackgroundKind : Swift.CustomStringConvertible {
|
|
25
|
+
public var description: Swift.String {
|
|
26
|
+
get
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
extension GSSDK.GSKDocumentComposition : Swift.CustomStringConvertible {
|
|
30
|
+
public var description: Swift.String {
|
|
31
|
+
get
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
@objcMembers final public class GSKDocumentFinderResult {
|
|
25
35
|
@objc final public let imageType: GSSDK.GSKDocumentFinderImageType
|
|
26
36
|
@objc public init(imageType: GSSDK.GSKDocumentFinderImageType)
|
|
@@ -42,6 +52,113 @@ import _SwiftConcurrencyShims
|
|
|
42
52
|
get
|
|
43
53
|
}
|
|
44
54
|
}
|
|
55
|
+
extension GSSDK.GSKEdgeCleaning : Swift.CustomStringConvertible {
|
|
56
|
+
public var description: Swift.String {
|
|
57
|
+
get
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@objc @objcMembers final public class GSKFilterBackgroundCleaningConfiguration : ObjectiveC.NSObject {
|
|
61
|
+
@objc final public let edgeCleaning: GSSDK.GSKEdgeCleaning
|
|
62
|
+
@objc final public let backgroundKind: GSSDK.GSKBackgroundKind
|
|
63
|
+
@objc final public let documentComposition: GSSDK.GSKDocumentComposition
|
|
64
|
+
@objc final public let strength: CoreFoundation.CGFloat
|
|
65
|
+
@objc public init(edgeCleaning: GSSDK.GSKEdgeCleaning, backgroundKind: GSSDK.GSKBackgroundKind, documentComposition: GSSDK.GSKDocumentComposition, strength: CoreFoundation.CGFloat)
|
|
66
|
+
@objc deinit
|
|
67
|
+
}
|
|
68
|
+
extension GSSDK.GSKFilterBackgroundCleaningConfiguration {
|
|
69
|
+
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
|
70
|
+
@objc override final public var hash: Swift.Int {
|
|
71
|
+
@objc get
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
extension GSSDK.GSKFilterBackgroundCleaningConfiguration {
|
|
75
|
+
@objc override final public var description: Swift.String {
|
|
76
|
+
@objc get
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@objc @objcMembers final public class GSKFilterColorConfiguration : ObjectiveC.NSObject {
|
|
80
|
+
@objc public static let monochrome: GSSDK.GSKFilterColorConfiguration
|
|
81
|
+
@objc public static let grayscale: GSSDK.GSKFilterColorConfiguration
|
|
82
|
+
@objc public static let color: GSSDK.GSKFilterColorConfiguration
|
|
83
|
+
@objc final public let palette: GSSDK.GSKFilterColorPalette
|
|
84
|
+
@objc public init(palette: GSSDK.GSKFilterColorPalette)
|
|
85
|
+
@objc deinit
|
|
86
|
+
}
|
|
87
|
+
extension GSSDK.GSKFilterColorConfiguration {
|
|
88
|
+
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
|
89
|
+
@objc override final public var hash: Swift.Int {
|
|
90
|
+
@objc get
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
extension GSSDK.GSKFilterColorConfiguration {
|
|
94
|
+
@objc override final public var description: Swift.String {
|
|
95
|
+
@objc get
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
extension GSSDK.GSKFilterColorPalette : Swift.CustomStringConvertible {
|
|
99
|
+
public var description: Swift.String {
|
|
100
|
+
get
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@objc extension GSSDK.GSKFilterConfiguration {
|
|
104
|
+
@objc public static var softGrayscale: GSSDK.GSKFilterConfiguration {
|
|
105
|
+
@objc get
|
|
106
|
+
}
|
|
107
|
+
@objc public static var softColor: GSSDK.GSKFilterConfiguration {
|
|
108
|
+
@objc get
|
|
109
|
+
}
|
|
110
|
+
@objc public static var strongMonochrome: GSSDK.GSKFilterConfiguration {
|
|
111
|
+
@objc get
|
|
112
|
+
}
|
|
113
|
+
@objc public static var strongGrayscale: GSSDK.GSKFilterConfiguration {
|
|
114
|
+
@objc get
|
|
115
|
+
}
|
|
116
|
+
@objc public static var strongColor: GSSDK.GSKFilterConfiguration {
|
|
117
|
+
@objc get
|
|
118
|
+
}
|
|
119
|
+
@objc public static var photo: GSSDK.GSKFilterConfiguration {
|
|
120
|
+
@objc get
|
|
121
|
+
}
|
|
122
|
+
@objc public static var darkBackground: GSSDK.GSKFilterConfiguration {
|
|
123
|
+
@objc get
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
@objc @objcMembers final public class GSKFilterConfiguration : ObjectiveC.NSObject {
|
|
127
|
+
@objc public static let noOp: GSSDK.GSKFilterConfiguration
|
|
128
|
+
@objc public static func photo(lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?, colorConfiguration: GSSDK.GSKFilterColorConfiguration?) -> GSSDK.GSKFilterConfiguration
|
|
129
|
+
@objc final public let lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?
|
|
130
|
+
@objc final public let backgroundCleaningConfiguration: GSSDK.GSKFilterBackgroundCleaningConfiguration?
|
|
131
|
+
@objc final public let colorConfiguration: GSSDK.GSKFilterColorConfiguration?
|
|
132
|
+
@objc public static func configurationWithLightingCorrectionConfiguration(_ lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?, backgroundCleaningConfiguration: GSSDK.GSKFilterBackgroundCleaningConfiguration?, colorConfiguration: GSSDK.GSKFilterColorConfiguration?) -> GSSDK.GSKFilterConfiguration
|
|
133
|
+
@objc public init(lightingCorrectionConfiguration: GSSDK.GSKFilterLightingCorrectionConfiguration?, backgroundCleaningConfiguration: GSSDK.GSKFilterBackgroundCleaningConfiguration?, colorConfiguration: GSSDK.GSKFilterColorConfiguration?)
|
|
134
|
+
@objc deinit
|
|
135
|
+
}
|
|
136
|
+
extension GSSDK.GSKFilterConfiguration {
|
|
137
|
+
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
|
138
|
+
@objc override final public var hash: Swift.Int {
|
|
139
|
+
@objc get
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@objc @objcMembers public class GSKFilterLightingCorrectionConfiguration : ObjectiveC.NSObject {
|
|
143
|
+
@objc public static let noOp: GSSDK.GSKFilterLightingCorrectionConfiguration
|
|
144
|
+
@objc public static let textDocument: GSSDK.GSKFilterLightingCorrectionConfiguration
|
|
145
|
+
@objc public static let photos: GSSDK.GSKFilterLightingCorrectionConfiguration
|
|
146
|
+
@objc final public let minThreshold: CoreFoundation.CGFloat
|
|
147
|
+
@objc final public let maxThreshold: CoreFoundation.CGFloat
|
|
148
|
+
@objc public init(minThreshold: CoreFoundation.CGFloat, maxThreshold: CoreFoundation.CGFloat)
|
|
149
|
+
@objc deinit
|
|
150
|
+
}
|
|
151
|
+
extension GSSDK.GSKFilterLightingCorrectionConfiguration {
|
|
152
|
+
@objc override dynamic public func isEqual(_ object: Any?) -> Swift.Bool
|
|
153
|
+
@objc override dynamic public var hash: Swift.Int {
|
|
154
|
+
@objc get
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
extension GSSDK.GSKFilterLightingCorrectionConfiguration {
|
|
158
|
+
@objc override dynamic public var description: Swift.String {
|
|
159
|
+
@objc get
|
|
160
|
+
}
|
|
161
|
+
}
|
|
45
162
|
@_hasMissingDesignatedInitializers @objc final public class GSKLicenseKeyRefresher : ObjectiveC.NSObject {
|
|
46
163
|
public typealias LicenseKey = Swift.String
|
|
47
164
|
@objc final public var licenseKey: GSSDK.GSKLicenseKeyRefresher.LicenseKey {
|
|
@@ -341,6 +458,7 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
341
458
|
@objc final public var sourceImageURL: Foundation.URL?
|
|
342
459
|
@objc final public var multiPage: Swift.Bool
|
|
343
460
|
@objc final public var defaultFilter: GSSDK.GSKScanFlowFilterType
|
|
461
|
+
final public var availableFilters: [GSSDK.GSKScanFlowFilterType]
|
|
344
462
|
@objc final public var skipPostProcessingScreen: Swift.Bool
|
|
345
463
|
@objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
|
|
346
464
|
@objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
|
|
@@ -378,12 +496,18 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
378
496
|
}
|
|
379
497
|
}
|
|
380
498
|
@objc public enum GSKScanFlowFilterType : Swift.Int, Swift.CaseIterable {
|
|
381
|
-
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
382
499
|
@objc(GSKScanFlowFilterNone) case none
|
|
383
|
-
@objc(
|
|
384
|
-
@objc(
|
|
500
|
+
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
501
|
+
@objc(GSKScanFlowFilterAutomaticDocumentMonochrome) case automaticDocumentMonochrome
|
|
502
|
+
@objc(GSKScanFlowFilterAutomaticDocumentGrayscale) case automaticDocumentGrayscale
|
|
503
|
+
@objc(GSKScanFlowFilterAutomaticDocumentColor) case automaticDocumentColor
|
|
504
|
+
@objc(GSKScanFlowFilterSoftGrayscale) case softGrayscale
|
|
505
|
+
@objc(GSKScanFlowFilterSoftColor) case softColor
|
|
506
|
+
@objc(GSKScanFlowFilterStrongMonochrome) case strongMonochrome
|
|
507
|
+
@objc(GSKScanFlowFilterStrongGrayscale) case strongGrayscale
|
|
508
|
+
@objc(GSKScanFlowFilterStrongColor) case strongColor
|
|
509
|
+
@objc(GSKScanFlowFilterDarkBackground) case darkBackground
|
|
385
510
|
@objc(GSKScanFlowFilterPhoto) case photo
|
|
386
|
-
@objc(GSKScanFlowFilterMonochrome) case monochrome
|
|
387
511
|
public init?(rawValue: Swift.Int)
|
|
388
512
|
public typealias AllCases = [GSSDK.GSKScanFlowFilterType]
|
|
389
513
|
public typealias RawValue = Swift.Int
|
|
@@ -587,13 +711,13 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.RawRepresentable {}
|
|
|
587
711
|
extension GSSDK.GSKDocumentGeneratorFileFormat : Swift.Equatable {}
|
|
588
712
|
extension GSSDK.GSKDocumentGeneratorFileFormat : Swift.Hashable {}
|
|
589
713
|
extension GSSDK.GSKDocumentGeneratorFileFormat : Swift.RawRepresentable {}
|
|
714
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
715
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
716
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
590
717
|
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
591
718
|
extension GSSDK.GSKScanFlowError : Swift.Equatable {}
|
|
592
719
|
extension GSSDK.GSKScanFlowError : Swift.Hashable {}
|
|
593
720
|
extension GSSDK.GSKScanFlowError : Swift.RawRepresentable {}
|
|
594
|
-
extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
595
|
-
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
596
|
-
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
597
721
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Equatable {}
|
|
598
722
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Hashable {}
|
|
599
723
|
extension GSSDK.GSKScanFlowFlashMode : Swift.RawRepresentable {}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyTracking</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
8
|
+
<array>
|
|
9
|
+
<dict>
|
|
10
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
11
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
12
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
13
|
+
<array>
|
|
14
|
+
<string>CA92.1</string>
|
|
15
|
+
</array>
|
|
16
|
+
</dict>
|
|
17
|
+
</array>
|
|
18
|
+
</dict>
|
|
19
|
+
</plist>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyTracking</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
8
|
+
<array>
|
|
9
|
+
<dict>
|
|
10
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
11
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
12
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
13
|
+
<array>
|
|
14
|
+
<string>CA92.1</string>
|
|
15
|
+
</array>
|
|
16
|
+
</dict>
|
|
17
|
+
</array>
|
|
18
|
+
</dict>
|
|
19
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#ifndef GSKBackgroundKind_h
|
|
2
|
+
#define GSKBackgroundKind_h
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
Defines the document's background.
|
|
6
|
+
*/
|
|
7
|
+
typedef NS_ENUM(NSInteger, GSKBackgroundKind) {
|
|
8
|
+
/// A light background. Typically white or a very pale color. This is the most common type of documents and is the default.
|
|
9
|
+
GSKBackgroundKindLight,
|
|
10
|
+
/// A dark background. Typically, a business card with a black background.
|
|
11
|
+
GSKBackgroundKindDark
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
#endif /* GSKBackgroundKind_h */
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GSKCurvatureCorrectionConfiguration.h
|
|
3
|
+
// GSSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Bruno Virlet on 16/04/2024.
|
|
6
|
+
// Copyright © 2024 The Grizzly Labs. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/// A GSKCurvatureCorrectionConfiguration defines the behavior of a GSKScanProcessor when applying curvature correction.
|
|
14
|
+
@interface GSKCurvatureCorrectionConfiguration : NSObject
|
|
15
|
+
|
|
16
|
+
/// The default configuration. This currently doesn't apply the curvature correction configuration, but this can change in future versions
|
|
17
|
+
/// of the SDK.
|
|
18
|
+
+ (instancetype)defaultCurvatureCorrectionConfiguration;
|
|
19
|
+
|
|
20
|
+
/// No curvature correction
|
|
21
|
+
+ (instancetype)noCurvatureCorrectionConfiguration;
|
|
22
|
+
|
|
23
|
+
/// Specifies whether or not you want curvature correction
|
|
24
|
+
+ (instancetype)curvatureCorrectionConfigurationWithCurvatureCorrection:(BOOL)curvatureCorrection;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
#ifndef GSKDocumentComposition_h
|
|
4
|
+
#define GSKDocumentComposition_h
|
|
5
|
+
|
|
6
|
+
/// Scanned documents can be text-only like a novel page, but can also include various illustrations.
|
|
7
|
+
/// The filter detector can estimate the document composition.
|
|
8
|
+
/// The scan processor can use the document composition to better enhance the scans.
|
|
9
|
+
typedef NS_ENUM(NSInteger, GSKDocumentComposition) {
|
|
10
|
+
/// A document composed of text only.
|
|
11
|
+
GSKDocumentCompositionText,
|
|
12
|
+
/// A document composed of a mix of text and photos, illustrations.
|
|
13
|
+
GSKDocumentCompositionTextAndPhoto
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
#endif /* GSKDocumentComposition_h */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
#ifndef GSKEdgeCleaning_h
|
|
4
|
+
#define GSKEdgeCleaning_h
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
Edge cleaning is a process that cleans the document's outline.
|
|
8
|
+
*/
|
|
9
|
+
typedef NS_ENUM(NSInteger, GSKEdgeCleaning) {
|
|
10
|
+
GSKEdgeCleaningDisabled,
|
|
11
|
+
GSKEdgeCleaningEnabled
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
#endif /* GSKEdgeCleaning_h */
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GSKEnhancementConfiguration.h
|
|
3
|
+
// GSSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Bruno Virlet on 16/04/2024.
|
|
6
|
+
// Copyright © 2024 The Grizzly Labs. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <GSSDK/GSKFilterColorPalette.h>
|
|
11
|
+
#import <GSSDK/GSKFilterStyle.h>
|
|
12
|
+
#import <GSSDK/GSKFilterType.h>
|
|
13
|
+
|
|
14
|
+
@class GSKFilterConfiguration;
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
/// A GSKEnhancementConfiguration defines the behavior of a GSKScanProcessor when applying legibility enhancements.
|
|
19
|
+
@interface GSKEnhancementConfiguration : NSObject
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
An enhancement configuration that will result in using the best filter, as detected by the Genius Scan SDK.
|
|
23
|
+
*/
|
|
24
|
+
+ (instancetype)automaticEnhancementConfiguration;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
An enhancement configuration that will result in using the best filter, as detected by the Genius Scan SDK while taking in account the specified constraints.
|
|
28
|
+
*/
|
|
29
|
+
+ (instancetype)automaticEnhancementConfigurationWithFilterStyle:(GSKFilterStyle)FilterStyle
|
|
30
|
+
colorPalette:(GSKFilterColorPalette)colorPalette NS_SWIFT_NAME(automatic(filterStyle:colorPalette:));
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
An enhancement configuration that will result in using the best filter, as detected by the Genius Scan SDK while taking in account the specified constraints.
|
|
34
|
+
*/
|
|
35
|
+
+ (instancetype)automaticEnhancementConfigurationWithColorPalette:(GSKFilterColorPalette)colorPalette NS_SWIFT_NAME(automatic(colorPalette:));
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
An enhancement configuration that will result in using the specified legacy filter.
|
|
39
|
+
|
|
40
|
+
Deprecated.
|
|
41
|
+
*/
|
|
42
|
+
+ (instancetype)enhancementConfigurationWithFilter:(GSKFilterType)filter DEPRECATED_MSG_ATTRIBUTE("Use `filterConfiguration` instead.");
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
An enhancement configuration that will result in using the specified filter.
|
|
46
|
+
*/
|
|
47
|
+
+ (instancetype)fixedEnhancementConfigurationWithFilterConfiguration:(GSKFilterConfiguration *)filterConfiguration NS_SWIFT_NAME(fixed(filterConfiguration:));
|
|
48
|
+
|
|
49
|
+
@end
|
|
50
|
+
|
|
51
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
The different possible values for a color palette.
|
|
5
|
+
*/
|
|
6
|
+
typedef NS_CLOSED_ENUM(NSInteger, GSKFilterColorPalette) {
|
|
7
|
+
/// Monochrome (black or white)
|
|
8
|
+
GSKFilterColorPaletteMonochrome,
|
|
9
|
+
/// Grayscale (256 shades of gray)
|
|
10
|
+
GSKFilterColorPaletteGrayscale,
|
|
11
|
+
/// Color
|
|
12
|
+
GSKFilterColorPaletteColor
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GSKFilterStyle.h
|
|
3
|
+
// GSSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Bruno Virlet on 27/03/2024.
|
|
6
|
+
// Copyright © 2024 The Grizzly Labs. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef GSKFilterStyle_h
|
|
10
|
+
#define GSKFilterStyle_h
|
|
11
|
+
|
|
12
|
+
/// Style for the magic filter
|
|
13
|
+
typedef NS_CLOSED_ENUM(NSInteger, GSKFilterStyle) {
|
|
14
|
+
/// Hint that the scan should be enhanced as a document
|
|
15
|
+
/// (e.g. apply background cleaning)
|
|
16
|
+
GSKFilterStyleDocument
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
#endif /* GSKFilterStyle_h */
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
#define GSKFilterType_h
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
The different possible enhancements
|
|
14
|
+
The different possible enhancements.
|
|
15
|
+
|
|
16
|
+
Deprecated in favor of GSKFilterConfiguration.
|
|
15
17
|
*/
|
|
16
18
|
typedef NS_CLOSED_ENUM(NSInteger, GSKFilterType) {
|
|
17
19
|
/// No post processing
|
|
@@ -19,13 +21,21 @@ typedef NS_CLOSED_ENUM(NSInteger, GSKFilterType) {
|
|
|
19
21
|
/**
|
|
20
22
|
The black and white enhancement results in a mostly black and white image but gray levels
|
|
21
23
|
are used for antialiasing. The background is turned white.
|
|
24
|
+
|
|
25
|
+
Deprecated in favor of GSKEnhancementConfiguration.automatic(with: .grayscale)
|
|
22
26
|
*/
|
|
23
27
|
GSKFilterBlackAndWhite,
|
|
24
28
|
/// Turns the background white but preserves the color.
|
|
29
|
+
///
|
|
30
|
+
/// Deprecated in favor of GSKEnhancementConfiguration.automatic(with: .color)
|
|
25
31
|
GSKFilterColor,
|
|
26
32
|
/// Enhancement to apply to photographs.
|
|
33
|
+
///
|
|
34
|
+
/// Deprecated in favor of GSKEnhancementConfiguration.withFilterConfiguration(.photo)
|
|
27
35
|
GSKFilterPhoto,
|
|
28
36
|
/// Monochrome enhancement. The resulting image contains only two colors.
|
|
37
|
+
///
|
|
38
|
+
/// Deprecated in favor of GSKEnhancementConfiguration.automatic(with: .monochrome)
|
|
29
39
|
GSKFilterMonochrome,
|
|
30
40
|
};
|
|
31
41
|
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLog.h
CHANGED
|
@@ -23,6 +23,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
23
23
|
*/
|
|
24
24
|
@property (class, nonatomic, nullable) id<GSKLogger> logger;
|
|
25
25
|
|
|
26
|
+
/// The defaut log level used if `logger` doesn't implement `logLevel`.
|
|
27
|
+
@property (class, nonatomic, readonly) GSKLoggerSeverity defaultLogLevel;
|
|
26
28
|
/**
|
|
27
29
|
Log a verbose message directly to the SDK logger.
|
|
28
30
|
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h
CHANGED
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
- (void)log:(NSString *)message severity:(GSKLoggerSeverity)severity;
|
|
17
17
|
|
|
18
|
+
@optional
|
|
19
|
+
/// Only log messages with a severity greater than `logLevel` will be sent to this logger.
|
|
20
|
+
@property (nonatomic, readonly) GSKLoggerSeverity logLevel;
|
|
21
|
+
|
|
18
22
|
@end
|
|
19
23
|
|
|
20
24
|
#endif /* GSKLogger_h */
|