dynamsoft-capture-vision-react-native 3.4.1300 → 3.4.3010
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/LICENSE +4 -4
- package/README.md +62 -62
- package/android/README.md +14 -14
- package/android/build.gradle +167 -163
- package/android/gradle.properties +20 -20
- package/android/settings.gradle +5 -5
- package/android/src/main/AndroidManifest.xml +6 -6
- package/android/src/main/AndroidManifest_noPackage.xml +5 -5
- package/android/src/main/cpp/CMakeLists.txt +21 -21
- package/android/src/main/cpp/ImgHO.cpp +94 -94
- package/android/src/main/cpp/ImgHO.h +34 -34
- package/android/src/main/cpp/JsiCore.cpp +296 -296
- package/android/src/main/cpp/JsiCore.h +51 -51
- package/android/src/main/cpp/JsiCvr.cpp +332 -332
- package/android/src/main/cpp/JsiCvr.h +54 -54
- package/android/src/main/cpp/JsiDbr.cpp +283 -283
- package/android/src/main/cpp/JsiDbr.h +26 -26
- package/android/src/main/cpp/JsiDce.cpp +59 -59
- package/android/src/main/cpp/JsiDce.h +17 -17
- package/android/src/main/cpp/JsiDcp.cpp +51 -51
- package/android/src/main/cpp/JsiDcp.h +31 -31
- package/android/src/main/cpp/JsiDdn.cpp +50 -50
- package/android/src/main/cpp/JsiDdn.h +28 -28
- package/android/src/main/cpp/JsiDlr.cpp +60 -60
- package/android/src/main/cpp/JsiDlr.h +26 -26
- package/android/src/main/cpp/JsiUtility.cpp +604 -604
- package/android/src/main/cpp/JsiUtility.h +26 -26
- package/android/src/main/cpp/RawBuffer.cpp +23 -23
- package/android/src/main/cpp/RawBuffer.h +24 -24
- package/android/src/main/cpp/android_log.h +14 -14
- package/android/src/main/dysJniLibsFor86/debug/arm64-v8a/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/debug/armeabi-v7a/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/debug/x86/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/debug/x86_64/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/release/arm64-v8a/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/release/armeabi-v7a/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/release/x86/librn_dys.so +0 -0
- package/android/src/main/dysJniLibsFor86/release/x86_64/librn_dys.so +0 -0
- package/android/src/main/java/com/dynamsoft/reactnativelib/CVRModule.kt +137 -137
- package/android/src/main/java/com/dynamsoft/reactnativelib/CameraViewManager.kt +62 -62
- package/android/src/main/java/com/dynamsoft/reactnativelib/DCEModule.kt +125 -125
- package/android/src/main/java/com/dynamsoft/reactnativelib/DynamsoftBaseModule.kt +8 -8
- package/android/src/main/java/com/dynamsoft/reactnativelib/ISAModule.kt +73 -73
- package/android/src/main/java/com/dynamsoft/reactnativelib/ImageEditorViewManager.kt +14 -14
- package/android/src/main/java/com/dynamsoft/reactnativelib/ImageEditorViewModule.kt +35 -35
- package/android/src/main/java/com/dynamsoft/reactnativelib/ImageManagerModule.kt +15 -15
- package/android/src/main/java/com/dynamsoft/reactnativelib/LicenseModule.kt +29 -29
- package/android/src/main/java/com/dynamsoft/reactnativelib/MultiCrossFilterModule.kt +83 -83
- package/android/src/main/java/com/dynamsoft/reactnativelib/ReactNativeDcvPackage.kt +32 -32
- package/android/src/main/java/com/dynamsoft/reactnativelib/VersionsModule.kt +41 -41
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/Basic.kt +44 -44
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForCore.kt +50 -50
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForCvr.kt +129 -129
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDBR.kt +157 -157
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDCE.kt +110 -110
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDCP.kt +49 -49
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDDN.kt +85 -85
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDLR.kt +72 -72
- package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ImageUtil.kt +58 -58
- package/android/src/main/java/com/dynamsoft/reactnativelib/core/ImageSourceAdapterModuleImpl.kt +120 -120
- package/android/src/main/java/com/dynamsoft/reactnativelib/cvr/CaptureVisionRouterModuleImpl.kt +306 -306
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/CameraEnhancerModuleImpl.kt +247 -247
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/CameraLifeCycleOwner.java +14 -14
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/CameraViewManagerImpl.kt +77 -77
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/ImageEditorViewManagerImpl.kt +15 -15
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/ImageEditorViewModuleImpl.kt +110 -110
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/RNCameraView.kt +20 -20
- package/android/src/main/java/com/dynamsoft/reactnativelib/dce/RNImageEditorView.kt +19 -19
- package/android/src/main/java/com/dynamsoft/reactnativelib/license/LicenseModuleImpl.kt +39 -39
- package/android/src/main/java/com/dynamsoft/reactnativelib/utility/ImageManagerModuleImpl.kt +120 -120
- package/android/src/main/java/com/dynamsoft/reactnativelib/utility/MultiCrossFilterModuleImpl.kt +111 -111
- package/app.plugin.js +21 -21
- package/dynamsoft-capture-vision-react-native.podspec +24 -24
- package/ios/CPP/DSImageData+HostObject.h +18 -18
- package/ios/CPP/DSImageData+HostObject.mm +38 -38
- package/ios/CPP/ImageDataHostObject.cpp +87 -87
- package/ios/CPP/ImageDataHostObject.hpp +35 -35
- package/ios/CPP/MutableRawBuffer.cpp +23 -23
- package/ios/CPP/MutableRawBuffer.hpp +23 -23
- package/ios/CPP/RNDynamsoft+JSI.h +22 -22
- package/ios/CPP/RNDynamsoft+JSI.mm +303 -303
- package/ios/CPP/RNDynamsoft+Json.h +93 -93
- package/ios/CPP/RNDynamsoft+Json.m +733 -733
- package/ios/CPP/YeetJSIUtils.h +56 -56
- package/ios/CPP/YeetJSIUtils.mm +208 -208
- package/ios/RNDynamsoftCameraView.h +31 -31
- package/ios/RNDynamsoftCameraView.m +108 -108
- package/ios/RNDynamsoftCameraViewManager.h +14 -14
- package/ios/RNDynamsoftCameraViewManager.m +195 -195
- package/ios/RNDynamsoftCaptureVisionRouter.h +18 -18
- package/ios/RNDynamsoftCaptureVisionRouter.mm +532 -532
- package/ios/RNDynamsoftImageEditorView.h +17 -17
- package/ios/RNDynamsoftImageEditorView.m +25 -25
- package/ios/RNDynamsoftImageEditorViewManager.h +14 -14
- package/ios/RNDynamsoftImageEditorViewManager.mm +183 -183
- package/ios/RNDynamsoftImageManager.h +14 -14
- package/ios/RNDynamsoftImageManager.mm +369 -369
- package/ios/RNDynamsoftImageSourceAdapter.h +19 -19
- package/ios/RNDynamsoftImageSourceAdapter.mm +255 -255
- package/ios/RNDynamsoftLicense.h +14 -14
- package/ios/RNDynamsoftLicense.m +62 -62
- package/ios/RNDynamsoftMultiCrossFilter.h +14 -14
- package/ios/RNDynamsoftMultiCrossFilter.m +145 -145
- package/ios/RNDynamsoftVersions.h +13 -13
- package/ios/RNDynamsoftVersions.m +27 -27
- package/package.json +48 -48
- package/src/NativeDynamsoftVersionsModule.tsx +20 -20
- package/src/VersionsModule.tsx +7 -7
- package/src/core/CapturedResultBase.tsx +18 -18
- package/src/core/CapturedResultItem.tsx +23 -23
- package/src/core/CoreModule.tsx +9 -9
- package/src/core/DSRect.tsx +29 -29
- package/src/core/EnumCaptureResultItemType.tsx +52 -52
- package/src/core/EnumColourChannelUsageType.tsx +26 -26
- package/src/core/EnumCrossVerificationStatus.tsx +46 -46
- package/src/core/EnumGrayscaleEnhancementMode.tsx +46 -46
- package/src/core/EnumGrayscaleTransformationMode.tsx +35 -35
- package/src/core/EnumImageFileFormat.tsx +6 -6
- package/src/core/EnumPixelFormat.tsx +53 -53
- package/src/core/ImageData.tsx +87 -87
- package/src/core/ImageSourceAdapter.tsx +160 -160
- package/src/core/NativeDynamsoftImageSourceAdapterModule.tsx +29 -29
- package/src/core/Point.tsx +13 -13
- package/src/core/Quadrilateral.tsx +12 -12
- package/src/core/index.tsx +18 -18
- package/src/cvr/CaptureVisionRouter.tsx +683 -683
- package/src/cvr/CaptureVisionRouterModule.tsx +9 -9
- package/src/cvr/CapturedResult.tsx +123 -123
- package/src/cvr/CapturedResultFilter.tsx +13 -13
- package/src/cvr/CapturedResultReceiver.tsx +71 -71
- package/src/cvr/EnumPresetTemplate.tsx +81 -81
- package/src/cvr/NativeDynamsoftCaptureVisionRouterModule.tsx +25 -25
- package/src/cvr/SimplifiedCaptureVisionSettings.tsx +61 -61
- package/src/cvr/index.tsx +11 -11
- package/src/dbr/BarcodeDetails.tsx +51 -51
- package/src/dbr/BarcodeReaderModule.tsx +9 -9
- package/src/dbr/BarcodeResultItem.tsx +65 -65
- package/src/dbr/DecodedBarcodesResult.tsx +14 -14
- package/src/dbr/ECISegment.tsx +23 -23
- package/src/dbr/EnumBarcodeFormat.tsx +112 -112
- package/src/dbr/EnumDeblurMode.tsx +29 -29
- package/src/dbr/EnumLocalizationMode.tsx +27 -27
- package/src/dbr/EnumQRCodeErrorCorrectionLevel.tsx +6 -6
- package/src/dbr/SimplifiedBarcodeReaderSettings.tsx +80 -80
- package/src/dbr/index.tsx +9 -9
- package/src/dce/CameraEnhancer.tsx +254 -254
- package/src/dce/CameraEnhancerModule.tsx +9 -9
- package/src/dce/CameraView.tsx +100 -100
- package/src/dce/DynamsoftCameraViewNativeComponent.ts +96 -96
- package/src/dce/DynamsoftImageEditorViewNativeComponent.ts +9 -9
- package/src/dce/EnumCameraPosition.tsx +25 -25
- package/src/dce/EnumDrawingLayerId.tsx +17 -17
- package/src/dce/EnumEnhancedFeatures.tsx +24 -24
- package/src/dce/EnumFocusMode.tsx +6 -6
- package/src/dce/EnumResolution.tsx +8 -8
- package/src/dce/EnumTorchState.tsx +10 -10
- package/src/dce/FeedBack.tsx +28 -28
- package/src/dce/ImageEditorView.tsx +131 -131
- package/src/dce/NativeDynamsoftCameraViewModule.tsx +47 -47
- package/src/dce/NativeDynamsoftImageEditorViewModule.ts +9 -9
- package/src/dce/index.tsx +13 -13
- package/src/dcp/CodeParserDedicatorModule.tsx +9 -9
- package/src/dcp/CodeParserModule.tsx +9 -9
- package/src/dcp/EnumMappingStatus.tsx +14 -14
- package/src/dcp/EnumValidationStatus.tsx +14 -14
- package/src/dcp/ParsedResult.tsx +14 -14
- package/src/dcp/ParsedResultItem.tsx +50 -50
- package/src/dcp/index.tsx +8 -8
- package/src/ddn/DeskewedImageResultItem.tsx +40 -40
- package/src/ddn/DetectedQuadResultItem.tsx +31 -31
- package/src/ddn/DocumentNormalizerModule.tsx +9 -9
- package/src/ddn/EnhancedImageResultItem.tsx +20 -20
- package/src/ddn/EnumImageColourMode.tsx +14 -14
- package/src/ddn/ProcessedDocumentResult.tsx +27 -27
- package/src/ddn/SimplifiedDocumentNormalizerSettings.tsx +65 -65
- package/src/ddn/index.tsx +11 -11
- package/src/dip/ImageProcessingModule.tsx +9 -9
- package/src/dip/index.tsx +1 -1
- package/src/dlr/CharacterResult.tsx +28 -28
- package/src/dlr/LabelRecognizerModule.tsx +9 -9
- package/src/dlr/RecognizedTextLinesResult.tsx +19 -19
- package/src/dlr/SimplifiedLabelRecognizerSettings.tsx +33 -33
- package/src/dlr/TextLineResultItem.tsx +41 -41
- package/src/dlr/index.tsx +8 -8
- package/src/index.tsx +13 -13
- package/src/license/LicenseManager.tsx +49 -49
- package/src/license/LicenseModule.tsx +9 -9
- package/src/license/NativeDynamsoftLicenseModule.tsx +7 -7
- package/src/license/index.tsx +7 -7
- package/src/utility/CrossVerificationCriteria.tsx +11 -11
- package/src/utility/EnumFilterType.tsx +5 -5
- package/src/utility/ImageManager.tsx +348 -348
- package/src/utility/MultiFrameResultCrossFilter.tsx +183 -183
- package/src/utility/NativeDynamsoftImageManagerModule.tsx +7 -7
- package/src/utility/NativeDynamsoftMultiCrossFilterModule.tsx +18 -18
- package/src/utility/UtilityModule.tsx +9 -9
- package/src/utility/index.tsx +4 -4
- package/android/.gitignore +0 -4
package/ios/RNDynamsoftLicense.m
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#import "RNDynamsoftLicense.h"
|
|
6
|
-
#import <DynamsoftCaptureVisionBundle/DynamsoftCaptureVisionBundle.h>
|
|
7
|
-
|
|
8
|
-
@interface RNDynamsoftLicense () <DSLicenseVerificationListener>
|
|
9
|
-
|
|
10
|
-
@end
|
|
11
|
-
|
|
12
|
-
@implementation RNDynamsoftLicense {
|
|
13
|
-
RCTPromiseResolveBlock licenseResolve;
|
|
14
|
-
RCTPromiseRejectBlock licenseReject;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
RCT_EXPORT_MODULE(DynamsoftLicenseModule)
|
|
18
|
-
|
|
19
|
-
- (instancetype)init
|
|
20
|
-
{
|
|
21
|
-
self = [super init];
|
|
22
|
-
if (self) {
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return self;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
+ (BOOL)requiresMainQueueSetup {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
RCT_EXPORT_METHOD(initLicense:(NSString *)license
|
|
33
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
34
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
35
|
-
{
|
|
36
|
-
licenseResolve = resolve;
|
|
37
|
-
licenseReject = reject;
|
|
38
|
-
[DSClientRemark setEdition:@"react-native"];
|
|
39
|
-
[DSLicenseManager initLicense:license verificationDelegate:self];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
- (void)onLicenseVerified:(BOOL)isSuccess error:(nullable NSError *)error {
|
|
43
|
-
if (isSuccess) {
|
|
44
|
-
licenseResolve(@(YES));
|
|
45
|
-
} else {
|
|
46
|
-
NSString *code = [NSString stringWithFormat:@"%ld",(long)error.code];
|
|
47
|
-
licenseReject(code, error.localizedDescription, error);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
RCT_EXPORT_METHOD(setDeviceFriendlyName:(NSString *)name) {
|
|
52
|
-
[DSLicenseManager setDeviceFriendlyName:name];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
RCT_EXPORT_METHOD(getDeviceUUID:(RCTPromiseResolveBlock)resolve
|
|
56
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
57
|
-
{
|
|
58
|
-
NSString *uuid = [DSLicenseManager getDeviceUUID];
|
|
59
|
-
resolve(uuid);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@end
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#import "RNDynamsoftLicense.h"
|
|
6
|
+
#import <DynamsoftCaptureVisionBundle/DynamsoftCaptureVisionBundle.h>
|
|
7
|
+
|
|
8
|
+
@interface RNDynamsoftLicense () <DSLicenseVerificationListener>
|
|
9
|
+
|
|
10
|
+
@end
|
|
11
|
+
|
|
12
|
+
@implementation RNDynamsoftLicense {
|
|
13
|
+
RCTPromiseResolveBlock licenseResolve;
|
|
14
|
+
RCTPromiseRejectBlock licenseReject;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
RCT_EXPORT_MODULE(DynamsoftLicenseModule)
|
|
18
|
+
|
|
19
|
+
- (instancetype)init
|
|
20
|
+
{
|
|
21
|
+
self = [super init];
|
|
22
|
+
if (self) {
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
return self;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
+ (BOOL)requiresMainQueueSetup {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
RCT_EXPORT_METHOD(initLicense:(NSString *)license
|
|
33
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
34
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
35
|
+
{
|
|
36
|
+
licenseResolve = resolve;
|
|
37
|
+
licenseReject = reject;
|
|
38
|
+
[DSClientRemark setEdition:@"react-native"];
|
|
39
|
+
[DSLicenseManager initLicense:license verificationDelegate:self];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
- (void)onLicenseVerified:(BOOL)isSuccess error:(nullable NSError *)error {
|
|
43
|
+
if (isSuccess) {
|
|
44
|
+
licenseResolve(@(YES));
|
|
45
|
+
} else {
|
|
46
|
+
NSString *code = [NSString stringWithFormat:@"%ld",(long)error.code];
|
|
47
|
+
licenseReject(code, error.localizedDescription, error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
RCT_EXPORT_METHOD(setDeviceFriendlyName:(NSString *)name) {
|
|
52
|
+
[DSLicenseManager setDeviceFriendlyName:name];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
RCT_EXPORT_METHOD(getDeviceUUID:(RCTPromiseResolveBlock)resolve
|
|
56
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
57
|
+
{
|
|
58
|
+
NSString *uuid = [DSLicenseManager getDeviceUUID];
|
|
59
|
+
resolve(uuid);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@end
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#import <React/RCTBridgeModule.h>
|
|
6
|
-
#import <React/RCTEventEmitter.h>
|
|
7
|
-
|
|
8
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
9
|
-
|
|
10
|
-
@interface RNDynamsoftMultiCrossFilter : RCTEventEmitter <RCTBridgeModule>
|
|
11
|
-
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#import <React/RCTBridgeModule.h>
|
|
6
|
+
#import <React/RCTEventEmitter.h>
|
|
7
|
+
|
|
8
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
9
|
+
|
|
10
|
+
@interface RNDynamsoftMultiCrossFilter : RCTEventEmitter <RCTBridgeModule>
|
|
11
|
+
|
|
12
|
+
@end
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#import "RNDynamsoftMultiCrossFilter.h"
|
|
6
|
-
#import <DynamsoftCaptureVisionBundle/DynamsoftCaptureVisionBundle.h>
|
|
7
|
-
#import "RNDynamsoftCaptureVisionRouter.h"
|
|
8
|
-
|
|
9
|
-
@implementation DSCrossVerificationCriteria (filter)
|
|
10
|
-
|
|
11
|
-
+ (instancetype)createFromJson:(NSDictionary *)dic {
|
|
12
|
-
DSCrossVerificationCriteria *criteria = [[DSCrossVerificationCriteria alloc] init];
|
|
13
|
-
NSNumber *frameWindow = dic[@"frameWindow"];
|
|
14
|
-
NSNumber *minConsistentFrames = dic[@"minConsistentFrames"];
|
|
15
|
-
if (frameWindow) {
|
|
16
|
-
criteria.frameWindow = frameWindow.integerValue;
|
|
17
|
-
}
|
|
18
|
-
if (minConsistentFrames) {
|
|
19
|
-
criteria.minConsistentFrames = minConsistentFrames.integerValue;
|
|
20
|
-
}
|
|
21
|
-
return criteria;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
- (NSDictionary *)toJson {
|
|
25
|
-
return @{ @"frameWindow" : @(self.frameWindow), @"minConsistentFrames" : @(self.minConsistentFrames) };
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@end
|
|
29
|
-
|
|
30
|
-
@implementation RNDynamsoftMultiCrossFilter
|
|
31
|
-
|
|
32
|
-
RCT_EXPORT_MODULE(DynamsoftMultiCrossFilterModule)
|
|
33
|
-
|
|
34
|
-
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(createInstance) {
|
|
35
|
-
DSMultiFrameResultCrossFilter *filter = [[DSMultiFrameResultCrossFilter alloc] init];
|
|
36
|
-
NSString *key = [NSNumber numberWithUnsignedInteger:filter.hash].stringValue;
|
|
37
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
38
|
-
[router.filterDictionary setValue:filter forKey:key];
|
|
39
|
-
return key;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
RCT_EXPORT_METHOD(destroy:(NSString *)key) {
|
|
43
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
44
|
-
[router.filterDictionary removeObjectForKey:key];
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
RCT_EXPORT_METHOD(enableResultCrossVerification:(NSString *)key type:(NSInteger)type isEnabled:(BOOL)isEnabled) {
|
|
48
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
49
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
50
|
-
[filter enableResultCrossVerification:type isEnabled:isEnabled];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
RCT_EXPORT_METHOD(isResultCrossVerificationEnabled:(NSString *)key
|
|
54
|
-
type:(NSInteger)type
|
|
55
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
56
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
57
|
-
{
|
|
58
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
59
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
60
|
-
resolve(@([filter isResultCrossVerificationEnabled:type]));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
RCT_EXPORT_METHOD(enableResultDeduplication:(NSString *)key type:(NSInteger)type isEnabled:(BOOL)isEnabled) {
|
|
64
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
65
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
66
|
-
[filter enableResultDeduplication:type isEnabled:isEnabled];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
RCT_EXPORT_METHOD(isResultDeduplicationEnabled:(NSString *)key
|
|
70
|
-
type:(NSInteger)type
|
|
71
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
72
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
73
|
-
{
|
|
74
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
75
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
76
|
-
resolve(@([filter isResultDeduplicationEnabled:type]));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
RCT_EXPORT_METHOD(setDuplicateForgetTime:(NSString *)key type:(NSInteger)type time:(NSInteger)time) {
|
|
80
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
81
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
82
|
-
[filter setDuplicateForgetTime:type duplicateForgetTime:time];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
RCT_EXPORT_METHOD(getDuplicateForgetTime:(NSString *)key
|
|
86
|
-
type:(NSInteger)type
|
|
87
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
88
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
89
|
-
{
|
|
90
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
91
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
92
|
-
resolve(@([filter getDuplicateForgetTime:type]));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
RCT_EXPORT_METHOD(enableLatestOverlapping:(NSString *)key type:(NSInteger)type isEnabled:(BOOL)isEnabled) {
|
|
96
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
97
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
98
|
-
[filter enableLatestOverlapping:type isEnabled:isEnabled];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
RCT_EXPORT_METHOD(isLatestOverlappingEnabled:(NSString *)key
|
|
102
|
-
type:(NSInteger)type
|
|
103
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
104
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
105
|
-
{
|
|
106
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
107
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
108
|
-
resolve(@([filter isLatestOverlappingEnabled:type]));
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
RCT_EXPORT_METHOD(setMaxOverlappingFrames:(NSString *)key type:(NSInteger)type maxOverlappingFrames:(NSInteger)maxOverlappingFrames) {
|
|
112
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
113
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
114
|
-
[filter setMaxOverlappingFrames:type maxOverlappingFrames:maxOverlappingFrames];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
RCT_EXPORT_METHOD(getMaxOverlappingFrames:(NSString *)key
|
|
118
|
-
type:(NSInteger)type
|
|
119
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
120
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
121
|
-
{
|
|
122
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
123
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
124
|
-
resolve(@([filter getMaxOverlappingFrames:type]));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
RCT_EXPORT_METHOD(setResultCrossVerificationCriteria:(NSString *)key type:(NSInteger)type criteria:(NSDictionary *)criteria) {
|
|
128
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
129
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
130
|
-
DSCrossVerificationCriteria *c = [DSCrossVerificationCriteria createFromJson:criteria];
|
|
131
|
-
[filter setResultCrossVerificationCriteria:c resultItemTypes:type];
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
RCT_EXPORT_METHOD(getResultCrossVerificationCriteria:(NSString *)key
|
|
135
|
-
type:(NSInteger)type
|
|
136
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
137
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
138
|
-
{
|
|
139
|
-
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
140
|
-
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
141
|
-
DSCrossVerificationCriteria *criteria = [filter getResultCrossVerificationCriteria:type];
|
|
142
|
-
resolve([criteria toJson]);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@end
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#import "RNDynamsoftMultiCrossFilter.h"
|
|
6
|
+
#import <DynamsoftCaptureVisionBundle/DynamsoftCaptureVisionBundle.h>
|
|
7
|
+
#import "RNDynamsoftCaptureVisionRouter.h"
|
|
8
|
+
|
|
9
|
+
@implementation DSCrossVerificationCriteria (filter)
|
|
10
|
+
|
|
11
|
+
+ (instancetype)createFromJson:(NSDictionary *)dic {
|
|
12
|
+
DSCrossVerificationCriteria *criteria = [[DSCrossVerificationCriteria alloc] init];
|
|
13
|
+
NSNumber *frameWindow = dic[@"frameWindow"];
|
|
14
|
+
NSNumber *minConsistentFrames = dic[@"minConsistentFrames"];
|
|
15
|
+
if (frameWindow) {
|
|
16
|
+
criteria.frameWindow = frameWindow.integerValue;
|
|
17
|
+
}
|
|
18
|
+
if (minConsistentFrames) {
|
|
19
|
+
criteria.minConsistentFrames = minConsistentFrames.integerValue;
|
|
20
|
+
}
|
|
21
|
+
return criteria;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
- (NSDictionary *)toJson {
|
|
25
|
+
return @{ @"frameWindow" : @(self.frameWindow), @"minConsistentFrames" : @(self.minConsistentFrames) };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
@implementation RNDynamsoftMultiCrossFilter
|
|
31
|
+
|
|
32
|
+
RCT_EXPORT_MODULE(DynamsoftMultiCrossFilterModule)
|
|
33
|
+
|
|
34
|
+
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(createInstance) {
|
|
35
|
+
DSMultiFrameResultCrossFilter *filter = [[DSMultiFrameResultCrossFilter alloc] init];
|
|
36
|
+
NSString *key = [NSNumber numberWithUnsignedInteger:filter.hash].stringValue;
|
|
37
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
38
|
+
[router.filterDictionary setValue:filter forKey:key];
|
|
39
|
+
return key;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
RCT_EXPORT_METHOD(destroy:(NSString *)key) {
|
|
43
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
44
|
+
[router.filterDictionary removeObjectForKey:key];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
RCT_EXPORT_METHOD(enableResultCrossVerification:(NSString *)key type:(NSInteger)type isEnabled:(BOOL)isEnabled) {
|
|
48
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
49
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
50
|
+
[filter enableResultCrossVerification:type isEnabled:isEnabled];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
RCT_EXPORT_METHOD(isResultCrossVerificationEnabled:(NSString *)key
|
|
54
|
+
type:(NSInteger)type
|
|
55
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
56
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
57
|
+
{
|
|
58
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
59
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
60
|
+
resolve(@([filter isResultCrossVerificationEnabled:type]));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
RCT_EXPORT_METHOD(enableResultDeduplication:(NSString *)key type:(NSInteger)type isEnabled:(BOOL)isEnabled) {
|
|
64
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
65
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
66
|
+
[filter enableResultDeduplication:type isEnabled:isEnabled];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
RCT_EXPORT_METHOD(isResultDeduplicationEnabled:(NSString *)key
|
|
70
|
+
type:(NSInteger)type
|
|
71
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
72
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
73
|
+
{
|
|
74
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
75
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
76
|
+
resolve(@([filter isResultDeduplicationEnabled:type]));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
RCT_EXPORT_METHOD(setDuplicateForgetTime:(NSString *)key type:(NSInteger)type time:(NSInteger)time) {
|
|
80
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
81
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
82
|
+
[filter setDuplicateForgetTime:type duplicateForgetTime:time];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
RCT_EXPORT_METHOD(getDuplicateForgetTime:(NSString *)key
|
|
86
|
+
type:(NSInteger)type
|
|
87
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
88
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
89
|
+
{
|
|
90
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
91
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
92
|
+
resolve(@([filter getDuplicateForgetTime:type]));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
RCT_EXPORT_METHOD(enableLatestOverlapping:(NSString *)key type:(NSInteger)type isEnabled:(BOOL)isEnabled) {
|
|
96
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
97
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
98
|
+
[filter enableLatestOverlapping:type isEnabled:isEnabled];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
RCT_EXPORT_METHOD(isLatestOverlappingEnabled:(NSString *)key
|
|
102
|
+
type:(NSInteger)type
|
|
103
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
104
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
105
|
+
{
|
|
106
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
107
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
108
|
+
resolve(@([filter isLatestOverlappingEnabled:type]));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
RCT_EXPORT_METHOD(setMaxOverlappingFrames:(NSString *)key type:(NSInteger)type maxOverlappingFrames:(NSInteger)maxOverlappingFrames) {
|
|
112
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
113
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
114
|
+
[filter setMaxOverlappingFrames:type maxOverlappingFrames:maxOverlappingFrames];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
RCT_EXPORT_METHOD(getMaxOverlappingFrames:(NSString *)key
|
|
118
|
+
type:(NSInteger)type
|
|
119
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
120
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
121
|
+
{
|
|
122
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
123
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
124
|
+
resolve(@([filter getMaxOverlappingFrames:type]));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
RCT_EXPORT_METHOD(setResultCrossVerificationCriteria:(NSString *)key type:(NSInteger)type criteria:(NSDictionary *)criteria) {
|
|
128
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
129
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
130
|
+
DSCrossVerificationCriteria *c = [DSCrossVerificationCriteria createFromJson:criteria];
|
|
131
|
+
[filter setResultCrossVerificationCriteria:c resultItemTypes:type];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
RCT_EXPORT_METHOD(getResultCrossVerificationCriteria:(NSString *)key
|
|
135
|
+
type:(NSInteger)type
|
|
136
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
137
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
138
|
+
{
|
|
139
|
+
RNDynamsoftCaptureVisionRouter *router = [self.bridge moduleForClass:[RNDynamsoftCaptureVisionRouter class]];
|
|
140
|
+
DSMultiFrameResultCrossFilter *filter = [router.filterDictionary objectForKey:key];
|
|
141
|
+
DSCrossVerificationCriteria *criteria = [filter getResultCrossVerificationCriteria:type];
|
|
142
|
+
resolve([criteria toJson]);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@end
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#import <React/RCTBridgeModule.h>
|
|
6
|
-
|
|
7
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
8
|
-
|
|
9
|
-
@interface RNDynamsoftVersions : NSObject <RCTBridgeModule>
|
|
10
|
-
|
|
11
|
-
@end
|
|
12
|
-
|
|
13
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#import <React/RCTBridgeModule.h>
|
|
6
|
+
|
|
7
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
8
|
+
|
|
9
|
+
@interface RNDynamsoftVersions : NSObject <RCTBridgeModule>
|
|
10
|
+
|
|
11
|
+
@end
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#import "RNDynamsoftVersions.h"
|
|
6
|
-
#import <DynamsoftCaptureVisionBundle/DynamsoftCaptureVisionBundle.h>
|
|
7
|
-
|
|
8
|
-
@implementation RNDynamsoftVersions
|
|
9
|
-
|
|
10
|
-
RCT_EXPORT_MODULE(DynamsoftVersionsModule)
|
|
11
|
-
|
|
12
|
-
- (NSDictionary *)constantsToExport {
|
|
13
|
-
return @{ @"versions": @{ @"core":[DSCoreModule getVersion],
|
|
14
|
-
@"cvr":[DSCaptureVisionRouterModule getVersion],
|
|
15
|
-
@"license":[DSLicenseModule getVersion],
|
|
16
|
-
@"dce":[DSCameraEnhancerModule getVersion],
|
|
17
|
-
@"dbr":[DSBarcodeReaderModule getVersion],
|
|
18
|
-
@"dlr":[DSLabelRecognizerModule getVersion],
|
|
19
|
-
@"ddn":[DSDocumentNormalizerModule getVersion],
|
|
20
|
-
@"dnn":[DSNeuralNetworkModule getVersion],
|
|
21
|
-
@"utility":[DSUtilityModule getVersion],
|
|
22
|
-
@"dcp":[DSCodeParserModule getVersion],
|
|
23
|
-
@"dcpd":[DSCodeParserDedicatorModule getVersion],
|
|
24
|
-
@"dip":[DSImageProcessingModule getVersion] } };
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@end
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#import "RNDynamsoftVersions.h"
|
|
6
|
+
#import <DynamsoftCaptureVisionBundle/DynamsoftCaptureVisionBundle.h>
|
|
7
|
+
|
|
8
|
+
@implementation RNDynamsoftVersions
|
|
9
|
+
|
|
10
|
+
RCT_EXPORT_MODULE(DynamsoftVersionsModule)
|
|
11
|
+
|
|
12
|
+
- (NSDictionary *)constantsToExport {
|
|
13
|
+
return @{ @"versions": @{ @"core":[DSCoreModule getVersion],
|
|
14
|
+
@"cvr":[DSCaptureVisionRouterModule getVersion],
|
|
15
|
+
@"license":[DSLicenseModule getVersion],
|
|
16
|
+
@"dce":[DSCameraEnhancerModule getVersion],
|
|
17
|
+
@"dbr":[DSBarcodeReaderModule getVersion],
|
|
18
|
+
@"dlr":[DSLabelRecognizerModule getVersion],
|
|
19
|
+
@"ddn":[DSDocumentNormalizerModule getVersion],
|
|
20
|
+
@"dnn":[DSNeuralNetworkModule getVersion],
|
|
21
|
+
@"utility":[DSUtilityModule getVersion],
|
|
22
|
+
@"dcp":[DSCodeParserModule getVersion],
|
|
23
|
+
@"dcpd":[DSCodeParserDedicatorModule getVersion],
|
|
24
|
+
@"dip":[DSImageProcessingModule getVersion] } };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@end
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dynamsoft-capture-vision-react-native",
|
|
3
|
-
"title": "Dynamsoft Capture Vision React Native",
|
|
4
|
-
"version": "3.4.
|
|
5
|
-
"description": "The Dynamsoft Capture Vision React Native SDK provides a wrapper for building barcode scanning, document scanning and MRZ scanning applications with React Native.",
|
|
6
|
-
"homepage": "https://github.com/Dynamsoft/capture-vision-react-native-samples",
|
|
7
|
-
"main": "src/index.tsx",
|
|
8
|
-
"files": [
|
|
9
|
-
"README.md",
|
|
10
|
-
"android",
|
|
11
|
-
"src",
|
|
12
|
-
"ios",
|
|
13
|
-
"*.podspec",
|
|
14
|
-
"!ios/build",
|
|
15
|
-
"!android/build",
|
|
16
|
-
"!android/gradle",
|
|
17
|
-
"!android/gradlew",
|
|
18
|
-
"!android/gradlew.bat",
|
|
19
|
-
"!android/local.properties",
|
|
20
|
-
"!node_modules",
|
|
21
|
-
"app.plugin.js"
|
|
22
|
-
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"test": "jest",
|
|
25
|
-
"typecheck": "tsc"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"react-native",
|
|
29
|
-
"barcode",
|
|
30
|
-
"PDF417",
|
|
31
|
-
"QRCode",
|
|
32
|
-
"DataMatrix",
|
|
33
|
-
"Linear barcode",
|
|
34
|
-
"1D barcode"
|
|
35
|
-
],
|
|
36
|
-
"author": {
|
|
37
|
-
"name": "Dynamsoft",
|
|
38
|
-
"url": "https://www.dynamsoft.com",
|
|
39
|
-
"email": "support@dynamsoft.com"
|
|
40
|
-
},
|
|
41
|
-
"license": "Apache-2.0",
|
|
42
|
-
"licenseFilename": "LICENSE",
|
|
43
|
-
"readmeFilename": "README.md",
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"react": ">=16.8.1",
|
|
46
|
-
"react-native": ">=0.71.0-rc.0 <1.0.x"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dynamsoft-capture-vision-react-native",
|
|
3
|
+
"title": "Dynamsoft Capture Vision React Native",
|
|
4
|
+
"version": "3.4.3010",
|
|
5
|
+
"description": "The Dynamsoft Capture Vision React Native SDK provides a wrapper for building barcode scanning, document scanning and MRZ scanning applications with React Native.",
|
|
6
|
+
"homepage": "https://github.com/Dynamsoft/capture-vision-react-native-samples",
|
|
7
|
+
"main": "src/index.tsx",
|
|
8
|
+
"files": [
|
|
9
|
+
"README.md",
|
|
10
|
+
"android",
|
|
11
|
+
"src",
|
|
12
|
+
"ios",
|
|
13
|
+
"*.podspec",
|
|
14
|
+
"!ios/build",
|
|
15
|
+
"!android/build",
|
|
16
|
+
"!android/gradle",
|
|
17
|
+
"!android/gradlew",
|
|
18
|
+
"!android/gradlew.bat",
|
|
19
|
+
"!android/local.properties",
|
|
20
|
+
"!node_modules",
|
|
21
|
+
"app.plugin.js"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "jest",
|
|
25
|
+
"typecheck": "tsc"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"react-native",
|
|
29
|
+
"barcode",
|
|
30
|
+
"PDF417",
|
|
31
|
+
"QRCode",
|
|
32
|
+
"DataMatrix",
|
|
33
|
+
"Linear barcode",
|
|
34
|
+
"1D barcode"
|
|
35
|
+
],
|
|
36
|
+
"author": {
|
|
37
|
+
"name": "Dynamsoft",
|
|
38
|
+
"url": "https://www.dynamsoft.com",
|
|
39
|
+
"email": "support@dynamsoft.com"
|
|
40
|
+
},
|
|
41
|
+
"license": "Apache-2.0",
|
|
42
|
+
"licenseFilename": "LICENSE",
|
|
43
|
+
"readmeFilename": "README.md",
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": ">=16.8.1",
|
|
46
|
+
"react-native": ">=0.71.0-rc.0 <1.0.x"
|
|
47
|
+
}
|
|
48
|
+
}
|