@thegrizzlylabs/react-native-genius-scan 5.17.3 → 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.
Files changed (120) hide show
  1. package/README.md +4 -4
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +12 -10
  4. package/index.d.ts +7 -7
  5. package/index.js +1 -1
  6. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +34 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogLevel.h +1 -1
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +0 -8
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKError.h +7 -3
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLog.h +1 -1
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLogger.h +1 -1
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +0 -4
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityResult.h +1 -1
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotation.h +5 -1
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +2 -2
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +6 -5
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +459 -344
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +0 -6
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/UIImage+GSKUtils.h +12 -3
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +19923 -17290
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +334 -279
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +334 -279
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.stringsdict +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.stringsdict +0 -0
  34. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.stringsdict +0 -0
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.stringsdict +0 -0
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  37. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.stringsdict +0 -0
  38. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.stringsdict +0 -0
  39. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.stringsdict +0 -0
  40. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.stringsdict +0 -0
  41. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.stringsdict +0 -0
  42. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.stringsdict +0 -0
  43. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.stringsdict +0 -0
  44. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.stringsdict +0 -0
  45. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.stringsdict +0 -0
  46. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.stringsdict +0 -0
  47. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.stringsdict +0 -0
  48. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.stringsdict +0 -0
  49. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.stringsdict +0 -0
  50. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.stringsdict +0 -0
  51. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
  52. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
  53. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  54. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +34 -0
  55. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  56. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDefaultLogLevel.h +1 -1
  57. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
  58. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +0 -8
  59. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKError.h +7 -3
  60. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLog.h +1 -1
  61. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h +1 -1
  62. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +0 -4
  63. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
  64. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityResult.h +1 -1
  65. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotation.h +5 -1
  66. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +2 -2
  67. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +6 -5
  68. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +932 -702
  69. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +0 -6
  70. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/UIImage+GSKUtils.h +12 -3
  71. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  72. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +19923 -17290
  73. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +334 -279
  74. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  75. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +334 -279
  76. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +19923 -17290
  77. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +334 -279
  78. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  79. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +334 -279
  80. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.stringsdict +0 -0
  81. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.stringsdict +0 -0
  82. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.stringsdict +0 -0
  83. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.stringsdict +0 -0
  84. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  85. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.stringsdict +0 -0
  86. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.stringsdict +0 -0
  87. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.stringsdict +0 -0
  88. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.stringsdict +0 -0
  89. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.stringsdict +0 -0
  90. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.stringsdict +0 -0
  91. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.stringsdict +0 -0
  92. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.stringsdict +0 -0
  93. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.stringsdict +0 -0
  94. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.stringsdict +0 -0
  95. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.stringsdict +0 -0
  96. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.stringsdict +0 -0
  97. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.stringsdict +0 -0
  98. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.stringsdict +0 -0
  99. package/ios/RNGeniusScan.m +8 -8
  100. package/package.json +1 -1
  101. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameView.h +0 -71
  102. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameViewController.h +0 -62
  103. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditableFrame.h +0 -68
  104. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +0 -43
  105. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
  106. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKShutterView.h +0 -28
  107. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKView.h +0 -70
  108. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/png.h +0 -3358
  109. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/pngconf.h +0 -615
  110. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/pnglibconf.h +0 -233
  111. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditFrameView.h +0 -71
  112. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditFrameViewController.h +0 -62
  113. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditableFrame.h +0 -68
  114. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +0 -43
  115. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
  116. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKShutterView.h +0 -28
  117. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKView.h +0 -70
  118. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/png.h +0 -3358
  119. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/pngconf.h +0 -615
  120. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/pnglibconf.h +0 -233
