@thegrizzlylabs/react-native-genius-scan 6.0.0-beta01 → 6.0.0-beta02
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/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +3 -3
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +6 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +85 -54
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +0 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/UIImage+GSKUtils.h +5 -1
- 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 +1625 -949
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +51 -49
- 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 +51 -49
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +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/Headers/GSKDocumentDetector.h +5 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +6 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +170 -108
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +0 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/UIImage+GSKUtils.h +5 -1
- 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 +1625 -949
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +51 -49
- 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 +51 -49
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1625 -949
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +51 -49
- 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 +51 -49
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/package.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditableFrame.h +0 -67
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKShutterView.h +0 -28
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditableFrame.h +0 -67
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKShutterView.h +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name GSSDK
|
|
4
|
-
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
7
7
|
import Contacts
|
|
@@ -49,22 +49,6 @@ import _SwiftConcurrencyShims
|
|
|
49
49
|
@objc override dynamic public init()
|
|
50
50
|
@objc deinit
|
|
51
51
|
}
|
|
52
|
-
@objc public enum GSKBarcodeScanFlowError : Swift.Int, Swift.Error {
|
|
53
|
-
@objc(GSKBarcodeScanFlowUserCancelationError) case userCancellation
|
|
54
|
-
@objc(GSKBarcodeScanFlowConfigurationError) case configuration
|
|
55
|
-
@objc(GSKBarcodeScanFlowPermissionDeniedError) case permissionDenied
|
|
56
|
-
@objc(GSKBarcodeScanFlowDetectorError) case detectorError
|
|
57
|
-
#if compiler(>=5.3) && $NonescapableTypes
|
|
58
|
-
public init?(rawValue: Swift.Int)
|
|
59
|
-
#endif
|
|
60
|
-
public typealias RawValue = Swift.Int
|
|
61
|
-
public static var _nsErrorDomain: Swift.String {
|
|
62
|
-
get
|
|
63
|
-
}
|
|
64
|
-
public var rawValue: Swift.Int {
|
|
65
|
-
get
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
52
|
extension GSSDK.GSKBarcodeScanFlowResult {
|
|
69
53
|
@objc dynamic public var dictionary: [Swift.String : Any] {
|
|
70
54
|
@objc get
|
|
@@ -209,6 +193,7 @@ extension GSSDK.GSKCameraViewController {
|
|
|
209
193
|
}
|
|
210
194
|
@_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor @preconcurrency open class GSKCameraViewController : UIKit.UIViewController {
|
|
211
195
|
@_Concurrency.MainActor @preconcurrency public static let photoStabilizationDuration: Foundation.TimeInterval
|
|
196
|
+
@objc @_Concurrency.MainActor @preconcurrency public static func requestCameraAccess() async -> Swift.Bool
|
|
212
197
|
@_Concurrency.MainActor @preconcurrency final public let configuration: GSSDK.GSKCameraViewController.Configuration
|
|
213
198
|
@_Concurrency.MainActor @preconcurrency public var cameraView: UIKit.UIView {
|
|
214
199
|
get
|
|
@@ -312,6 +297,10 @@ extension GSSDK.GSKEdgeCleaning : Swift.CustomStringConvertible {
|
|
|
312
297
|
@objc get
|
|
313
298
|
@objc set
|
|
314
299
|
}
|
|
300
|
+
@objc @_Concurrency.MainActor @preconcurrency public var inset: CoreFoundation.CGFloat {
|
|
301
|
+
@objc get
|
|
302
|
+
@objc set
|
|
303
|
+
}
|
|
315
304
|
@objc @available(*, deprecated, message: "Deprecated in favor of frameView.imageSelection.insideShadeColor.")
|
|
316
305
|
@_Concurrency.MainActor @preconcurrency public var shadeColor: UIKit.UIColor {
|
|
317
306
|
@objc get
|
|
@@ -329,6 +318,10 @@ extension GSSDK.GSKEdgeCleaning : Swift.CustomStringConvertible {
|
|
|
329
318
|
@objc get
|
|
330
319
|
@objc set
|
|
331
320
|
}
|
|
321
|
+
@objc @_Concurrency.MainActor @preconcurrency public var overlayAlpha: CoreFoundation.CGFloat {
|
|
322
|
+
@objc get
|
|
323
|
+
@objc set
|
|
324
|
+
}
|
|
332
325
|
@objc @_Concurrency.MainActor @preconcurrency public var magnifierViewCenterStyle: GSSDK.GSKMagnifierViewCenterStyle {
|
|
333
326
|
@objc get
|
|
334
327
|
@objc set
|
|
@@ -494,16 +487,6 @@ extension GSSDK.GSKFilterLightingCorrectionConfiguration {
|
|
|
494
487
|
@objc override dynamic public init()
|
|
495
488
|
@objc deinit
|
|
496
489
|
}
|
|
497
|
-
@_hasMissingDesignatedInitializers final public class GSKLicenseKeyRefresher {
|
|
498
|
-
public typealias LicenseKey = Swift.String
|
|
499
|
-
#if compiler(>=5.3) && $NonescapableTypes
|
|
500
|
-
final public var cachedLicenseKey: GSSDK.GSKLicenseKeyRefresher.LicenseKey? {
|
|
501
|
-
get
|
|
502
|
-
}
|
|
503
|
-
#endif
|
|
504
|
-
@objc convenience public init(sdkVersion: Swift.String)
|
|
505
|
-
@objc deinit
|
|
506
|
-
}
|
|
507
490
|
extension GSSDK.GSKReadabilityLevel : Swift.Comparable {
|
|
508
491
|
public static func < (lhs: GSSDK.GSKReadabilityLevel, rhs: GSSDK.GSKReadabilityLevel) -> Swift.Bool
|
|
509
492
|
}
|
|
@@ -567,8 +550,8 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.Error {
|
|
|
567
550
|
@objc deinit
|
|
568
551
|
}
|
|
569
552
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
570
|
-
@objc public static func
|
|
571
|
-
@objc public static func
|
|
553
|
+
@objc(pdfConfigurationWithOutputFilePath:) public static func pdf(outputFilePath: Swift.String) -> GSSDK.GSKDocumentGeneratorConfiguration
|
|
554
|
+
@objc(tiffConfigurationWithOutputFilePath:) public static func tiff(outputFilePath: Swift.String) -> GSSDK.GSKDocumentGeneratorConfiguration
|
|
572
555
|
@objc final public let outputFileFormat: GSSDK.GSKDocumentGeneratorFileFormat
|
|
573
556
|
@objc final public let outputFilePath: Swift.String
|
|
574
557
|
@objc final public let pdfFontFilePath: Swift.String?
|
|
@@ -648,15 +631,15 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.Error {
|
|
|
648
631
|
#endif
|
|
649
632
|
@objc deinit
|
|
650
633
|
}
|
|
651
|
-
@objc @_inheritsConvenienceInitializers
|
|
652
|
-
|
|
634
|
+
@objc @_inheritsConvenienceInitializers final public class GSKTextLayoutToTextConverter : ObjectiveC.NSObject {
|
|
635
|
+
final public func convert(_ textLayout: GSSDK.GSKTextLayout) throws -> GSSDK.GSKTextLayoutToTextConverterResult
|
|
653
636
|
@objc override dynamic public init()
|
|
654
637
|
@objc deinit
|
|
655
638
|
}
|
|
656
|
-
@objc @_hasMissingDesignatedInitializers
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
639
|
+
@objc @_hasMissingDesignatedInitializers final public class GSKTextLayoutToTextConverterResult : ObjectiveC.NSObject {
|
|
640
|
+
final public let text: Swift.String
|
|
641
|
+
final public let averageWordConfidence: Swift.Int
|
|
642
|
+
final public let wordCount: Swift.Int
|
|
660
643
|
@objc deinit
|
|
661
644
|
}
|
|
662
645
|
public enum GSSDKAsset {
|
|
@@ -785,14 +768,17 @@ public enum GSSDKStrings {
|
|
|
785
768
|
@objc public init(logger: any GSSDK.GSKLogger)
|
|
786
769
|
@objc override convenience dynamic public init()
|
|
787
770
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
788
|
-
final public func recognizeText(in ocrInput: GSSDK.GSKOCRInput,
|
|
771
|
+
final public func recognizeText(in ocrInput: GSSDK.GSKOCRInput, configuration: GSSDK.GSKOCRConfiguration, onProgress progressBlock: ((Swift.Float) -> Swift.Void)?) async throws -> GSSDK.GSKOCRResult
|
|
789
772
|
#endif
|
|
790
773
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
791
|
-
@objc final public func recognizeText(forImageAtPath imagePath: Swift.String,
|
|
774
|
+
@objc final public func recognizeText(forImageAtPath imagePath: Swift.String, configuration: GSSDK.GSKOCRConfiguration, onProgress progressBlock: ((Swift.Float) -> Swift.Void)?) async throws -> GSSDK.GSKOCRResult
|
|
792
775
|
#endif
|
|
793
776
|
@objc deinit
|
|
794
777
|
}
|
|
795
778
|
public struct GSKOCRInput {
|
|
779
|
+
public let originalImagePath: Swift.String
|
|
780
|
+
public let quadrangle: GSSDK.GSKQuadrangle?
|
|
781
|
+
public let rotation: GSSDK.GSKRotation
|
|
796
782
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
797
783
|
public init(originalImagePath: Swift.String, quadrangle: GSSDK.GSKQuadrangle? = nil, rotation: GSSDK.GSKRotation = .none)
|
|
798
784
|
#endif
|
|
@@ -882,9 +868,19 @@ public enum GSKScanFlowCurvatureCorrectionMode : Swift.String {
|
|
|
882
868
|
get
|
|
883
869
|
}
|
|
884
870
|
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
871
|
+
public struct GSKScanFlowError : Swift.Error {
|
|
872
|
+
public var code: GSSDK.GSKScanFlowErrorCode
|
|
873
|
+
public var message: Swift.String
|
|
874
|
+
public var recoveryMessage: Swift.String?
|
|
875
|
+
public var underlyingError: (any Swift.Error)?
|
|
876
|
+
}
|
|
877
|
+
@objc public enum GSKScanFlowErrorCode : Swift.Int {
|
|
878
|
+
@objc(GSKScanFlowCancellationErrorCode) case cancellation = 999
|
|
879
|
+
@objc(GSKScanFlowConfigurationErrorCode) case configuration = 1000
|
|
880
|
+
@objc(GSKScanFlowLicensingErrorCode) case licensing = 1001
|
|
881
|
+
@objc(GSKScanFlowCaptureErrorCode) case capture = 1002
|
|
882
|
+
@objc(GSKScanFlowStorageSpaceErrorCode) case storageSpace = 1003
|
|
883
|
+
@objc(GSKScanFlowInternalErrorCode) case `internal` = 9999
|
|
888
884
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
889
885
|
public init?(rawValue: Swift.Int)
|
|
890
886
|
#endif
|
|
@@ -893,6 +889,15 @@ public enum GSKScanFlowCurvatureCorrectionMode : Swift.String {
|
|
|
893
889
|
get
|
|
894
890
|
}
|
|
895
891
|
}
|
|
892
|
+
extension GSSDK.GSKScanFlowError : Foundation.CustomNSError {
|
|
893
|
+
public static let errorDomain: Swift.String
|
|
894
|
+
public var errorCode: Swift.Int {
|
|
895
|
+
get
|
|
896
|
+
}
|
|
897
|
+
public var errorUserInfo: [Swift.String : Any] {
|
|
898
|
+
get
|
|
899
|
+
}
|
|
900
|
+
}
|
|
896
901
|
@objc public enum GSKScanFlowFilterType : Swift.Int, Swift.CaseIterable {
|
|
897
902
|
@objc(GSKScanFlowFilterNone) case none
|
|
898
903
|
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
@@ -946,8 +951,8 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
946
951
|
}
|
|
947
952
|
@objc public enum GSKScanFlowMultiPageFormat : Swift.UInt {
|
|
948
953
|
@objc(GSKScanFlowNone) case none
|
|
949
|
-
@objc(GSKScanFlowPDF) case
|
|
950
|
-
@objc(GSKScanFlowTIFF) case
|
|
954
|
+
@objc(GSKScanFlowPDF) case pdf
|
|
955
|
+
@objc(GSKScanFlowTIFF) case tiff
|
|
951
956
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
952
957
|
public init?(rawValue: Swift.UInt)
|
|
953
958
|
#endif
|
|
@@ -1191,9 +1196,6 @@ public enum GSKBarcodeType : Swift.String, Swift.CaseIterable {
|
|
|
1191
1196
|
@objc deinit
|
|
1192
1197
|
}
|
|
1193
1198
|
extension GSSDK.GSKBarcodeScanFlow : Swift.Sendable {}
|
|
1194
|
-
extension GSSDK.GSKBarcodeScanFlowError : Swift.Equatable {}
|
|
1195
|
-
extension GSSDK.GSKBarcodeScanFlowError : Swift.Hashable {}
|
|
1196
|
-
extension GSSDK.GSKBarcodeScanFlowError : Swift.RawRepresentable {}
|
|
1197
1199
|
extension GSSDK.GSKFlashStatus : Swift.Equatable {}
|
|
1198
1200
|
extension GSSDK.GSKFlashStatus : Swift.Hashable {}
|
|
1199
1201
|
extension GSSDK.GSKFlashStatus : Swift.RawRepresentable {}
|
|
@@ -1229,9 +1231,9 @@ extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
|
1229
1231
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
|
|
1230
1232
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
|
|
1231
1233
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
|
|
1232
|
-
extension GSSDK.
|
|
1233
|
-
extension GSSDK.
|
|
1234
|
-
extension GSSDK.
|
|
1234
|
+
extension GSSDK.GSKScanFlowErrorCode : Swift.Equatable {}
|
|
1235
|
+
extension GSSDK.GSKScanFlowErrorCode : Swift.Hashable {}
|
|
1236
|
+
extension GSSDK.GSKScanFlowErrorCode : Swift.RawRepresentable {}
|
|
1235
1237
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Equatable {}
|
|
1236
1238
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Hashable {}
|
|
1237
1239
|
extension GSSDK.GSKScanFlowFlashMode : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name GSSDK
|
|
4
|
-
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
7
7
|
import Contacts
|
|
@@ -49,22 +49,6 @@ import _SwiftConcurrencyShims
|
|
|
49
49
|
@objc override dynamic public init()
|
|
50
50
|
@objc deinit
|
|
51
51
|
}
|
|
52
|
-
@objc public enum GSKBarcodeScanFlowError : Swift.Int, Swift.Error {
|
|
53
|
-
@objc(GSKBarcodeScanFlowUserCancelationError) case userCancellation
|
|
54
|
-
@objc(GSKBarcodeScanFlowConfigurationError) case configuration
|
|
55
|
-
@objc(GSKBarcodeScanFlowPermissionDeniedError) case permissionDenied
|
|
56
|
-
@objc(GSKBarcodeScanFlowDetectorError) case detectorError
|
|
57
|
-
#if compiler(>=5.3) && $NonescapableTypes
|
|
58
|
-
public init?(rawValue: Swift.Int)
|
|
59
|
-
#endif
|
|
60
|
-
public typealias RawValue = Swift.Int
|
|
61
|
-
public static var _nsErrorDomain: Swift.String {
|
|
62
|
-
get
|
|
63
|
-
}
|
|
64
|
-
public var rawValue: Swift.Int {
|
|
65
|
-
get
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
52
|
extension GSSDK.GSKBarcodeScanFlowResult {
|
|
69
53
|
@objc dynamic public var dictionary: [Swift.String : Any] {
|
|
70
54
|
@objc get
|
|
@@ -209,6 +193,7 @@ extension GSSDK.GSKCameraViewController {
|
|
|
209
193
|
}
|
|
210
194
|
@_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor @preconcurrency open class GSKCameraViewController : UIKit.UIViewController {
|
|
211
195
|
@_Concurrency.MainActor @preconcurrency public static let photoStabilizationDuration: Foundation.TimeInterval
|
|
196
|
+
@objc @_Concurrency.MainActor @preconcurrency public static func requestCameraAccess() async -> Swift.Bool
|
|
212
197
|
@_Concurrency.MainActor @preconcurrency final public let configuration: GSSDK.GSKCameraViewController.Configuration
|
|
213
198
|
@_Concurrency.MainActor @preconcurrency public var cameraView: UIKit.UIView {
|
|
214
199
|
get
|
|
@@ -312,6 +297,10 @@ extension GSSDK.GSKEdgeCleaning : Swift.CustomStringConvertible {
|
|
|
312
297
|
@objc get
|
|
313
298
|
@objc set
|
|
314
299
|
}
|
|
300
|
+
@objc @_Concurrency.MainActor @preconcurrency public var inset: CoreFoundation.CGFloat {
|
|
301
|
+
@objc get
|
|
302
|
+
@objc set
|
|
303
|
+
}
|
|
315
304
|
@objc @available(*, deprecated, message: "Deprecated in favor of frameView.imageSelection.insideShadeColor.")
|
|
316
305
|
@_Concurrency.MainActor @preconcurrency public var shadeColor: UIKit.UIColor {
|
|
317
306
|
@objc get
|
|
@@ -329,6 +318,10 @@ extension GSSDK.GSKEdgeCleaning : Swift.CustomStringConvertible {
|
|
|
329
318
|
@objc get
|
|
330
319
|
@objc set
|
|
331
320
|
}
|
|
321
|
+
@objc @_Concurrency.MainActor @preconcurrency public var overlayAlpha: CoreFoundation.CGFloat {
|
|
322
|
+
@objc get
|
|
323
|
+
@objc set
|
|
324
|
+
}
|
|
332
325
|
@objc @_Concurrency.MainActor @preconcurrency public var magnifierViewCenterStyle: GSSDK.GSKMagnifierViewCenterStyle {
|
|
333
326
|
@objc get
|
|
334
327
|
@objc set
|
|
@@ -494,16 +487,6 @@ extension GSSDK.GSKFilterLightingCorrectionConfiguration {
|
|
|
494
487
|
@objc override dynamic public init()
|
|
495
488
|
@objc deinit
|
|
496
489
|
}
|
|
497
|
-
@_hasMissingDesignatedInitializers final public class GSKLicenseKeyRefresher {
|
|
498
|
-
public typealias LicenseKey = Swift.String
|
|
499
|
-
#if compiler(>=5.3) && $NonescapableTypes
|
|
500
|
-
final public var cachedLicenseKey: GSSDK.GSKLicenseKeyRefresher.LicenseKey? {
|
|
501
|
-
get
|
|
502
|
-
}
|
|
503
|
-
#endif
|
|
504
|
-
@objc convenience public init(sdkVersion: Swift.String)
|
|
505
|
-
@objc deinit
|
|
506
|
-
}
|
|
507
490
|
extension GSSDK.GSKReadabilityLevel : Swift.Comparable {
|
|
508
491
|
public static func < (lhs: GSSDK.GSKReadabilityLevel, rhs: GSSDK.GSKReadabilityLevel) -> Swift.Bool
|
|
509
492
|
}
|
|
@@ -567,8 +550,8 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.Error {
|
|
|
567
550
|
@objc deinit
|
|
568
551
|
}
|
|
569
552
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
570
|
-
@objc public static func
|
|
571
|
-
@objc public static func
|
|
553
|
+
@objc(pdfConfigurationWithOutputFilePath:) public static func pdf(outputFilePath: Swift.String) -> GSSDK.GSKDocumentGeneratorConfiguration
|
|
554
|
+
@objc(tiffConfigurationWithOutputFilePath:) public static func tiff(outputFilePath: Swift.String) -> GSSDK.GSKDocumentGeneratorConfiguration
|
|
572
555
|
@objc final public let outputFileFormat: GSSDK.GSKDocumentGeneratorFileFormat
|
|
573
556
|
@objc final public let outputFilePath: Swift.String
|
|
574
557
|
@objc final public let pdfFontFilePath: Swift.String?
|
|
@@ -648,15 +631,15 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.Error {
|
|
|
648
631
|
#endif
|
|
649
632
|
@objc deinit
|
|
650
633
|
}
|
|
651
|
-
@objc @_inheritsConvenienceInitializers
|
|
652
|
-
|
|
634
|
+
@objc @_inheritsConvenienceInitializers final public class GSKTextLayoutToTextConverter : ObjectiveC.NSObject {
|
|
635
|
+
final public func convert(_ textLayout: GSSDK.GSKTextLayout) throws -> GSSDK.GSKTextLayoutToTextConverterResult
|
|
653
636
|
@objc override dynamic public init()
|
|
654
637
|
@objc deinit
|
|
655
638
|
}
|
|
656
|
-
@objc @_hasMissingDesignatedInitializers
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
639
|
+
@objc @_hasMissingDesignatedInitializers final public class GSKTextLayoutToTextConverterResult : ObjectiveC.NSObject {
|
|
640
|
+
final public let text: Swift.String
|
|
641
|
+
final public let averageWordConfidence: Swift.Int
|
|
642
|
+
final public let wordCount: Swift.Int
|
|
660
643
|
@objc deinit
|
|
661
644
|
}
|
|
662
645
|
public enum GSSDKAsset {
|
|
@@ -785,14 +768,17 @@ public enum GSSDKStrings {
|
|
|
785
768
|
@objc public init(logger: any GSSDK.GSKLogger)
|
|
786
769
|
@objc override convenience dynamic public init()
|
|
787
770
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
788
|
-
final public func recognizeText(in ocrInput: GSSDK.GSKOCRInput,
|
|
771
|
+
final public func recognizeText(in ocrInput: GSSDK.GSKOCRInput, configuration: GSSDK.GSKOCRConfiguration, onProgress progressBlock: ((Swift.Float) -> Swift.Void)?) async throws -> GSSDK.GSKOCRResult
|
|
789
772
|
#endif
|
|
790
773
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
791
|
-
@objc final public func recognizeText(forImageAtPath imagePath: Swift.String,
|
|
774
|
+
@objc final public func recognizeText(forImageAtPath imagePath: Swift.String, configuration: GSSDK.GSKOCRConfiguration, onProgress progressBlock: ((Swift.Float) -> Swift.Void)?) async throws -> GSSDK.GSKOCRResult
|
|
792
775
|
#endif
|
|
793
776
|
@objc deinit
|
|
794
777
|
}
|
|
795
778
|
public struct GSKOCRInput {
|
|
779
|
+
public let originalImagePath: Swift.String
|
|
780
|
+
public let quadrangle: GSSDK.GSKQuadrangle?
|
|
781
|
+
public let rotation: GSSDK.GSKRotation
|
|
796
782
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
797
783
|
public init(originalImagePath: Swift.String, quadrangle: GSSDK.GSKQuadrangle? = nil, rotation: GSSDK.GSKRotation = .none)
|
|
798
784
|
#endif
|
|
@@ -882,9 +868,19 @@ public enum GSKScanFlowCurvatureCorrectionMode : Swift.String {
|
|
|
882
868
|
get
|
|
883
869
|
}
|
|
884
870
|
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
871
|
+
public struct GSKScanFlowError : Swift.Error {
|
|
872
|
+
public var code: GSSDK.GSKScanFlowErrorCode
|
|
873
|
+
public var message: Swift.String
|
|
874
|
+
public var recoveryMessage: Swift.String?
|
|
875
|
+
public var underlyingError: (any Swift.Error)?
|
|
876
|
+
}
|
|
877
|
+
@objc public enum GSKScanFlowErrorCode : Swift.Int {
|
|
878
|
+
@objc(GSKScanFlowCancellationErrorCode) case cancellation = 999
|
|
879
|
+
@objc(GSKScanFlowConfigurationErrorCode) case configuration = 1000
|
|
880
|
+
@objc(GSKScanFlowLicensingErrorCode) case licensing = 1001
|
|
881
|
+
@objc(GSKScanFlowCaptureErrorCode) case capture = 1002
|
|
882
|
+
@objc(GSKScanFlowStorageSpaceErrorCode) case storageSpace = 1003
|
|
883
|
+
@objc(GSKScanFlowInternalErrorCode) case `internal` = 9999
|
|
888
884
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
889
885
|
public init?(rawValue: Swift.Int)
|
|
890
886
|
#endif
|
|
@@ -893,6 +889,15 @@ public enum GSKScanFlowCurvatureCorrectionMode : Swift.String {
|
|
|
893
889
|
get
|
|
894
890
|
}
|
|
895
891
|
}
|
|
892
|
+
extension GSSDK.GSKScanFlowError : Foundation.CustomNSError {
|
|
893
|
+
public static let errorDomain: Swift.String
|
|
894
|
+
public var errorCode: Swift.Int {
|
|
895
|
+
get
|
|
896
|
+
}
|
|
897
|
+
public var errorUserInfo: [Swift.String : Any] {
|
|
898
|
+
get
|
|
899
|
+
}
|
|
900
|
+
}
|
|
896
901
|
@objc public enum GSKScanFlowFilterType : Swift.Int, Swift.CaseIterable {
|
|
897
902
|
@objc(GSKScanFlowFilterNone) case none
|
|
898
903
|
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
@@ -946,8 +951,8 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
946
951
|
}
|
|
947
952
|
@objc public enum GSKScanFlowMultiPageFormat : Swift.UInt {
|
|
948
953
|
@objc(GSKScanFlowNone) case none
|
|
949
|
-
@objc(GSKScanFlowPDF) case
|
|
950
|
-
@objc(GSKScanFlowTIFF) case
|
|
954
|
+
@objc(GSKScanFlowPDF) case pdf
|
|
955
|
+
@objc(GSKScanFlowTIFF) case tiff
|
|
951
956
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
952
957
|
public init?(rawValue: Swift.UInt)
|
|
953
958
|
#endif
|
|
@@ -1191,9 +1196,6 @@ public enum GSKBarcodeType : Swift.String, Swift.CaseIterable {
|
|
|
1191
1196
|
@objc deinit
|
|
1192
1197
|
}
|
|
1193
1198
|
extension GSSDK.GSKBarcodeScanFlow : Swift.Sendable {}
|
|
1194
|
-
extension GSSDK.GSKBarcodeScanFlowError : Swift.Equatable {}
|
|
1195
|
-
extension GSSDK.GSKBarcodeScanFlowError : Swift.Hashable {}
|
|
1196
|
-
extension GSSDK.GSKBarcodeScanFlowError : Swift.RawRepresentable {}
|
|
1197
1199
|
extension GSSDK.GSKFlashStatus : Swift.Equatable {}
|
|
1198
1200
|
extension GSSDK.GSKFlashStatus : Swift.Hashable {}
|
|
1199
1201
|
extension GSSDK.GSKFlashStatus : Swift.RawRepresentable {}
|
|
@@ -1229,9 +1231,9 @@ extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
|
1229
1231
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
|
|
1230
1232
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
|
|
1231
1233
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
|
|
1232
|
-
extension GSSDK.
|
|
1233
|
-
extension GSSDK.
|
|
1234
|
-
extension GSSDK.
|
|
1234
|
+
extension GSSDK.GSKScanFlowErrorCode : Swift.Equatable {}
|
|
1235
|
+
extension GSSDK.GSKScanFlowErrorCode : Swift.Hashable {}
|
|
1236
|
+
extension GSSDK.GSKScanFlowErrorCode : Swift.RawRepresentable {}
|
|
1235
1237
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Equatable {}
|
|
1236
1238
|
extension GSSDK.GSKScanFlowFlashMode : Swift.Hashable {}
|
|
1237
1239
|
extension GSSDK.GSKScanFlowFlashMode : Swift.RawRepresentable {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -52,6 +52,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
52
52
|
@end
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
+
Detects the frame of a document in an image.
|
|
56
|
+
|
|
55
57
|
- Performance:
|
|
56
58
|
A document detector can be expensive to create: it's recommended to keep a reference to it if it's needed several times in a row.
|
|
57
59
|
*/
|
|
@@ -61,12 +63,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
61
63
|
- (instancetype)init;
|
|
62
64
|
|
|
63
65
|
/**
|
|
64
|
-
Detects the quadrangle corresponding to the edges of a document in video frame
|
|
66
|
+
Detects the quadrangle corresponding to the edges of a document in a video frame
|
|
65
67
|
|
|
66
68
|
@param sampleBuffer a YCbCr sample buffer of a video frame. Make sure the video output generating these frames is configured with the pixel format kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
|
|
67
69
|
@param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.
|
|
68
70
|
|
|
69
|
-
@return The detected quadrangle or nil if an error
|
|
71
|
+
@return The detected quadrangle or nil if an error occurred.
|
|
70
72
|
*/
|
|
71
73
|
- (GSKDocumentDetectionResult * _Nullable)detectDocumentInSampleBuffer:(CMSampleBufferRef)sampleBuffer error:(NSError * _Nullable *)error;
|
|
72
74
|
|
|
@@ -76,7 +78,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
76
78
|
@param image The photo to detect a document in
|
|
77
79
|
@param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.
|
|
78
80
|
|
|
79
|
-
@return The detected quadrangle or nil if an error
|
|
81
|
+
@return The detected quadrangle or nil if an error occurred.
|
|
80
82
|
*/
|
|
81
83
|
- (GSKDocumentDetectionResult * _Nullable)detectDocumentInImage:(UIImage *)image error:(NSError * _Nullable *)error;
|
|
82
84
|
|
|
@@ -9,14 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
#import <Foundation/Foundation.h>
|
|
11
11
|
#import <CoreGraphics/CoreGraphics.h>
|
|
12
|
-
|
|
12
|
+
#import <GSSDK/GSKRotation.h>
|
|
13
13
|
#import <UIKit/UIKit.h>
|
|
14
|
-
#import "GSKRotation.h"
|
|
15
|
-
|
|
16
|
-
extern const CGPoint GSKQuadrangleTopRightPoint;
|
|
17
|
-
extern const CGPoint GSKQuadrangleTopLeftPoint;
|
|
18
|
-
extern const CGPoint GSKQuadrangleBottomLeftPoint;
|
|
19
|
-
extern const CGPoint GSKQuadrangleBottomRightPoint;
|
|
20
14
|
|
|
21
15
|
NS_ASSUME_NONNULL_BEGIN
|
|
22
16
|
|
|
@@ -32,9 +32,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
32
32
|
The document processor is the central class of the GSSDK's image processing algorithms.
|
|
33
33
|
|
|
34
34
|
With the document processor, you can correct the distortion in your documents, as well as improve their legibility.
|
|
35
|
-
|
|
35
|
+
The scan processor can also analyze the scan and evaluate its readability.
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
If you are only interested in detecting a document in an image, please refer to ``GSKDocumentDetector``. If you are looking to detect whether an image contains a document, use ``GSKDocumentFinder`` instead.
|
|
38
|
+
|
|
39
|
+
Warning: `GSKScanProcessor` is not thread-safe; you shouldn't reuse the same instance across threads.
|
|
38
40
|
*/
|
|
39
41
|
@interface GSKScanProcessor : NSObject
|
|
40
42
|
|
|
@@ -44,8 +46,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
44
46
|
|
|
45
47
|
@param configuration The configuration of the different steps of the processing.
|
|
46
48
|
|
|
47
|
-
@returns The result of the processing, nil if there is an error. The
|
|
48
|
-
as well as the temporary path
|
|
49
|
+
@returns The result of the processing, nil if there is an error. The result includes the parameters that have been selected for the different processing steps,
|
|
50
|
+
as well as the temporary path where the output was written. The output is written in a temporary folder. The caller can take ownership of this file.
|
|
49
51
|
By default, the best output format will be chosen by this method. For instance, if the monochrome enhancement was selected, the output will not
|
|
50
52
|
be saved as JPEG but as a 1-bit PNG image. The result's processedImagePath file extension will reflect this.
|
|
51
53
|
*/
|