@thegrizzlylabs/cordova-plugin-genius-scan 5.0.3 → 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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/plugin.xml +2 -2
  3. package/src/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  4. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  5. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/en.lproj/GSSDK.strings +0 -0
  6. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +28 -0
  7. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +51 -0
  8. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKOutputConfiguration.h +41 -0
  9. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKPerspectiveCorrectionConfiguration.h +35 -0
  10. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingConfiguration.h +54 -0
  11. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +56 -0
  12. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKResizeConfiguration.h +22 -0
  13. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKResizeResult.h +22 -0
  14. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotation.h +27 -0
  15. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotationConfiguration.h +35 -0
  16. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +9 -229
  17. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +11 -3
  18. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  19. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +67 -74
  20. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  21. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
  22. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
  23. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4143 -4131
  24. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  25. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK_GSSDKObjC.bundle/en.lproj/GSSDK.strings +0 -0
  26. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +28 -0
  27. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +51 -0
  28. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKOutputConfiguration.h +41 -0
  29. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKPerspectiveCorrectionConfiguration.h +35 -0
  30. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingConfiguration.h +54 -0
  31. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +56 -0
  32. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKResizeConfiguration.h +22 -0
  33. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKResizeResult.h +22 -0
  34. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotation.h +27 -0
  35. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotationConfiguration.h +35 -0
  36. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +9 -229
  37. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +11 -3
  38. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  39. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +67 -74
  40. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +67 -74
  41. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  42. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
  43. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
  44. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4138 -4126
  45. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/GSSDK.yml +4006 -3995
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegrizzlylabs/cordova-plugin-genius-scan",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "Cordova Plugin for Genius Scan SDK",
5
5
  "author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
6
6
  "homepage": "https://geniusscansdk.com/",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.0.3" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.0.4" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
3
3
  <name>Genius Scan</name>
4
4
  <js-module name="GeniusScan" src="www/GeniusScan.js">
5
5
  <clobbers target="cordova.plugins.GeniusScan" />
@@ -16,7 +16,7 @@
16
16
  <config-file parent="/manifest/application" target="AndroidManifest.xml" />
17
17
  <source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
18
18
  <framework custom="true" src="src/android/build.gradle" type="gradleReference" />
19
- <framework src="com.geniusscansdk:gssdk:5.0.3"/>
19
+ <framework src="com.geniusscansdk:gssdk:5.0.4"/>
20
20
  </platform>
21
21
 
22
22
  <platform name="ios">
@@ -10,18 +10,15 @@
10
10
  <key>DebugSymbolsPath</key>
11
11
  <string>dSYMs</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64_x86_64-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>GSSDK.framework</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
- <string>x86_64</string>
20
19
  </array>
21
20
  <key>SupportedPlatform</key>
22
21
  <string>ios</string>
23
- <key>SupportedPlatformVariant</key>
24
- <string>simulator</string>
25
22
  </dict>
26
23
  <dict>
27
24
  <key>BinaryPath</key>
@@ -29,15 +26,18 @@
29
26
  <key>DebugSymbolsPath</key>
30
27
  <string>dSYMs</string>
31
28
  <key>LibraryIdentifier</key>
32
- <string>ios-arm64</string>
29
+ <string>ios-arm64_x86_64-simulator</string>
33
30
  <key>LibraryPath</key>
34
31
  <string>GSSDK.framework</string>
35
32
  <key>SupportedArchitectures</key>
36
33
  <array>
37
34
  <string>arm64</string>
35
+ <string>x86_64</string>
38
36
  </array>
39
37
  <key>SupportedPlatform</key>
40
38
  <string>ios</string>
39
+ <key>SupportedPlatformVariant</key>
40
+ <string>simulator</string>
41
41
  </dict>
42
42
  </array>
43
43
  <key>CFBundlePackageType</key>
