@thegrizzlylabs/cordova-plugin-genius-scan 5.7.0 → 5.9.0
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/README.md +3 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingConfiguration.h +12 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityConfiguration.h +30 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityLevel.h +23 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityResult.h +26 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +10 -8
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +3 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +801 -265
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +45 -33
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +45 -33
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/PrivacyInfo.xcprivacy +14 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4242 -4172
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingConfiguration.h +12 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityConfiguration.h +30 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityLevel.h +23 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityResult.h +26 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +20 -16
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +3 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +801 -265
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +45 -33
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +45 -33
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +801 -265
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +45 -33
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +45 -33
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/PrivacyInfo.xcprivacy +14 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4239 -4169
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/GSSDK.yml +4178 -4108
package/README.md
CHANGED
|
@@ -134,6 +134,7 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
|
|
|
134
134
|
- `outputFormats`: an array with the formats in which the OCR result is made available in the ScanFlow result (defaults to all formats). Possible formats are `rawText`, `hOCR` and `textLayerInPDF`.
|
|
135
135
|
- `structuredData`: an array of the structured data you want to extract. E.g.: `['receipt', 'businessCard']`. Possible values are `receipt`, `readableCode`, `bankDetails` (iOS only), `businessCard` (iOS only).
|
|
136
136
|
- `structuredDataReadableCodeTypes`: an array of the readable code types to extract, e.g. `['qr', 'code39']`. Possible values are `aztec`, `code39`, `code93`, `code128`, `dataMatrix`, `ean8`, `ean13`, `itf`, `pdf417`, `qr`, `upca` (Android only), `upce`, `codabar` (iOS 15+ only), `gs1DataBar` (iOS 15+ only), `microPDF417` (iOS 15+ only), `microQR` (iOS 15+ only), `msiPlessey` (iOS 15+ only).
|
|
137
|
+
- `requiredReadabilityLevel`: the required readability level below which a warning will be displayed to the user. Possible values are `lowest`, `low`, `medium`, `high`, `highest` (default to `lowest`, which means the warning will never be displayed).
|
|
137
138
|
|
|
138
139
|
It returns a promise with `result` object containing:
|
|
139
140
|
|
|
@@ -146,6 +147,8 @@ It returns a promise with `result` object containing:
|
|
|
146
147
|
- `hocrTextLayout`: the recognized text in [hOCR](https://en.wikipedia.org/wiki/HOCR) format (with position, style…)
|
|
147
148
|
- `structuredData`: the result of the structured data extraction. A subdictionary will be present for each type of structured data detected by the scan flow.
|
|
148
149
|
|
|
150
|
+
An implicit API contract is that you have to take ownership of the resulting files referenced by the `result` object. You are responsible for moving them to the appropriate place and deleting them if you don’t need them anymore.
|
|
151
|
+
|
|
149
152
|
### Available filters
|
|
150
153
|
|
|
151
154
|
The ScanFlow offers a variety of filters to enhance the appearance of different kinds of documents.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/cordova-plugin-genius-scan",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.0",
|
|
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.
|
|
2
|
+
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.9.0" 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" />
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<config-file parent="/manifest/application" target="AndroidManifest.xml" />
|
|
14
14
|
<source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
|
|
15
15
|
<framework custom="true" src="src/android/build.gradle" type="gradleReference" />
|
|
16
|
-
<framework src="com.geniusscansdk:gssdk:5.
|
|
16
|
+
<framework src="com.geniusscansdk:gssdk:5.9.0"/>
|
|
17
17
|
</platform>
|
|
18
18
|
|
|
19
19
|
<platform name="ios">
|
|
Binary file
|
|
Binary file
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
@class GSKEnhancementConfiguration;
|
|
14
14
|
@class GSKRotationConfiguration;
|
|
15
15
|
@class GSKOutputConfiguration;
|
|
16
|
+
@class GSKReadabilityConfiguration;
|
|
16
17
|
|
|
17
18
|
NS_ASSUME_NONNULL_BEGIN
|
|
18
19
|
|
|
@@ -27,6 +28,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
27
28
|
curvatureCorrectionConfiguration:(GSKCurvatureCorrectionConfiguration *)curvatureCorrectionConfiguration
|
|
28
29
|
enhancementConfiguration:(GSKEnhancementConfiguration *)enhancementConfiguration
|
|
29
30
|
rotationConfiguration:(GSKRotationConfiguration *)rotationConfiguration
|
|
31
|
+
outputConfiguration:(GSKOutputConfiguration *)outputConfiguration
|
|
32
|
+
__deprecated_msg("Please pass a value for the 'readabilityConfiguration' parameter");
|
|
33
|
+
|
|
34
|
+
+ (instancetype)configurationWithPerspectiveCorrectionConfiguration:(GSKPerspectiveCorrectionConfiguration *)perspectiveCorrectionConfiguration
|
|
35
|
+
curvatureCorrectionConfiguration:(GSKCurvatureCorrectionConfiguration *)curvatureCorrectionConfiguration
|
|
36
|
+
enhancementConfiguration:(GSKEnhancementConfiguration *)enhancementConfiguration
|
|
37
|
+
rotationConfiguration:(GSKRotationConfiguration *)rotationConfiguration
|
|
38
|
+
readabilityConfiguration:(GSKReadabilityConfiguration *)readabilityConfiguration
|
|
30
39
|
outputConfiguration:(GSKOutputConfiguration *)outputConfiguration;
|
|
31
40
|
|
|
32
41
|
/**
|
|
@@ -46,6 +55,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
46
55
|
/// The rotation configuration. The rotation will be applied after all the other processing.
|
|
47
56
|
@property (nonatomic, strong, readonly) GSKRotationConfiguration *rotationConfiguration;
|
|
48
57
|
|
|
58
|
+
/// The configuration used for the readability detection feature.
|
|
59
|
+
@property (nonatomic, strong, readonly) GSKReadabilityConfiguration *readabilityConfiguration;
|
|
60
|
+
|
|
49
61
|
/// Configures the output format of the processing.
|
|
50
62
|
@property (nonatomic, strong, readonly) GSKOutputConfiguration *outputConfiguration;
|
|
51
63
|
|
package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
@class GSKQuadrangle;
|
|
15
15
|
@class GSKFilterConfiguration;
|
|
16
|
+
@class GSKReadabilityResult;
|
|
16
17
|
|
|
17
18
|
NS_ASSUME_NONNULL_BEGIN
|
|
18
19
|
|
|
@@ -51,6 +52,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
51
52
|
*/
|
|
52
53
|
@property (nonatomic, assign, readonly) GSKRotation appliedRotation;
|
|
53
54
|
|
|
55
|
+
/// The result of determining the scan's readability score, which is based on how legible the document's text is. A blurrier document
|
|
56
|
+
/// will have a lower readability score. Only assigned if the `GSKProcessingConfiguration` that was used for processing had its
|
|
57
|
+
/// `isReadabilityEnabled` property set to `YES`, always `nil` otherwise.
|
|
58
|
+
@property (nonatomic, strong, nullable, readonly) GSKReadabilityResult *readabilityResult;
|
|
59
|
+
|
|
54
60
|
@end
|
|
55
61
|
|
|
56
62
|
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Genius Scan SDK
|
|
3
|
+
//
|
|
4
|
+
// Copyright 2010-2020 The Grizzly Labs
|
|
5
|
+
//
|
|
6
|
+
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
+
// sdk@thegrizzlylabs.com
|
|
8
|
+
//
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/// Configuration type used to determine whether the readability detection feature should be enabled.
|
|
15
|
+
@interface GSKReadabilityConfiguration : NSObject
|
|
16
|
+
|
|
17
|
+
/// Return the default readability configuration.
|
|
18
|
+
+ (instancetype)defaultConfiguration NS_SWIFT_NAME(default());
|
|
19
|
+
/// Return a configuration that conditionally enables readability detection.
|
|
20
|
+
+ (instancetype)enabledConfiguration:(BOOL)isEnabled NS_SWIFT_NAME(enabled(_:));
|
|
21
|
+
/// Return a configuration that always disables readability detection.
|
|
22
|
+
+ (instancetype)disabledConfiguration NS_SWIFT_NAME(disabled());
|
|
23
|
+
|
|
24
|
+
/// Whether the SDK should perform readability detection, and assign a `readabilityLevel` to the
|
|
25
|
+
/// scans it processes.
|
|
26
|
+
@property (nonatomic, assign, readonly) BOOL isEnabled;
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityLevel.h
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Genius Scan SDK
|
|
3
|
+
//
|
|
4
|
+
// Copyright 2010-2025 The Grizzly Labs
|
|
5
|
+
//
|
|
6
|
+
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
+
// sdk@thegrizzlylabs.com
|
|
8
|
+
//
|
|
9
|
+
|
|
10
|
+
#ifndef GSKReadabilityLevel_h
|
|
11
|
+
#define GSKReadabilityLevel_h
|
|
12
|
+
|
|
13
|
+
/// Enum describing various readability levels, that correspond to legibility scores when processing
|
|
14
|
+
/// a scanned document.
|
|
15
|
+
typedef NS_CLOSED_ENUM(NSUInteger, GSKReadabilityLevel) {
|
|
16
|
+
GSKReadabilityLevelLowest,
|
|
17
|
+
GSKReadabilityLevelLow,
|
|
18
|
+
GSKReadabilityLevelMedium,
|
|
19
|
+
GSKReadabilityLevelHigh,
|
|
20
|
+
GSKReadabilityLevelHighest,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
#endif
|
package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityResult.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Genius Scan SDK
|
|
3
|
+
//
|
|
4
|
+
// Copyright 2010-2025 The Grizzly Labs
|
|
5
|
+
//
|
|
6
|
+
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
+
// sdk@thegrizzlylabs.com
|
|
8
|
+
//
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
#import "GSKReadabilityLevel.h"
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
/// Type that encapsulates the result of determining a scan's readability level.
|
|
16
|
+
@interface GSKReadabilityResult : NSObject
|
|
17
|
+
|
|
18
|
+
/// The readability level that was determined for the scan, which indicates how legible the document is.
|
|
19
|
+
@property (nonatomic, assign, readonly) GSKReadabilityLevel readabilityLevel NS_SWIFT_NAME(level);
|
|
20
|
+
|
|
21
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
22
|
+
- (instancetype)initWithReadabilityLevel:(GSKReadabilityLevel)readabilityLevel;
|
|
23
|
+
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.
|
|
3
|
+
// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
|
|
4
4
|
#ifndef GSSDK_SWIFT_H
|
|
5
5
|
#define GSSDK_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -825,15 +825,14 @@ SWIFT_CLASS("_TtC5GSSDK29GSKNoopDocumentImageProcessor")
|
|
|
825
825
|
@class GSKOCRConfiguration;
|
|
826
826
|
@class GSKOCRResult;
|
|
827
827
|
|
|
828
|
+
/// A type that performs Optical Character Recognition (OCR) on a scanned document.
|
|
828
829
|
SWIFT_CLASS("_TtC5GSSDK6GSKOCR")
|
|
829
830
|
@interface GSKOCR : NSObject
|
|
830
831
|
- (nonnull instancetype)initWithLogger:(id <GSKLogger> _Nonnull)logger OBJC_DESIGNATED_INITIALIZER;
|
|
831
832
|
- (nonnull instancetype)init;
|
|
832
833
|
/// Recognize the text in the provided image
|
|
833
|
-
///
|
|
834
|
-
///
|
|
835
|
-
/// white with [GSDK enhanceImage:withPostProcessing:error:] first. If not, set the <code>preprocessed</code> flag
|
|
836
|
-
/// on the <code>configuration</code> object to NO.
|
|
834
|
+
/// \param imagePath The path of the image to recognize. Ideally, provide the original, cropped image, and not the enhanced image.
|
|
835
|
+
/// The OCR decides what post-processing to apply for the best results.
|
|
837
836
|
///
|
|
838
837
|
/// \param configuration Configuration for the OCR process, in particular the language in which the OCR is
|
|
839
838
|
/// performed. Note that you must provided the appropriate trained data.
|
|
@@ -841,9 +840,6 @@ SWIFT_CLASS("_TtC5GSSDK6GSKOCR")
|
|
|
841
840
|
/// \param progressBlock The progress between 0 and 1. Called on the same thread.
|
|
842
841
|
///
|
|
843
842
|
///
|
|
844
|
-
/// throws:
|
|
845
|
-
/// Throws various error (unable to read image, unsupported languages provided).
|
|
846
|
-
///
|
|
847
843
|
/// returns:
|
|
848
844
|
/// An OCR result.
|
|
849
845
|
- (void)recognizeTextForImageAtPath:(NSString * _Nonnull)imagePath ocrConfiguration:(GSKOCRConfiguration * _Nonnull)configuration onProgress:(void (^ _Nullable)(float))progressBlock completionHandler:(void (^ _Nonnull)(GSKOCRResult * _Nullable, NSError * _Nullable))completionHandler;
|
|
@@ -1013,6 +1009,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1013
1009
|
@property (nonatomic) enum GSKScanOrientation defaultScanOrientation;
|
|
1014
1010
|
/// Any specific kind of post-processing to use. Defaults to <code>.automatic</code>.
|
|
1015
1011
|
@property (nonatomic) enum GSKScanFlowFilterType defaultFilter;
|
|
1012
|
+
/// The minimum readability level that scanned documents are required to have. If a scan has a lower
|
|
1013
|
+
/// readability level, then a warning will be shown as part of the scanning flow, and the user will be
|
|
1014
|
+
/// prompted to retry the scan in question.
|
|
1015
|
+
@property (nonatomic) GSKReadabilityLevel requiredReadabilityLevel;
|
|
1016
1016
|
/// Whether to skip showing the post-processing screen. We only recommend
|
|
1017
1017
|
/// enabling this option when scanning structured data. Generally, you want
|
|
1018
1018
|
/// the user to visually confirm the quality of each scan.
|
|
@@ -1375,6 +1375,8 @@ SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataReceipt")
|
|
|
1375
1375
|
@property (nonatomic, readonly, copy) NSString * _Nullable currency;
|
|
1376
1376
|
/// Any date that appears on the receipt, if successfully extracted, otherwise <code>nil</code>.
|
|
1377
1377
|
@property (nonatomic, readonly, copy) NSDate * _Nullable date;
|
|
1378
|
+
/// The VAT number of the merchant, if successfully extracted, otherwise <code>nil</code>.
|
|
1379
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable vatNumber;
|
|
1378
1380
|
/// The value-added tax (VAT) details.
|
|
1379
1381
|
/// This property is an array because a receipt may display multiple VAT rates applying to different items
|
|
1380
1382
|
@property (nonatomic, readonly, copy) NSArray<GSKReceiptVAT *> * _Nonnull vatValues;
|
|
@@ -47,3 +47,6 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
|
|
|
47
47
|
#import <GSSDK/GSKShutterView.h>
|
|
48
48
|
#import <GSSDK/GSKView.h>
|
|
49
49
|
#import <GSSDK/UIImage+GSKUtils.h>
|
|
50
|
+
#import <GSSDK/GSKReadabilityLevel.h>
|
|
51
|
+
#import <GSSDK/GSKReadabilityConfiguration.h>
|
|
52
|
+
#import <GSSDK/GSKReadabilityResult.h>
|
|
Binary file
|