@@ -0,0 +1,34 @@
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>NSPrivacyCollectedDataTypes</key>
6
+ <array>
7
+ <dict>
8
+ <key>NSPrivacyCollectedDataType</key>
9
+ <string>NSPrivacyCollectedDataTypeOtherDataTypes</string>
10
+ <key>NSPrivacyCollectedDataTypeLinked</key>
11
+ <false/>
12
+ <key>NSPrivacyCollectedDataTypeTracking</key>
13
+ <false/>
14
+ <key>NSPrivacyCollectedDataTypePurposes</key>
15
+ <array>
16
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
17
+ </array>
18
+ </dict>
19
+ </array>
20
+ <key>NSPrivacyTracking</key>
21
+ <false/>
22
+ <key>NSPrivacyAccessedAPITypes</key>
23
+ <array>
24
+ <dict>
25
+ <key>NSPrivacyAccessedAPIType</key>
26
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
27
+ <key>NSPrivacyAccessedAPITypeReasons</key>
28
+ <array>
29
+ <string>CA92.1</string>
30
+ </array>
31
+ </dict>
32
+ </array>
33
+ </dict>
34
+ </plist>
@@ -6,7 +6,7 @@
6
6
  // Copyright © 2024 The Grizzly Labs. All rights reserved.
7
7
  //
8
8
 
9
- #import "GSKLoggerSeverity.h"
9
+ #import <GSSDK/GSKLoggerSeverity.h>
10
10
 
11
11
  #ifndef GSKDefaultLogLevel_h
12
12
  #define GSKDefaultLogLevel_h
@@ -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 occured.
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 occured.
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,7 +9,6 @@
9
9
  #import <Foundation/Foundation.h>
10
10
  #import <GSSDK/GSKFilterColorPalette.h>
11
11
  #import <GSSDK/GSKFilterStyle.h>
12
- #import <GSSDK/GSKFilterType.h>
13
12
 
14
13
  @class GSKFilterConfiguration;
15
14
 
@@ -34,13 +33,6 @@ NS_ASSUME_NONNULL_BEGIN
34
33
  */
35
34
  + (instancetype)automaticEnhancementConfigurationWithColorPalette:(GSKFilterColorPalette)colorPalette NS_SWIFT_NAME(automatic(colorPalette:));
36
35
 
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
36
  /**
45
37
  An enhancement configuration that will result in using the specified filter.
46
38
  */
@@ -4,7 +4,7 @@
4
4
  // Copyright 2010-2020 The Grizzly Labs
5
5
  //
6
6
  // Subject to the Genius Scan SDK Licensing Agreement
7
- // sdk@thegrizzlylabs.com
7
+ // sales@geniusscansdk.com
8
8
  //
9
9
 
10
10
  #ifndef GSKError_h
