@thegrizzlylabs/cordova-plugin-genius-scan 4.7.4 → 4.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 +4 -2
- package/package.json +1 -1
- package/plugin.xml +7 -5
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKError.h +2 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/dSYMs/GSSDKCore.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/dSYMs/GSSDKCore.framework.dSYM/Contents/Resources/DWARF/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKError.h +2 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKCore.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKCore.framework.dSYM/Contents/Resources/DWARF/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/GSSDKOCR.framework/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/GSSDKOCR.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/dSYMs/GSSDKOCR.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/dSYMs/GSSDKOCR.framework.dSYM/Contents/Resources/DWARF/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKOCR.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKOCR.framework.dSYM/Contents/Resources/DWARF/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Assets.car +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Headers/GSKScanFlow.h +2 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Resources/DWARF/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Assets.car +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Headers/GSKScanFlow.h +2 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Resources/DWARF/GSSDKScanFlow +0 -0
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
|
|
|
119
119
|
- `pdfPageSize`: `fit`, `a4`, `letter`, defaults to fit.
|
|
120
120
|
- `pdfMaxScanDimension`: max dimension in pixels when images are scaled before PDF generation, for example 2000 to fit both height and width within 2000px. Defaults to 0, which means no scaling is performed.
|
|
121
121
|
- `jpegQuality`: JPEG quality used to compress captured images. Between 0 and 100, 100 being the best quality. Default is 60.
|
|
122
|
-
- `postProcessingActions`: an array with the desired actions to display during the post processing screen (defaults to all actions). Possible actions are `rotate`, `editFilter`.
|
|
122
|
+
- `postProcessingActions`: an array with the desired actions to display during the post processing screen (defaults to all actions). Possible actions are `rotate`, `editFilter` and `correctDistortion`.
|
|
123
123
|
- `flashButtonHidden`: boolean (default to false)
|
|
124
124
|
- `defaultFlashMode`: `auto`, `on`, `off` (default to `off`)
|
|
125
125
|
- `foregroundColor`: string representing a color, must start with a `#`. The color of the icons, text (defaults to '#ffffff').
|
|
@@ -138,6 +138,7 @@ It returns a promise with `result` object containing:
|
|
|
138
138
|
- `enhancedUrl`: the cropped and enhanced file, as processed by the SDK. "file://<filepath>.{jpeg|png}"
|
|
139
139
|
- `ocrResult`: the result of text recognition for this scan
|
|
140
140
|
- `text`: the raw text that was recognized
|
|
141
|
+
- `hocrTextLayout`: the recognized text in [hOCR](https://en.wikipedia.org/wiki/HOCR) format (with position, style…)
|
|
141
142
|
|
|
142
143
|
### Error callback
|
|
143
144
|
|
|
@@ -155,6 +156,7 @@ The `document` parameter is a map containing the following values:
|
|
|
155
156
|
|
|
156
157
|
- `pages`: an array of page objects. Each page object has:
|
|
157
158
|
- `imageUrl`: the URL of the image file for this page, e.g. `file://<filepath>.{jpeg|png}`
|
|
159
|
+
- `hocrTextLayout`: the text layout in hOCR format
|
|
158
160
|
|
|
159
161
|
The `configuration` parameter provides the following options:
|
|
160
162
|
|
|
@@ -193,7 +195,7 @@ export class HomePage {
|
|
|
193
195
|
The device's locale determines the languages used by the plugin for all strings: user guidance, menus, dialogs…
|
|
194
196
|
|
|
195
197
|
The plugin supports a wide variety of languages: English (default), Arabic, Chinese (Simplified), Chinese (Traditional), Danish, Dutch, French, German, Hebrew, Indonesian, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish, Turkish, Vietnamese.
|
|
196
|
-
|
|
198
|
+
|
|
197
199
|
NB: iOS applications must be [localized in XCode by adding each language to the project](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LocalizingYourApp/LocalizingYourApp.html#//apple_ref/doc/uid/10000171i-CH5-SW2).
|
|
198
200
|
|
|
199
201
|
## What should I do if my license is invalid?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/cordova-plugin-genius-scan",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.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="4.
|
|
2
|
+
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="4.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" />
|
|
@@ -9,13 +9,15 @@
|
|
|
9
9
|
<feature name="GeniusScan">
|
|
10
10
|
<param name="android-package" value="com.geniusscansdk.cordova.GeniusScan" />
|
|
11
11
|
</feature>
|
|
12
|
+
<!-- Needed until we can upgrade cordova-android to a version that supports API 33 (v12.0.0?) -->
|
|
13
|
+
<preference name="android-targetSdkVersion" value="33" />
|
|
14
|
+
<preference name="android-compileSdkVersion" value="33" />
|
|
12
15
|
</config-file>
|
|
13
|
-
<config-file parent="/manifest/application" target="AndroidManifest.xml"
|
|
14
|
-
</config-file>
|
|
16
|
+
<config-file parent="/manifest/application" target="AndroidManifest.xml" />
|
|
15
17
|
<source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
|
|
16
18
|
<framework custom="true" src="src/android/build.gradle" type="gradleReference" />
|
|
17
|
-
<framework src="com.geniusscansdk:gssdk-scanflow:4.
|
|
18
|
-
<framework src="com.geniusscansdk:gssdk-ocr:4.
|
|
19
|
+
<framework src="com.geniusscansdk:gssdk-scanflow:4.9.0"/>
|
|
20
|
+
<framework src="com.geniusscansdk:gssdk-ocr:4.9.0"/>
|
|
19
21
|
</platform>
|
|
20
22
|
|
|
21
23
|
<platform name="ios">
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/GSSDKCore
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>GSSDKOCR.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
+
<string>x86_64</string>
|
|
15
16
|
</array>
|
|
16
17
|
<key>SupportedPlatform</key>
|
|
17
18
|
<string>ios</string>
|
|
19
|
+
<key>SupportedPlatformVariant</key>
|
|
20
|
+
<string>simulator</string>
|
|
18
21
|
</dict>
|
|
19
22
|
<dict>
|
|
20
23
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-
|
|
24
|
+
<string>ios-arm64</string>
|
|
22
25
|
<key>LibraryPath</key>
|
|
23
26
|
<string>GSSDKOCR.framework</string>
|
|
24
27
|
<key>SupportedArchitectures</key>
|
|
25
28
|
<array>
|
|
26
29
|
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
30
|
</array>
|
|
29
31
|
<key>SupportedPlatform</key>
|
|
30
32
|
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
</array>
|
|
35
35
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/GSSDKOCR
CHANGED
|
Binary file
|
package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>GSSDKScanFlow.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
15
|
</array>
|
|
17
16
|
<key>SupportedPlatform</key>
|
|
18
17
|
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
18
|
</dict>
|
|
22
19
|
<dict>
|
|
23
20
|
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>ios-
|
|
21
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
25
22
|
<key>LibraryPath</key>
|
|
26
23
|
<string>GSSDKScanFlow.framework</string>
|
|
27
24
|
<key>SupportedArchitectures</key>
|
|
28
25
|
<array>
|
|
29
26
|
<string>arm64</string>
|
|
27
|
+
<string>x86_64</string>
|
|
30
28
|
</array>
|
|
31
29
|
<key>SupportedPlatform</key>
|
|
32
30
|
<string>ios</string>
|
|
31
|
+
<key>SupportedPlatformVariant</key>
|
|
32
|
+
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
</array>
|
|
35
35
|
<key>CFBundlePackageType</key>
|
package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Assets.car
CHANGED
|
Binary file
|
package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/GSSDKScanFlow
CHANGED
|
Binary file
|
|
@@ -62,6 +62,8 @@ typedef NS_OPTIONS(NSUInteger, GSKScanFlowPostProcessingActions) {
|
|
|
62
62
|
GSKScanFlowPostProcessingActionEditFilter = 1 << 0,
|
|
63
63
|
/// The rotate scan action
|
|
64
64
|
GSKScanFlowPostProcessingActionRotate = 1 << 1,
|
|
65
|
+
/// The distortion (book curvature) correction
|
|
66
|
+
GSKScanFlowPostProcessingActionDistortionCorrection = 1 << 2,
|
|
65
67
|
/// All the actions
|
|
66
68
|
GSKScanFlowPostProcessingActionAll = NSUIntegerMax,
|
|
67
69
|
};
|
package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -62,6 +62,8 @@ typedef NS_OPTIONS(NSUInteger, GSKScanFlowPostProcessingActions) {
|
|
|
62
62
|
GSKScanFlowPostProcessingActionEditFilter = 1 << 0,
|
|
63
63
|
/// The rotate scan action
|
|
64
64
|
GSKScanFlowPostProcessingActionRotate = 1 << 1,
|
|
65
|
+
/// The distortion (book curvature) correction
|
|
66
|
+
GSKScanFlowPostProcessingActionDistortionCorrection = 1 << 2,
|
|
65
67
|
/// All the actions
|
|
66
68
|
GSKScanFlowPostProcessingActionAll = NSUIntegerMax,
|
|
67
69
|
};
|
|
Binary file
|