@thegrizzlylabs/react-native-genius-scan 5.5.0 → 5.6.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 +2 -2
- package/android/build.gradle +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +3 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +4 -2
- 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 +1769 -128
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +49 -0
- 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 +49 -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/Headers/GSKScanFlowStructuredData.h +3 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +8 -4
- 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 +1769 -128
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +49 -0
- 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 +49 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1769 -128
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +49 -0
- 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 +49 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,8 +111,8 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
|
|
|
111
111
|
- `ocrConfiguration`: text recognition options. Text recognition will run on a background thread for every captured image. No text recognition will be applied if this parameter is not present.
|
|
112
112
|
- `languages`: list of the BCP 47 language codes (eg `["en-US"]`) for which to run text recognition. Note that text recognition will take longer if multiple languages are specified.
|
|
113
113
|
- `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`.
|
|
114
|
-
- `structuredData`: an array of the structured data you want to extract. E.g.: `['receipt', 'businessCard']`. Possible values are `
|
|
115
|
-
|
|
114
|
+
- `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).
|
|
115
|
+
- `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).
|
|
116
116
|
It returns a promise with `result` object containing:
|
|
117
117
|
|
|
118
118
|
- `multiPageDocumentUrl`: a document containing all the scanned pages (example: "file://<filepath>.pdf")
|
package/android/build.gradle
CHANGED
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h
CHANGED
|
@@ -11,7 +11,9 @@ typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
|
|
|
11
11
|
/// To scan business card information
|
|
12
12
|
GSKScanFlowStructuredDataBusinessCard = 1 << 1,
|
|
13
13
|
/// To scan receipt/invoice information
|
|
14
|
-
GSKScanFlowStructuredDataReceipt = 1 << 2
|
|
14
|
+
GSKScanFlowStructuredDataReceipt = 1 << 2,
|
|
15
|
+
/// To scan barcodes and QR codes. The SDK can detect multiple readable codes on a single page.
|
|
16
|
+
GSKScanFlowStructuredDataReadableCode = 1 << 3,
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
#endif
|
|
@@ -34,6 +34,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
34
34
|
|
|
35
35
|
With the document processor, you can correct the distortion in your documents, as well as improve their legibility.
|
|
36
36
|
If you are only interested in the detecting a document in an image, please refer to GSKDocumentDetector.
|
|
37
|
+
|
|
38
|
+
Warning: `GSKScanProcessor` is not thread-safe; you shouldn't reuse the same instance accross threads.
|
|
37
39
|
*/
|
|
38
40
|
@interface GSKScanProcessor : NSObject
|
|
39
41
|
|
|
@@ -383,6 +383,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDu
|
|
|
383
383
|
@property (nonatomic, readonly) BOOL supportsFlash;
|
|
384
384
|
/// Public to be accessible from Objective-C, but should be private otherwise.
|
|
385
385
|
@property (nonatomic, readonly, strong) dispatch_queue_t _Nullable captureSessionQueue;
|
|
386
|
+
@property (nonatomic, readonly, strong) dispatch_queue_t _Nonnull takePhotoQueue;
|
|
386
387
|
- (nonnull instancetype)initWithConfiguration:(GSKCameraSessionConfiguration * _Nonnull)configuration;
|
|
387
388
|
- (void)pauseSession;
|
|
388
389
|
- (void)resumeSession;
|
|
@@ -399,6 +400,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDu
|
|
|
399
400
|
/// Otherwise, if you want to let the user manually trigger the photo, you can use this method.
|
|
400
401
|
/// This method can be called even when activeDetectionMode is higlightAndTrigger and will force taking the
|
|
401
402
|
/// photo.
|
|
403
|
+
/// This method is thread-safe.
|
|
402
404
|
/// IMPORTANT: Taking the photo will pause the session. You have to resume the session will <code>resumeSession</code> once
|
|
403
405
|
/// you are done processing the result.
|
|
404
406
|
- (void)takePhoto;
|
|
@@ -1230,10 +1232,10 @@ SWIFT_CLASS("_TtC5GSSDK31GSKScanFlowStructuredDataResult")
|
|
|
1230
1232
|
/// Present if bank details extraction was requested, <code>nil</code> otherwise.
|
|
1231
1233
|
@property (nonatomic, strong) GSKStructuredDataBankDetails * _Nullable bankDetails;
|
|
1232
1234
|
/// Present if business card contact extraction was requested and a contact was
|
|
1233
|
-
///
|
|
1235
|
+
/// successfully extracted, <code>nil</code> otherwise.
|
|
1234
1236
|
@property (nonatomic, strong) GSKStructuredDataContact * _Nullable businessCardContact;
|
|
1235
1237
|
/// Present if receipt extraction was requested and a receipt/invoice was
|
|
1236
|
-
///
|
|
1238
|
+
/// successfully extracted, <code>nil</code> otherwise.
|
|
1237
1239
|
@property (nonatomic, strong) GSKStructuredDataReceipt * _Nullable receipt;
|
|
1238
1240
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1239
1241
|
@end
|
|
Binary file
|