barkoder-nativescript 1.5.6 → 1.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/barkoder-nativescript.android.ts +93 -4
- package/barkoder-nativescript.common.ts +14 -3
- package/barkoder-nativescript.ios.ts +86 -2
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/android/barkoder_nativescript.aar +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +42 -10
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +88 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +88 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrz.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrzfast.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +42 -10
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +17 -17
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +88 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +88 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrz.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrzfast.traineddata +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +36 -5
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +904 -126
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +24 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +24 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.mp3 +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +123 -15
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +72 -10
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +904 -126
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +24 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +24 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +904 -126
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +24 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +24 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +27 -27
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.mp3 +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +123 -15
|
@@ -423,15 +423,22 @@ export class BarkoderViewAndroid extends View {
|
|
|
423
423
|
setBarkoderResolution(
|
|
424
424
|
barkoderResolution: BarkoderConstants.BarkoderResolution
|
|
425
425
|
): void {
|
|
426
|
-
if (barkoderResolution == BarkoderConstants.BarkoderResolution.
|
|
426
|
+
if (barkoderResolution == BarkoderConstants.BarkoderResolution.HD) {
|
|
427
427
|
this.bkdView.config.setBarkoderResolution(
|
|
428
|
-
com.barkoder.enums.BarkoderResolution.
|
|
428
|
+
com.barkoder.enums.BarkoderResolution.HD
|
|
429
429
|
);
|
|
430
430
|
} else if (
|
|
431
|
-
barkoderResolution == BarkoderConstants.BarkoderResolution.
|
|
431
|
+
barkoderResolution == BarkoderConstants.BarkoderResolution.FHD
|
|
432
432
|
) {
|
|
433
433
|
this.bkdView.config.setBarkoderResolution(
|
|
434
|
-
com.barkoder.enums.BarkoderResolution.
|
|
434
|
+
com.barkoder.enums.BarkoderResolution.FHD
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
else if (
|
|
438
|
+
barkoderResolution == BarkoderConstants.BarkoderResolution.UHD
|
|
439
|
+
) {
|
|
440
|
+
this.bkdView.config.setBarkoderResolution(
|
|
441
|
+
com.barkoder.enums.BarkoderResolution.UHD
|
|
435
442
|
);
|
|
436
443
|
}
|
|
437
444
|
}
|
|
@@ -662,6 +669,9 @@ export class BarkoderViewAndroid extends View {
|
|
|
662
669
|
this.bkdView.config.getDecoderConfig().COOP25.enabled = false;
|
|
663
670
|
this.bkdView.config.getDecoderConfig().Dotcode.enabled = false;
|
|
664
671
|
this.bkdView.config.getDecoderConfig().IDDocument.enabled = false;
|
|
672
|
+
this.bkdView.config.getDecoderConfig().Databar14.enabled = false;
|
|
673
|
+
this.bkdView.config.getDecoderConfig().DatabarLimited.enabled = false;
|
|
674
|
+
this.bkdView.config.getDecoderConfig().DatabarExpanded.enabled = false;
|
|
665
675
|
decoders.forEach((dt: BarkoderConstants.DecoderType) => {
|
|
666
676
|
switch (dt) {
|
|
667
677
|
case BarkoderConstants.DecoderType.Aztec:
|
|
@@ -745,6 +755,18 @@ export class BarkoderViewAndroid extends View {
|
|
|
745
755
|
case BarkoderConstants.DecoderType.IDDocument:
|
|
746
756
|
this.bkdView.config.getDecoderConfig().IDDocument.enabled = true;
|
|
747
757
|
break;
|
|
758
|
+
case BarkoderConstants.DecoderType.Codabar:
|
|
759
|
+
this.bkdView.config.getDecoderConfig().Codabar.enabled = true;
|
|
760
|
+
break;
|
|
761
|
+
case BarkoderConstants.DecoderType.Databar14:
|
|
762
|
+
this.bkdView.config.getDecoderConfig().Databar14.enabled = true;
|
|
763
|
+
break;
|
|
764
|
+
case BarkoderConstants.DecoderType.DatabarExpanded:
|
|
765
|
+
this.bkdView.config.getDecoderConfig().DatabarExpanded.enabled = true;
|
|
766
|
+
break;
|
|
767
|
+
case BarkoderConstants.DecoderType.DatabarLimited:
|
|
768
|
+
this.bkdView.config.getDecoderConfig().DatabarLimited.enabled = true;
|
|
769
|
+
break;
|
|
748
770
|
default:
|
|
749
771
|
break;
|
|
750
772
|
}
|
|
@@ -1144,6 +1166,73 @@ export class BarkoderViewAndroid extends View {
|
|
|
1144
1166
|
this.bkdView.config.getDecoderConfig().enableVINRestrictions = vinRestrictionsEnabled;
|
|
1145
1167
|
}
|
|
1146
1168
|
|
|
1169
|
+
isEnabledComposite(): any {
|
|
1170
|
+
return this.bkdView.config.getDecoderConfig().enableComposite;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Sets whether Vehicle Identification Number (VIN) restrictions are enabled
|
|
1175
|
+
*/
|
|
1176
|
+
setEnabledComposite(enableComposited: number): void {
|
|
1177
|
+
this.bkdView.config.getDecoderConfig().enableComposite = enableComposited;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
setScanningIndicatorColor(scanningIndicatorColor : string) : void {
|
|
1181
|
+
const scanningIndicatorColorHex = this.hexToAndroidColor(scanningIndicatorColor);
|
|
1182
|
+
this.bkdView.config.setScanningIndicatorColor(scanningIndicatorColorHex);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
getScanningIndicatorColorHex() : any {
|
|
1186
|
+
return this.bkdView.config.getScanningIndicatorColor();
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
setScanningIndicatorWidth(scanningIndicatorWidth : number) : void {
|
|
1190
|
+
this.bkdView.config.setScanningIndicatorWidth(scanningIndicatorWidth);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
getScanningIndicatorWidth() : any {
|
|
1194
|
+
return this.bkdView.config.getScanningIndicatorWidth();
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
setScanningIndicatorAnimation(indicatorMode : number): void {
|
|
1198
|
+
this.bkdView.config.setScanningIndicatorAnimation(indicatorMode);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
getScanningIndicatorAnimation() : any {
|
|
1202
|
+
return this.bkdView.config.getScanningIndicatorAnimation();
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
setScanningIndicatorAlwaysVisible(enabled: boolean) : void {
|
|
1206
|
+
this.bkdView.config.setScanningIndicatorAlwaysVisible(enabled);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
isScanningIndicatorAlwaysVisible() : any {
|
|
1210
|
+
return this.bkdView.config.isScanningIndicatorAlwaysVisible();
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
setUPCEexpandToUPCA(enabled: boolean) : void {
|
|
1214
|
+
this.bkdView.config.getDecoderConfig().UpcE.expandToUPCA = enabled;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
setUPCE1expandToUPCA(enabled: boolean): void {
|
|
1218
|
+
this.bkdView.config.getDecoderConfig().UpcE1.expandToUPCA = enabled;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
setCustomOption(string : string, mode: number): void {
|
|
1222
|
+
com.barkoder.Barkoder.SetCustomOption(this.bkdView.config.getDecoderConfig(), string, mode);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
setDynamicExposure(mode : number) : void {
|
|
1226
|
+
this.bkdView.setDynamicExposure(mode);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
setCentricFocusAndExposure(enabled: boolean): void {
|
|
1230
|
+
this.bkdView.setCentricFocusAndExposure(enabled);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1147
1236
|
setLicenseKey(licenseKey: string): void {
|
|
1148
1237
|
this.bkdView.config = new com.barkoder.BarkoderConfig(
|
|
1149
1238
|
context,
|
|
@@ -49,7 +49,10 @@ export enum DecoderType {
|
|
|
49
49
|
Code32 = 25,
|
|
50
50
|
Telepen = 26,
|
|
51
51
|
Dotcode = 27,
|
|
52
|
-
IDDocument = 28
|
|
52
|
+
IDDocument = 28,
|
|
53
|
+
Databar14 = 29,
|
|
54
|
+
DatabarLimited = 30,
|
|
55
|
+
DatabarExpanded = 31
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
export enum FormattingType {
|
|
@@ -66,8 +69,10 @@ export enum DecodingSpeed {
|
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
export enum BarkoderResolution {
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
HD = 'HD',
|
|
73
|
+
FHD = 'Full HD',
|
|
74
|
+
UHD = 'Ultra HD'
|
|
75
|
+
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
export enum MsiChecksumType {
|
|
@@ -183,6 +188,9 @@ export class DekoderConfig {
|
|
|
183
188
|
telepen?: BarcodeConfig;
|
|
184
189
|
dotcode?: BarcodeConfig;
|
|
185
190
|
idDocument?: BarcodeConfig;
|
|
191
|
+
databar14?: BarcodeConfig;
|
|
192
|
+
databarExpanded?: BarcodeConfig;
|
|
193
|
+
databarLimited?: BarcodeConfig;
|
|
186
194
|
general?: GeneralSettings;
|
|
187
195
|
|
|
188
196
|
constructor(config: Partial<DekoderConfig>) {
|
|
@@ -220,6 +228,9 @@ export class DekoderConfig {
|
|
|
220
228
|
'Telepen': this.telepen?.toMap(),
|
|
221
229
|
'Dotcode': this.dotcode?.toMap(),
|
|
222
230
|
'IDDocument': this.dotcode?.toMap(),
|
|
231
|
+
'Databar 14': this.databar14?.toMap(),
|
|
232
|
+
'Databar Expanded': this.databarExpanded?.toMap(),
|
|
233
|
+
'Databar Limited': this.databarLimited?.toMap(),
|
|
223
234
|
'general': this.general?.toMap()
|
|
224
235
|
}
|
|
225
236
|
|
|
@@ -396,13 +396,18 @@ export class BarkoderViewIOS extends View {
|
|
|
396
396
|
setBarkoderResolution(
|
|
397
397
|
barkoderResolution: BarkoderConstants.BarkoderResolution
|
|
398
398
|
): void {
|
|
399
|
-
if (barkoderResolution === BarkoderConstants.BarkoderResolution.
|
|
399
|
+
if (barkoderResolution === BarkoderConstants.BarkoderResolution.HD) {
|
|
400
400
|
this.bkdView.config.barkoderResolution = 0;
|
|
401
401
|
} else if (
|
|
402
|
-
barkoderResolution === BarkoderConstants.BarkoderResolution.
|
|
402
|
+
barkoderResolution === BarkoderConstants.BarkoderResolution.FHD
|
|
403
403
|
) {
|
|
404
404
|
this.bkdView.config.barkoderResolution = 1;
|
|
405
405
|
}
|
|
406
|
+
else if (
|
|
407
|
+
barkoderResolution === BarkoderConstants.BarkoderResolution.UHD
|
|
408
|
+
) {
|
|
409
|
+
this.bkdView.config.barkoderResolution = 2;
|
|
410
|
+
}
|
|
406
411
|
}
|
|
407
412
|
|
|
408
413
|
/**
|
|
@@ -611,6 +616,9 @@ export class BarkoderViewIOS extends View {
|
|
|
611
616
|
this.bkdView.config.decoderConfig.dotcode.enabled = false;
|
|
612
617
|
this.bkdView.config.decoderConfig.code32.enabled = false;
|
|
613
618
|
this.bkdView.config.decoderConfig.idDocument.enabled = false;
|
|
619
|
+
this.bkdView.config.decoderConfig.databar14.enabled = false;
|
|
620
|
+
this.bkdView.config.decoderConfig.databarLimited.enabled = false;
|
|
621
|
+
this.bkdView.config.decoderConfig.databarExpanded.enabled = false;
|
|
614
622
|
decoders.forEach((dt: BarkoderConstants.DecoderType) => {
|
|
615
623
|
switch (dt) {
|
|
616
624
|
case BarkoderConstants.DecoderType.Aztec:
|
|
@@ -694,6 +702,18 @@ export class BarkoderViewIOS extends View {
|
|
|
694
702
|
case BarkoderConstants.DecoderType.IDDocument:
|
|
695
703
|
this.bkdView.config.decoderConfig.idDocument.enabled = true;
|
|
696
704
|
break;
|
|
705
|
+
case BarkoderConstants.DecoderType.Codabar:
|
|
706
|
+
this.bkdView.config.decoderConfig.codabar.enabled = true;
|
|
707
|
+
break;
|
|
708
|
+
case BarkoderConstants.DecoderType.Databar14:
|
|
709
|
+
this.bkdView.config.decoderConfig.databar14.enabled = true;
|
|
710
|
+
break;
|
|
711
|
+
case BarkoderConstants.DecoderType.DatabarExpanded:
|
|
712
|
+
this.bkdView.config.decoderConfig.databarExpanded.enabled = true;
|
|
713
|
+
break;
|
|
714
|
+
case BarkoderConstants.DecoderType.DatabarLimited:
|
|
715
|
+
this.bkdView.config.decoderConfig.databarLimited.enabled = true;
|
|
716
|
+
break;
|
|
697
717
|
default:
|
|
698
718
|
break;
|
|
699
719
|
}
|
|
@@ -1151,6 +1171,62 @@ export class BarkoderViewIOS extends View {
|
|
|
1151
1171
|
this.bkdView.config.decoderConfig.enableVINRestrictions = vinRestrictionsEnabled;
|
|
1152
1172
|
}
|
|
1153
1173
|
|
|
1174
|
+
isEnabledComposite(): any {
|
|
1175
|
+
return this.bkdView.config.decoderConfig.enableComposite;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Sets whether Vehicle Identification Number (VIN) restrictions are enabled
|
|
1180
|
+
*/
|
|
1181
|
+
setEnabledComposite(enableComposited: number): void {
|
|
1182
|
+
this.bkdView.config.decoderConfig.enableComposite = enableComposited;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
setScanningIndicatorColor(scanningIndicatorColor: string): void {
|
|
1186
|
+
const uiColor = this.hexToUIColor(scanningIndicatorColor);
|
|
1187
|
+
this.bkdView.config.scanningIndicatorColor = uiColor;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
getScanningIndicatorColorHex(): any {
|
|
1191
|
+
return this.bkdView.config.scanningIndicatorColor
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
setScanningIndicatorWidth(scanningIndicatorWidth: number): void {
|
|
1195
|
+
this.bkdView.config.scanningIndicatorWidth = scanningIndicatorWidth;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
getScanningIndicatorWidth(): any {
|
|
1199
|
+
return this.bkdView.config.scanningIndicatorWidth
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
setScanningIndicatorAnimation(indicatorMode: number): void {
|
|
1203
|
+
this.bkdView.config.scanningIndicatorAnimation = indicatorMode;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
getScanningIndicatorAnimation(): any {
|
|
1207
|
+
return this.bkdView.config.scanningIndicatorAnimation
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
setScanningIndicatorAlwaysVisible(enabled: boolean): void {
|
|
1211
|
+
this.bkdView.config.scanningIndicatorAlwaysVisible = enabled;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
isScanningIndicatorAlwaysVisible(): any {
|
|
1215
|
+
return this.bkdView.config.scanningIndicatorAlwaysVisible;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
setUPCEexpandToUPCA(enabled: boolean): void {
|
|
1219
|
+
this.bkdView.config.decoderConfig.upcE.expandToUPCA = enabled
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
setUPCE1expandToUPCA(enabled: boolean): void {
|
|
1223
|
+
this.bkdView.config.decoderConfig.upcE1.expandToUPCA = enabled
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
setCustomOption(string: string, mode: number): void {
|
|
1227
|
+
this.bkdView.config.decoderConfig.setcustomOptionValue(string, mode)
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1154
1230
|
setLicenseKey(licenseKey: string): void {
|
|
1155
1231
|
const config = new BarkoderConfig({
|
|
1156
1232
|
licenseKey: licenseKey,
|
|
@@ -1160,6 +1236,14 @@ export class BarkoderViewIOS extends View {
|
|
|
1160
1236
|
this.bkdView.config = config;
|
|
1161
1237
|
}
|
|
1162
1238
|
|
|
1239
|
+
setDynamicExposure(number: number): void {
|
|
1240
|
+
this.bkdView.setDynamicExposure(number);
|
|
1241
|
+
}
|
|
1242
|
+
setCentricFocusAndExposure(enabled : boolean) : void {
|
|
1243
|
+
this.bkdView.setCentricFocusAndExposure(enabled);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
|
|
1163
1247
|
/**
|
|
1164
1248
|
* Configures the Barkoder functionality based on the provided configuration
|
|
1165
1249
|
*/
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -63,7 +63,10 @@ typedef enum {
|
|
|
63
63
|
Code32,
|
|
64
64
|
Telepen,
|
|
65
65
|
Dotcode,
|
|
66
|
-
IDDocument
|
|
66
|
+
IDDocument,
|
|
67
|
+
Databar14,
|
|
68
|
+
DatabarLimited,
|
|
69
|
+
DatabarExpanded
|
|
67
70
|
} DecoderType;
|
|
68
71
|
|
|
69
72
|
|
|
@@ -350,6 +353,27 @@ typedef enum {
|
|
|
350
353
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
351
354
|
@end
|
|
352
355
|
|
|
356
|
+
//==========================================================================
|
|
357
|
+
// Databar 14 Config
|
|
358
|
+
//==========================================================================
|
|
359
|
+
@interface Databar14Config : SpecificConfig
|
|
360
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
361
|
+
@end
|
|
362
|
+
|
|
363
|
+
//==========================================================================
|
|
364
|
+
// Databar Limited Config
|
|
365
|
+
//==========================================================================
|
|
366
|
+
@interface DatabarLimitedConfig : SpecificConfig
|
|
367
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
368
|
+
@end
|
|
369
|
+
|
|
370
|
+
//==========================================================================
|
|
371
|
+
// Databar Expanded Config
|
|
372
|
+
//==========================================================================
|
|
373
|
+
@interface DatabarExpandedConfig : SpecificConfig
|
|
374
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
375
|
+
@end
|
|
376
|
+
|
|
353
377
|
//==========================================================================
|
|
354
378
|
// ID Document Config
|
|
355
379
|
//==========================================================================
|
|
@@ -426,6 +450,9 @@ typedef enum {
|
|
|
426
450
|
@property (nonatomic, readonly, retain) PDF417Config* _Nonnull PDF417;
|
|
427
451
|
@property (nonatomic, readonly, retain) PDF417MicroConfig* _Nonnull PDF417Micro;
|
|
428
452
|
@property (nonatomic, readonly, retain) DatamatrixConfig* _Nonnull datamatrix;
|
|
453
|
+
@property (nonatomic, readonly, retain) Databar14Config* _Nonnull databar14;
|
|
454
|
+
@property (nonatomic, readonly, retain) DatabarLimitedConfig* _Nonnull databarLimited;
|
|
455
|
+
@property (nonatomic, readonly, retain) DatabarExpandedConfig* _Nonnull databarExpanded;
|
|
429
456
|
|
|
430
457
|
@property (nonatomic, readonly, retain) IDDocumentConfig* _Nonnull idDocument;
|
|
431
458
|
|
|
@@ -437,6 +464,7 @@ typedef enum {
|
|
|
437
464
|
@property (nonatomic, readwrite) bool upcEanDeblur;
|
|
438
465
|
@property (nonatomic, readwrite) bool enableMisshaped1D;
|
|
439
466
|
@property (nonatomic, readwrite) bool enableVINRestrictions;
|
|
467
|
+
@property (nonatomic, readwrite) int enableComposite;
|
|
440
468
|
|
|
441
469
|
|
|
442
470
|
-(void)setEnabledDecoders:(NSArray* _Nonnull)decoders;
|
|
@@ -454,7 +482,7 @@ typedef enum {
|
|
|
454
482
|
@end
|
|
455
483
|
|
|
456
484
|
//==========================================================================
|
|
457
|
-
//
|
|
485
|
+
// BKDecoderResult
|
|
458
486
|
//==========================================================================
|
|
459
487
|
typedef enum {
|
|
460
488
|
BT_Aztec = 0,
|
|
@@ -488,7 +516,10 @@ typedef enum {
|
|
|
488
516
|
BT_ID_Document,
|
|
489
517
|
BT_ID_Picture,
|
|
490
518
|
BT_ID_MRZ2,
|
|
491
|
-
BT_ID_MRZ3
|
|
519
|
+
BT_ID_MRZ3,
|
|
520
|
+
BT_Databar14,
|
|
521
|
+
BT_DatabarLimited,
|
|
522
|
+
BT_DatabarExpanded
|
|
492
523
|
|
|
493
524
|
} BarcodeType;
|
|
494
525
|
|
|
@@ -523,7 +554,7 @@ UIImage
|
|
|
523
554
|
|
|
524
555
|
@end
|
|
525
556
|
|
|
526
|
-
@interface
|
|
557
|
+
@interface BKDecoderResult : NSObject {
|
|
527
558
|
CGPoint location[4];
|
|
528
559
|
}
|
|
529
560
|
|
|
@@ -547,6 +578,7 @@ UIImage
|
|
|
547
578
|
|
|
548
579
|
|
|
549
580
|
@end
|
|
581
|
+
@compatibility_alias DecoderResult BKDecoderResult;
|
|
550
582
|
|
|
551
583
|
|
|
552
584
|
//==========================================================================
|
|
@@ -557,14 +589,14 @@ UIImage
|
|
|
557
589
|
+(bool) IsStringVINCompliant: (NSString *) VINString checkLevel: (int) checkLevel;
|
|
558
590
|
+(bool) IsDecoderBusy;
|
|
559
591
|
|
|
560
|
-
+(NSArray<
|
|
561
|
-
+(NSArray<
|
|
592
|
+
+(NSArray<BKDecoderResult*>*)decodeImage:(Config*)config imageRef:(void*)imageRef imageWidth:(int)width imageHeight:(int) height;
|
|
593
|
+
+(NSArray<BKDecoderResult*>*)decodeImage:(Config*)config imageRef:(void*)imageRef imageWidth:(int)width imageHeight:(int) height colorFormat: (ColorFormat) colorFormat;
|
|
562
594
|
|
|
563
|
-
+(NSArray<
|
|
564
|
-
+(NSArray<
|
|
595
|
+
+(NSArray<BKDecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height;
|
|
596
|
+
+(NSArray<BKDecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height colorFormat: (ColorFormat) colorFormat;
|
|
565
597
|
|
|
566
|
-
+(int) decodeImageAsync:(Config*)config image: (Image*) image callback:(void (^)(NSArray<
|
|
567
|
-
+(int) decodeSampleBufferAsync:(Config*)config sampleBuffer:(CMSampleBufferRef)sampleBuffer callback:(void (^)(NSArray<
|
|
598
|
+
+(int) decodeImageAsync:(Config*)config image: (Image*) image callback:(void (^)(NSArray<BKDecoderResult*>*, Image*)) callback;
|
|
599
|
+
+(int) decodeSampleBufferAsync:(Config*)config sampleBuffer:(CMSampleBufferRef)sampleBuffer callback:(void (^)(NSArray<BKDecoderResult*>*, CMSampleBufferRef)) callback;
|
|
568
600
|
+ (unsigned char*)CGImageToPixels:(CGImageRef) image;
|
|
569
601
|
+ (CGImageRef) CGImageFromPixels:(const char*)pixels width:(int)width height:(int)height;
|
|
570
602
|
#if TARGET_OS_IOS
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"shortDescription" : "Ultralytics YOLOv8n-obb model trained on dataset_id.yaml",
|
|
4
|
+
"metadataOutputVersion" : "3.0",
|
|
5
|
+
"outputSchema" : [
|
|
6
|
+
{
|
|
7
|
+
"hasShapeFlexibility" : "0",
|
|
8
|
+
"isOptional" : "0",
|
|
9
|
+
"dataType" : "Float32",
|
|
10
|
+
"formattedType" : "MultiArray (Float32 1 × 13 × 2016)",
|
|
11
|
+
"shortDescription" : "",
|
|
12
|
+
"shape" : "[1, 13, 2016]",
|
|
13
|
+
"name" : "var_1031",
|
|
14
|
+
"type" : "MultiArray"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"version" : "8.2.34",
|
|
18
|
+
"modelParameters" : [
|
|
19
|
+
|
|
20
|
+
],
|
|
21
|
+
"author" : "Ultralytics",
|
|
22
|
+
"specificationVersion" : 6,
|
|
23
|
+
"storagePrecision" : "Float16",
|
|
24
|
+
"license" : "AGPL-3.0 License (https:\/\/ultralytics.com\/license)",
|
|
25
|
+
"mlProgramOperationTypeHistogram" : {
|
|
26
|
+
"Concat" : 21,
|
|
27
|
+
"Silu" : 63,
|
|
28
|
+
"Sin" : 1,
|
|
29
|
+
"Sub" : 3,
|
|
30
|
+
"Transpose" : 1,
|
|
31
|
+
"Cos" : 1,
|
|
32
|
+
"UpsampleNearestNeighbor" : 2,
|
|
33
|
+
"Softmax" : 1,
|
|
34
|
+
"Mul" : 8,
|
|
35
|
+
"Cast" : 2,
|
|
36
|
+
"Sigmoid" : 2,
|
|
37
|
+
"Add" : 9,
|
|
38
|
+
"Reshape" : 8,
|
|
39
|
+
"MaxPool" : 3,
|
|
40
|
+
"Split" : 11,
|
|
41
|
+
"Conv" : 73
|
|
42
|
+
},
|
|
43
|
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
|
44
|
+
"stateSchema" : [
|
|
45
|
+
|
|
46
|
+
],
|
|
47
|
+
"isUpdatable" : "0",
|
|
48
|
+
"availability" : {
|
|
49
|
+
"macOS" : "12.0",
|
|
50
|
+
"tvOS" : "15.0",
|
|
51
|
+
"visionOS" : "1.0",
|
|
52
|
+
"watchOS" : "8.0",
|
|
53
|
+
"iOS" : "15.0",
|
|
54
|
+
"macCatalyst" : "15.0"
|
|
55
|
+
},
|
|
56
|
+
"modelType" : {
|
|
57
|
+
"name" : "MLModelType_mlProgram"
|
|
58
|
+
},
|
|
59
|
+
"inputSchema" : [
|
|
60
|
+
{
|
|
61
|
+
"height" : "256",
|
|
62
|
+
"colorspace" : "RGB",
|
|
63
|
+
"isOptional" : "0",
|
|
64
|
+
"width" : "384",
|
|
65
|
+
"isColor" : "1",
|
|
66
|
+
"formattedType" : "Image (Color 384 × 256)",
|
|
67
|
+
"hasSizeFlexibility" : "0",
|
|
68
|
+
"type" : "Image",
|
|
69
|
+
"shortDescription" : "",
|
|
70
|
+
"name" : "image"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"userDefinedMetadata" : {
|
|
74
|
+
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
75
|
+
"stride" : "32",
|
|
76
|
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
77
|
+
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
|
+
"task" : "obb",
|
|
79
|
+
"com.github.apple.coremltools.version" : "7.2",
|
|
80
|
+
"imgsz" : "[256, 384]",
|
|
81
|
+
"date" : "2024-08-01T09:34:45.251931",
|
|
82
|
+
"batch" : "1",
|
|
83
|
+
"names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}"
|
|
84
|
+
},
|
|
85
|
+
"generatedClassName" : "float16_384x256",
|
|
86
|
+
"method" : "predict"
|
|
87
|
+
}
|
|
88
|
+
]
|