@@ -17,7 +17,7 @@ FOUNDATION_EXPORT NSString * const GSKErrorDomain;
17
17
  typedef NS_ENUM(NSInteger, GSKError) {
18
18
  /// An license key related error.
19
19
  GSKLicenseError = 1000,
20
- /// An internal error. Please report it to sdk@geniusscan.com with output logs.
20
+ /// An internal error. Please report it to support@geniusscansdk.com with output logs.
21
21
  GSKInternalError = 1001,
22
22
  /// An image processing error
23
23
  GSKProcessingError = 1002,
@@ -26,9 +26,13 @@ typedef NS_ENUM(NSInteger, GSKError) {
26
26
  /// A file not found error
27
27
  GSKFileNotFound = 1004,
28
28
  /// A memory (not storage) error
29
- GSKMemoryError = 1005
29
+ GSKMemoryError = 1005,
30
+ /// A capture session error
31
+ GSKCaptureError = 1006
30
32
  };
31
33
 
32
34
  FOUNDATION_EXPORT NSString * const GSKPDFErrorDomain;
33
35
 
36
+ FOUNDATION_EXPORT NSError *GSKErrorToNSError(GSKError code, NSString *description);
37
+
34
38
  #endif /* GSKError_h */
@@ -5,7 +5,7 @@
5
5
 
6
6
  #import <Foundation/Foundation.h>
7
7
 
8
- #import "GSKLogger.h"
8
+ #import <GSSDK/GSKLogger.h>
9
9
 
10
10
  NS_ASSUME_NONNULL_BEGIN
11
11
 
@@ -6,7 +6,7 @@
6
6
  // Copyright © 2024 The Grizzly Labs. All rights reserved.
7
7
  //
8
8
 
9
- #import "GSKLoggerSeverity.h"
9
+ #import <GSSDK/GSKLoggerSeverity.h>
10
10
 
11
11
  #ifndef GSKLogger_h
12
12
  #define GSKLogger_h
@@ -8,7 +8,6 @@
8
8
 
9
9
  #import <Foundation/Foundation.h>
10
10
 
11
- #import <GSSDK/GSKFilterType.h>
12
11
  #import <GSSDK/GSKRotation.h>
13
12
 
14
13
  @class GSKQuadrangle;
@@ -25,9 +24,6 @@ NS_ASSUME_NONNULL_BEGIN
25
24
  /// The quadrangle that was used for perspective correction
26
25
  @property (nonatomic, strong, readonly) GSKQuadrangle *appliedQuadrangle;
27
26
 
28
- /// The filter that was applied during the enhancement phase
29
- @property (nonatomic, assign, readonly) GSKFilterType appliedFilter __deprecated_msg("Use appliedFilterConfiguration instead.");
30
-
31
27
  /// The filter that was applied during the enhancement phase
32
28
  @property (nonatomic, strong, readonly) GSKFilterConfiguration *appliedFilterConfiguration;
33
29
 
@@ -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
 
@@ -8,7 +8,7 @@
8
8
  //
9
9
 
10
10
  #import <Foundation/Foundation.h>
11
- #import "GSKReadabilityLevel.h"
11
+ #import <GSSDK/GSKReadabilityLevel.h>
12
12
 
13
13
  NS_ASSUME_NONNULL_BEGIN
14
14
 
@@ -13,9 +13,13 @@
13
13
 
14
14
  /// Defines an image rotation by increment of 90 degrees.
15
15
  typedef NS_ENUM(NSInteger, GSKRotation) {
16
+ /// No rotation
16
17
  GSKRotationNone = 0,
18
+ /// Clockwise rotation, or rotation to the right
17
19
  GSKRotationClockwise = 1,
18
- GSKRotation180 = 2,
20
+ // 180 degree rotation
21
+ GSKRotationUpsideDown = 2,
22
+ // Counter-clockwise rotation, or rotation to the left
19
23
  GSKRotationCounterClockwise = 3
20
24
  };
21
25
 
@@ -12,8 +12,8 @@ typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
12
12
  GSKScanFlowStructuredDataBusinessCard = 1 << 1,
13
13
  /// To scan receipt/invoice information
14
14
  GSKScanFlowStructuredDataReceipt = 1 << 2,
15
- /// To scan barcodes and QR codes. The SDK can detect multiple readable codes on a single page.
16
- GSKScanFlowStructuredDataReadableCode = 1 << 3,
15
+ /// To scan barcodes and QR codes. The SDK can detect multiple barcodes on a single page.
16
+ GSKScanFlowStructuredDataBarcode = 1 << 3,
17
17
  };
18
18
 
19
19
  #endif
@@ -11,7 +11,6 @@
11
11
  #import <Foundation/Foundation.h>
12
12
  #import <UIKit/UIKit.h>
13
13
 
14
- #import <GSSDK/GSKFilterType.h>
15
14
  #import <GSSDK/GSKRotation.h>
16
15
 
17
16
  NS_ASSUME_NONNULL_BEGIN
@@ -33,9 +32,11 @@ NS_ASSUME_NONNULL_BEGIN
33
32
  The document processor is the central class of the GSSDK's image processing algorithms.
34
33
 
35
34
  With the document processor, you can correct the distortion in your documents, as well as improve their legibility.
36
- If you are only interested in the detecting a document in an image, please refer to GSKDocumentDetector.
35
+ The scan processor can also analyze the scan and evaluate its readability.
37
36
 
38
- Warning: `GSKScanProcessor` is not thread-safe; you shouldn't reuse the same instance accross threads.
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.
39
40
  */
40
41
  @interface GSKScanProcessor : NSObject
41
42
 
@@ -45,8 +46,8 @@ NS_ASSUME_NONNULL_BEGIN
45
46
 
46
47
  @param configuration The configuration of the different steps of the processing.
47
48
 
48
- @returns The result of the processing, nil if there is an error. The results includes the parameters that have been selected for the different processing steps,
49
- as well as the temporary path were the output was written. The output is written in a temporary folder. The caller can take ownership of this file.
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.
50
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
51
52
  be saved as JPEG but as a 1-bit PNG image. The result's processedImagePath file extension will reflect this.
52
53
  */