@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
package/android/build.gradle
CHANGED
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
<key>DebugSymbolsPath</key>
|
|
11
11
|
<string>dSYMs</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
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-
|
|
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>
|
|
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
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentComposition.h
ADDED
|
@@ -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 */
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEnhancementConfiguration.h
ADDED
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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 */
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKOutputConfiguration.h
ADDED
|
@@ -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
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingConfiguration.h
ADDED
|
@@ -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
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKResizeConfiguration.h
ADDED
|
@@ -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);
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotationConfiguration.h
ADDED
|
@@ -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
|