@@ -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,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,41 @@
1
+ //
2
+ // GSKOutputConfiguration.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
+ /**
14
+ A configuration that defines the output of the processing.
15
+ */
16
+ @interface GSKOutputConfiguration : NSObject
17
+ /**
18
+ JPEG for color images.
19
+ PNG for monochrome images.
20
+ A default, sensible configuration: jpegQuality: 0.60
21
+ */
22
+ + (instancetype)defaultConfiguration;
23
+
24
+ /**
25
+ JPEG for color images with the specified quality.
26
+ PNG for monochrome images.
27
+ */
28
+ + (instancetype)automaticConfigurationWithJPEGQuality:(CGFloat)quality;
29
+
30
+ /// Image output will be JPEG, quality 0.60.
31
+ + (instancetype)jpegOutputConfiguration;
32
+
33
+ /// Image output will be JPEG with specified quality.
34
+ + (instancetype)jpegOutputConfigurationWithQuality:(CGFloat)quality;
35
+
36
+ /// Image output will be PNG.
37
+ + (instancetype)pngOutputConfiguration;
38
+
39
+ @end
40
+
41
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,35 @@
1
+ //
2
+ // GSKPerspectiveCorrectionConfiguration.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
+ @class GSKQuadrangle;
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ /// A GSKPerspectiveCorrectionConfiguration defines the behavior of a GSKScanProcessor when applying perspective correction.
16
+ @interface GSKPerspectiveCorrectionConfiguration : NSObject
17
+
18
+ /**
19
+ A configuration that will result in the document being auto-detected, and the perspective correction subsequently applied.
20
+ */
21
+ + (instancetype)automaticPerspectiveCorrectionConfiguration;
22
+
23
+ /**
24
+ A configuration that will result in no perspective correction being applied.
25
+ */
26
+ + (instancetype)noPerspectiveCorrectionConfiguration;
27
+
28
+ /**
29
+ A configuration that will result in applying the perspective correction defined by the quadrangle.
30
+ */
31
+ + (instancetype)perspectiveCorrectionConfigurationWithQuadrangle:(GSKQuadrangle *)quadrangle;
32
+
33
+ @end
34
+
35
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,54 @@
1
+ //
2
+ // GSKProcessingConfiguration.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
+ @class GSKPerspectiveCorrectionConfiguration;
12
+ @class GSKCurvatureCorrectionConfiguration;
13
+ @class GSKEnhancementConfiguration;
14
+ @class GSKRotationConfiguration;
15
+ @class GSKOutputConfiguration;
16
+
17
+ NS_ASSUME_NONNULL_BEGIN
18
+
19
+ /**
20
+ The configuration object to configure the GSKProcessor's behavior.
21
+
22
+ You can use the default constructors.
23
+ */
24
+ @interface GSKProcessingConfiguration : NSObject
25
+
26
+ + (instancetype)configurationWithPerspectiveCorrectionConfiguration:(GSKPerspectiveCorrectionConfiguration *)perspectiveCorrectionConfiguration
27
+ curvatureCorrectionConfiguration:(GSKCurvatureCorrectionConfiguration *)curvatureCorrectionConfiguration
28
+ enhancementConfiguration:(GSKEnhancementConfiguration *)enhancementConfiguration
29
+ rotationConfiguration:(GSKRotationConfiguration *)rotationConfiguration
30
+ outputConfiguration:(GSKOutputConfiguration *)outputConfiguration;
31
+
32
+ /**
33
+ Automatic perspective correction, distortion correction, followed by automatic enhancement and automatic rotation. Output is JPEG.
34
+ */
35
+ + (instancetype)defaultConfiguration;
36
+
37
+ /// Specify how to correct perspective distortions present in the scan (such as when the scan was taken with an angle)
38
+ @property (nonatomic, strong, readonly) GSKPerspectiveCorrectionConfiguration *perspectiveCorrectionConfiguration;
39
+
40
+ /// Specify how to correct curvature distortions present in the scan (such as a bent book)
41
+ @property (nonatomic, strong, readonly) GSKCurvatureCorrectionConfiguration *curvatureCorrectionConfiguration;
42
+
43
+ /// The enhancement configuration. This includes the filters enhancing the legibility of the document.
44
+ @property (nonatomic, strong, readonly) GSKEnhancementConfiguration *enhancementConfiguration;
45
+
46
+ /// The rotation configuration. The rotation will be applied after all the other processing.
47
+ @property (nonatomic, strong, readonly) GSKRotationConfiguration *rotationConfiguration;
48
+
49
+ /// Configures the output format of the processing.
50
+ @property (nonatomic, strong, readonly) GSKOutputConfiguration *outputConfiguration;
51
+
52
+ @end
53
+
54
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,56 @@
1
+ //
2
+ // GSKProcessingResult.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
+ #import <GSSDK/GSKFilterType.h>
12
+ #import <GSSDK/GSKRotation.h>
13
+
14
+ @class GSKQuadrangle;
15
+ @class GSKFilterConfiguration;
16
+
17
+ NS_ASSUME_NONNULL_BEGIN
18
+
19
+ @interface GSKProcessingResult : NSObject
20
+ /// The output file.
21
+ /// It's located in the temporary directory, so you need to move it to a permanent destination.
22
+ @property (nonatomic, readonly) NSString *processedImagePath;
23
+
24
+ /// The quadrangle that was used for perspective correction
25
+ @property (nonatomic, strong, readonly) GSKQuadrangle *appliedQuadrangle;
26
+
27
+ /// The filter that was applied during the enhancement phase
28
+ @property (nonatomic, assign, readonly) GSKFilterType appliedFilter __deprecated_msg("Use appliedFilterConfiguration instead.");
29
+
30
+ /// The filter that was applied during the enhancement phase
31
+ @property (nonatomic, strong, readonly) GSKFilterConfiguration *appliedFilterConfiguration;
32
+
33
+ /**
34
+ The rotation applied during the rotation phase.
35
+
36
+ If you specified a rotation angle as part of GSKRotationConfiguration, you will get this angle back here.
37
+ If you requested an automatic orientation detection as part of the GSKRotationConfiguration, appliedRotation will correspond the rotation applied by the SDK
38
+ to rotate the image according to the estimated orientation.
39
+
40
+ Note: The output of the processing is always an up-oriented image, even if the original image had an EXIF orientation (see UIImage's imageOrientation property).
41
+ `appliedRotation` doesn't include the rotation applied to the image buffer to remove the EXIF information. The `appliedRotation` only includes the "visual" rotation
42
+ needed to display the image to the user:
43
+
44
+ - If the input image imageOrientation is UIImageOrientationUp, and you request a clockwise rotation, appliedRotation will be GSKRotationClockwise.
45
+ - If the input image imageOrientation is UIImageOrientationUp, and you request an automatic rotation, which detects that the image must be rotated clockwise to
46
+ look "straight", appliedRotation will be GSKRotationClockwise.
47
+ - If the input image imageOrientation is UIImageOrientationRight, and you request a clockwise rotation, appliedRotation will be GSKRotationClockwise. The output
48
+ image orientation will be UIImageOrientationUp.
49
+ - If the input image imageOrientation is UIImageOrientationUp, and you request an automatic rotation, which detects that the image must be rotated clockwise to
50
+ look "straight", appliedRotation will be GSKRotationClockwise. The output image orientation will be UIImageOrientationUp.
51
+ */
52
+ @property (nonatomic, assign, readonly) GSKRotation appliedRotation;
53
+
54
+ @end
55
+
56
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,22 @@
1
+ //
2
+ // GSKResizeConfiguration.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 GSKResizeConfiguration defines the behavior of a GSKScanProcessor when resizing the processed image.
14
+ @interface GSKResizeConfiguration : NSObject
15
+
16
+ - (instancetype)initWithMaxDimension:(NSUInteger)maxDimension;
17
+
18
+ @property (nonatomic, assign, readonly) NSUInteger maxDimension;
19
+
20
+ @end
21
+
22
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,22 @@
1
+ //
2
+ // GSKResizeResult.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
+ /// The result of a resizing operation
14
+ @interface GSKResizeResult : NSObject
15
+
16
+ - (instancetype)initWithResizedImagePath:(NSString *)path;
17
+
18
+ @property (nonatomic, readonly) NSString *resizedImagePath;
19
+
20
+ @end
21
+
22
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,27 @@
1
+ //
2
+ // GSKRotation.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
+ #ifndef GSKRotation_h
12
+ #define GSKRotation_h
13
+
14
+ /// Defines an image rotation by increment of 90 degrees.
15
+ typedef NS_ENUM(NSInteger, GSKRotation) {
16
+ GSKRotationNone = 0,
17
+ GSKRotationClockwise = 1,
18
+ GSKRotation180 = 2,
19
+ GSKRotationCounterClockwise = 3
20
+ };
21
+
22
+ #endif /* GSKRotation_h */
23
+
24
+ /// Returns the resulting rotation when applying firstRotation, then secondRotation.
25
+ FOUNDATION_EXPORT GSKRotation GSKCombineRotation(GSKRotation firstRotation, GSKRotation secondRotation);
26
+ /// Returns the resulting rotation when applying firstRotation, then subtracting secondRotation.
27
+ FOUNDATION_EXPORT GSKRotation GSKSubtractRotation(GSKRotation firstRotation, GSKRotation secondRotation);
@@ -0,0 +1,35 @@
1
+ //
2
+ // GSKRotationConfiguration.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
+ #import <GSSDK/GSKRotation.h>
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ /// A GSKRotationConfiguration defines the behavior of a GSKScanProcessor when rotating the processed image.
16
+ @interface GSKRotationConfiguration : NSObject
17
+
18
+ /**
19
+ A rotation configuration where no rotation is applied.
20
+ */
21
+ + (instancetype)noRotationConfiguration;
22
+
23
+ /**
24
+ A rotation configuration where Genius Scan automatically detects the document's orientation.
25
+ */
26
+ + (instancetype)automaticRotationConfiguration;
27
+
28
+ /**
29
+ A rotation with a specific angle. No automatic rotation is applied.
30
+ */
31
+ + (instancetype)rotationConfigurationWithRotation:(GSKRotation)rotation;
32
+
33
+ @end
34
+
35
+ NS_ASSUME_NONNULL_END