barkoder-nativescript 1.6.3 → 1.6.4
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 +184 -0
- package/barkoder-nativescript.common.ts +24 -0
- package/barkoder-nativescript.ios.ts +188 -0
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/ios/Barkoder.xcframework/Info.plist +5 -5
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +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/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +2 -2
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/model.mil +1 -1
- 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 +3 -3
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/model.mil +1 -1
- 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/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Modules/module.modulemap +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +13 -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/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/model.mil +1 -1
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +3 -3
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/model.mil +1 -1
- 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 +142 -1
- 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 +3898 -169
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +89 -0
- 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 +89 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +340 -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 +284 -2
- 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 +3898 -169
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +89 -0
- 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 +89 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +3898 -169
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +89 -0
- 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 +89 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +25 -25
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +340 -15
|
@@ -57,6 +57,14 @@ export class BarkoderViewAndroid extends View {
|
|
|
57
57
|
this.bkdView.startScanning(resultCallback);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
freezeScanning() {
|
|
61
|
+
this.bkdView.freezeScanning()
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
unfreezeScanning(){
|
|
65
|
+
this.bkdView.unfreezeScanning()
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
|
|
61
69
|
scanImage(
|
|
62
70
|
base64Image: string,
|
|
@@ -1291,9 +1299,185 @@ export class BarkoderViewAndroid extends View {
|
|
|
1291
1299
|
|
|
1292
1300
|
}
|
|
1293
1301
|
|
|
1302
|
+
setBarkoderARMode(arMode: BarkoderConstants.BarkoderARMode): void {
|
|
1303
|
+
if (arMode == BarkoderConstants.BarkoderARMode.OFF) {
|
|
1304
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.OFF;
|
|
1305
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveDisabled) {
|
|
1306
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.InteractiveDisabled;
|
|
1307
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveEnabled) {
|
|
1308
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.InteractiveEnabled;
|
|
1309
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.NonInteractive) {
|
|
1310
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.NonInteractive;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
getBarkoderARMode(): any {
|
|
1315
|
+
return this.bkdView.config.arConfig.arMode
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
setBarkoderARLocationType(locationType: BarkoderConstants.BarkoderARLocationType): void {
|
|
1319
|
+
if (locationType == BarkoderConstants.BarkoderARLocationType.NONE) {
|
|
1320
|
+
this.bkdView.config.arConfig.locationType = com.barkoder.enums.BarkoderARLocationType.NONE;
|
|
1321
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.TIGHT) {
|
|
1322
|
+
this.bkdView.config.arConfig.locationType = com.barkoder.enums.BarkoderARLocationType.TIGHT;
|
|
1323
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.BOUNDINGBOX) {
|
|
1324
|
+
this.bkdView.config.arConfig.locationType = com.barkoder.enums.BarkoderARLocationType.BOUNDINGBOX;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
getBarkoderARLocationType() : any {
|
|
1329
|
+
return this.bkdView.config.arConfig.locationType
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
setBarkoderARHeaderShowMode(headerShowMode: BarkoderConstants.BarkoderARHeaderShowMode): void {
|
|
1333
|
+
if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.NEVER) {
|
|
1334
|
+
this.bkdView.config.arConfig.headerShowMode = com.barkoder.enums.BarkoderARHeaderShowMode.NEVER;
|
|
1335
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ONSELECTED) {
|
|
1336
|
+
this.bkdView.config.arConfig.headerShowMode = com.barkoder.enums.BarkoderARHeaderShowMode.ONSELECTED;
|
|
1337
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ALWAYS) {
|
|
1338
|
+
this.bkdView.config.arConfig.headerShowMode = com.barkoder.enums.BarkoderARHeaderShowMode.ALWAYS;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
getBarkoderARHeaderShowMode() : any {
|
|
1343
|
+
return this.bkdView.config.arConfig.headerShowMode
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
setBarkoderARoverlayRefresh(overlayRefresh: BarkoderConstants.BarkoderAROverlayRefresh): void {
|
|
1347
|
+
if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.SMOOTH) {
|
|
1348
|
+
this.bkdView.config.arConfig.overlayRefresh = com.barkoder.enums.BarkoderAROverlayRefresh.SMOOTH;
|
|
1349
|
+
} else if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.NORMAL) {
|
|
1350
|
+
this.bkdView.config.arConfig.overlayRefresh = com.barkoder.enums.BarkoderAROverlayRefresh.NORMAL;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
getBarkoderARoverlayRefresh() : any {
|
|
1355
|
+
return this.bkdView.config.arConfig.overlayRefresh
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
setARNonSelectedLocationLineColor(locationLineColor: string): void {
|
|
1359
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1360
|
+
this.bkdView.config.arConfig.setNonSelectedLocationColor(locationColor);
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
getARNonSelectedLocationLineColor() : any {
|
|
1364
|
+
return this.bkdView.config.arConfig.getNonSelectedLocationColor();
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
setARSelectedLocationLineColor(locationLineColor: string): void {
|
|
1368
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1369
|
+
this.bkdView.config.arConfig.setSelectedLocationColor(locationColor);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
getARSelectedLocationLineColor(): any {
|
|
1373
|
+
return this.bkdView.config.arConfig.getSelectedLocationColor();
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
setARHeaderMaxTextHeight(maxText : number) : void {
|
|
1377
|
+
this.bkdView.config.arConfig.setHeaderMaxTextHeight(maxText)
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
getARHeaderMaxTextHeight() : any {
|
|
1381
|
+
return this.bkdView.config.arConfig.getHeaderMaxTextHeight()
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
setARHeaderMinTextHeight(maxText: number): void {
|
|
1385
|
+
this.bkdView.config.arConfig.setHeaderMinTextHeight(maxText)
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
getARHeaderMinTextHeight(): any {
|
|
1389
|
+
return this.bkdView.config.arConfig.getHeaderMinTextHeight()
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
setARHeaderHeight(height: number) : void {
|
|
1393
|
+
this.bkdView.config.arConfig.setHeaderHeight(height)
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
getARHeaderHeight(): any {
|
|
1397
|
+
return this.bkdView.config.arConfig.getHeaderHeight()
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
setARHeaderVerticalTextMargin(margin : number) : void {
|
|
1401
|
+
this.bkdView.config.arConfig.setHeaderVerticalTextMargin(margin)
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
getARHeaderVerticalTextMargin(): void {
|
|
1405
|
+
return this.bkdView.config.arConfig.getHeaderVerticalTextMargin()
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
setARHeaderHorizontalTextMargin(margin: number): void {
|
|
1409
|
+
this.bkdView.config.arConfig.setHeaderHorizontalTextMargin(margin)
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
getARHeaderHorizontalTextMargin(): void {
|
|
1413
|
+
return this.bkdView.config.arConfig.getHeaderHorizontalTextMargin()
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
setARNonSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1417
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1418
|
+
this.bkdView.config.arConfig.setHeaderTextColorNonSelected(locationColor);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
getARNonSelectedHeaderTextColor() : any {
|
|
1422
|
+
return this.bkdView.config.arConfig.getHeaderTextColorNonSelected()
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
setARSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1426
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1427
|
+
this.bkdView.config.arConfig.setHeaderTextColorSelected(locationColor);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
getARSelectedHeaderTextColor(): any {
|
|
1431
|
+
return this.bkdView.config.arConfig.getHeaderTextColorSelected()
|
|
1432
|
+
}
|
|
1294
1433
|
|
|
1434
|
+
setARDoubleTapToFreezeEnabled(enabled : boolean) : void {
|
|
1435
|
+
this.bkdView.config.arConfig.setDoubleTapToFreezeEnabled(enabled);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
getARDoubleTapToFreezeEnabled(): any {
|
|
1439
|
+
return this.bkdView.config.arConfig.isDoubleTapToFreezeEnabled();
|
|
1440
|
+
}
|
|
1295
1441
|
|
|
1442
|
+
setResultDisappearanceDelayMs(ms : number) : void {
|
|
1443
|
+
this.bkdView.config.arConfig.setResultDisappearanceDelayMs(ms);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
getResultDisappearanceDelayMs(): any {
|
|
1447
|
+
return this.bkdView.config.arConfig.getResultDisappearanceDelayMs();
|
|
1448
|
+
}
|
|
1296
1449
|
|
|
1450
|
+
setARLocationTransitionSpeed(speed : number) : void {
|
|
1451
|
+
this.bkdView.config.arConfig.setLocationTransitionSpeed(speed);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
getARLocationTransitionSpeed(): any {
|
|
1455
|
+
return this.bkdView.config.arConfig.getLocationTransitionSpeed();
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
setARSelectedLocationLineWidth(width : number) : void {
|
|
1459
|
+
this.bkdView.config.arConfig.setSelectedLocationLineWidth(width);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
getARSelectedLocationLineWidth(): any {
|
|
1463
|
+
return this.bkdView.config.arConfig.getSelectedLocationLineWidth();
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
setARNonSelectedLocationLineWidth(width: number): void {
|
|
1467
|
+
this.bkdView.config.arConfig.setNonSelectedLocationLineWidth(width);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
getARNonSelectedLocationLineWidth(): any {
|
|
1471
|
+
return this.bkdView.config.arConfig.getNonSelectedLocationLineWidth();
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
setARHeaderTextFormat(format : string) : void {
|
|
1475
|
+
this.bkdView.config.arConfig.setHeaderTextFormat(format);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
getARHeaderTextFormat(format: string): void {
|
|
1479
|
+
return this.bkdView.config.arConfig.getHeaderTextFormat(format);
|
|
1480
|
+
}
|
|
1297
1481
|
setLicenseKey(licenseKey: string): void {
|
|
1298
1482
|
this.bkdView.config = new com.barkoder.BarkoderConfig(
|
|
1299
1483
|
context,
|
|
@@ -109,6 +109,30 @@ export enum Code39ChecksumType {
|
|
|
109
109
|
Front = 1
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
export enum BarkoderARMode {
|
|
113
|
+
OFF = 0,
|
|
114
|
+
InteractiveDisabled = 1,
|
|
115
|
+
InteractiveEnabled = 2,
|
|
116
|
+
NonInteractive = 3
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export enum BarkoderARHeaderShowMode {
|
|
120
|
+
NEVER = 0,
|
|
121
|
+
ALWAYS = 1,
|
|
122
|
+
ONSELECTED = 2
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export enum BarkoderARLocationType {
|
|
126
|
+
NONE = 0,
|
|
127
|
+
TIGHT = 1,
|
|
128
|
+
BOUNDINGBOX = 2
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export enum BarkoderAROverlayRefresh {
|
|
132
|
+
SMOOTH = 0,
|
|
133
|
+
NORMAL = 1
|
|
134
|
+
}
|
|
135
|
+
|
|
112
136
|
export class Common extends Observable {
|
|
113
137
|
|
|
114
138
|
}
|
|
@@ -22,6 +22,14 @@ export class BarkoderViewIOS extends View {
|
|
|
22
22
|
this.bkdView.startScanningError(resultDelegate);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
freezeScanning() {
|
|
26
|
+
this.bkdView.freezeScanning()
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
unfreezeScanning() {
|
|
30
|
+
this.bkdView.unfreezeScanning()
|
|
31
|
+
}
|
|
32
|
+
|
|
25
33
|
scanImage(base64Image: string, callback: BarkoderConstants.BarkoderResultCallback): void {
|
|
26
34
|
|
|
27
35
|
// Convert Base64 to UIImage
|
|
@@ -1303,6 +1311,186 @@ export class BarkoderViewIOS extends View {
|
|
|
1303
1311
|
}
|
|
1304
1312
|
}
|
|
1305
1313
|
|
|
1314
|
+
setBarkoderARMode(arMode: BarkoderConstants.BarkoderARMode): void {
|
|
1315
|
+
if (arMode == BarkoderConstants.BarkoderARMode.OFF) {
|
|
1316
|
+
this.bkdView.config.arConfig.arMode = 0
|
|
1317
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveDisabled) {
|
|
1318
|
+
this.bkdView.config.arConfig.arMode = 1
|
|
1319
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveEnabled) {
|
|
1320
|
+
this.bkdView.config.arConfig.arMode = 2
|
|
1321
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.NonInteractive) {
|
|
1322
|
+
this.bkdView.config.arConfig.arMode = 3
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
getBarkoderARMode(): any {
|
|
1327
|
+
return this.bkdView.config.arConfig.arMode
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
setBarkoderARLocationType(locationType: BarkoderConstants.BarkoderARLocationType): void {
|
|
1331
|
+
if (locationType == BarkoderConstants.BarkoderARLocationType.NONE) {
|
|
1332
|
+
this.bkdView.config.arConfig.locationType = 0
|
|
1333
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.TIGHT) {
|
|
1334
|
+
this.bkdView.config.arConfig.locationType = 1
|
|
1335
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.BOUNDINGBOX) {
|
|
1336
|
+
this.bkdView.config.arConfig.locationType = 2
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
getBarkoderARLocationType() : any {
|
|
1341
|
+
return this.bkdView.config.arConfig.locationType
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
setBarkoderARHeaderShowMode(headerShowMode: BarkoderConstants.BarkoderARHeaderShowMode): void {
|
|
1345
|
+
if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.NEVER) {
|
|
1346
|
+
this.bkdView.config.arConfig.headerShowMode = 0
|
|
1347
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ALWAYS) {
|
|
1348
|
+
this.bkdView.config.arConfig.headerShowMode = 1
|
|
1349
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ONSELECTED) {
|
|
1350
|
+
this.bkdView.config.arConfig.headerShowMode = 2
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
getBarkoderARHeaderShowMode() : any {
|
|
1355
|
+
return this.bkdView.config.arConfig.headerShowMode
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
setBarkoderARoverlayRefresh(overlayRefresh: BarkoderConstants.BarkoderAROverlayRefresh): void {
|
|
1359
|
+
if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.SMOOTH) {
|
|
1360
|
+
this.bkdView.config.arConfig.overlayRefresh = 1;
|
|
1361
|
+
} else if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.NORMAL) {
|
|
1362
|
+
this.bkdView.config.arConfig.overlayRefresh = 2;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
getBarkoderARoverlayRefresh() : any {
|
|
1367
|
+
return this.bkdView.config.arConfig.overlayRefresh
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
setARNonSelectedLocationLineColor(locationLineColor: string): void {
|
|
1371
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1372
|
+
this.bkdView.config.arConfig.nonSelectedLocationColor = locationColor;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
getARNonSelectedLocationLineColor() : any {
|
|
1376
|
+
return this.bkdView.config.arConfig.nonSelectedLocationColor;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
setARSelectedLocationLineColor(locationLineColor: string): void {
|
|
1380
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1381
|
+
this.bkdView.config.arConfig.selectedLocationColor = locationColor;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
getARSelectedLocationLineColor(): any {
|
|
1385
|
+
return this.bkdView.config.arConfig.selectedLocationColor;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
setARHeaderMaxTextHeight(maxText : number) : void {
|
|
1389
|
+
this.bkdView.config.arConfig.headerMaxTextHeight = maxText;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
getARHeaderMaxTextHeight() : any {
|
|
1393
|
+
return this.bkdView.config.arConfig.headerMaxTextHeight
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
setARHeaderMinTextHeight(minText: number): void {
|
|
1397
|
+
this.bkdView.config.arConfig.headerMinTextHeight = minText;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
getARHeaderMinTextHeight(): any {
|
|
1401
|
+
return this.bkdView.config.arConfig.headerMinTextHeight
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
setARHeaderHeight(height: number) : void {
|
|
1405
|
+
this.bkdView.config.arConfig.headerHeight = height
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
getARHeaderHeight(): any {
|
|
1409
|
+
return this.bkdView.config.arConfig.headerHeight
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
setARHeaderVerticalTextMargin(margin : number) : void {
|
|
1413
|
+
this.bkdView.config.arConfig.headerVerticalTextMargin = margin
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
getARHeaderVerticalTextMargin(): void {
|
|
1417
|
+
return this.bkdView.config.arConfig.headerVerticalTextMargin
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
setARHeaderHorizontalTextMargin(margin: number): void {
|
|
1421
|
+
this.bkdView.config.arConfig.headerHorizontalTextMargin = margin
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
getARHeaderHorizontalTextMargin(): void {
|
|
1425
|
+
return this.bkdView.config.arConfig.headerHorizontalTextMargin
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
setARNonSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1429
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1430
|
+
this.bkdView.config.arConfig.headerTextColorNonSelected = locationColor;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
getARNonSelectedHeaderTextColor() : any {
|
|
1434
|
+
return this.bkdView.config.arConfig.headerTextColorNonSelected
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
setARSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1438
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1439
|
+
this.bkdView.config.arConfig.headerTextColorSelected = locationColor
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
getARSelectedHeaderTextColor(): any {
|
|
1443
|
+
return this.bkdView.config.arConfig.headerTextColorSelected
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
setARDoubleTapToFreezeEnabled(enabled : boolean) : void {
|
|
1447
|
+
this.bkdView.config.arConfig.doubleTapToFreezeEnabled = enabled
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
getARDoubleTapToFreezeEnabled(): any {
|
|
1451
|
+
return this.bkdView.config.arConfig.doubleTapToFreezeEnabled
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
setResultDisappearanceDelayMs(ms : number) : void {
|
|
1455
|
+
this.bkdView.config.arConfig.resultDisappearanceDelayMs = ms
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
getResultDisappearanceDelayMs(): any {
|
|
1459
|
+
return this.bkdView.config.arConfig.resultDisappearanceDelayMs
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
setARLocationTransitionSpeed(speed : number) : void {
|
|
1463
|
+
this.bkdView.config.arConfig.locationTransitionSpeed = speed
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
getARLocationTransitionSpeed(): any {
|
|
1467
|
+
return this.bkdView.config.arConfig.locationTransitionSpeed
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
setARSelectedLocationLineWidth(width : number) : void {
|
|
1471
|
+
this.bkdView.config.arConfig.selectedLocationLineWidth = width
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
getARSelectedLocationLineWidth(): any {
|
|
1475
|
+
return this.bkdView.config.arConfig.selectedLocationLineWidth
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
setARNonSelectedLocationLineWidth(width: number): void {
|
|
1479
|
+
this.bkdView.config.arConfig.nonSelectedLocationLineWidth = width
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
getARNonSelectedLocationLineWidth(): any {
|
|
1483
|
+
return this.bkdView.config.arConfig.nonSelectedLocationLineWidth
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
setARHeaderTextFormat(format : string) : void {
|
|
1487
|
+
this.bkdView.config.arConfig.headerTextFormat = format
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
getARHeaderTextFormat(format: string): void {
|
|
1491
|
+
return this.bkdView.config.arConfig.headerTextFormat
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1306
1494
|
|
|
1307
1495
|
/**
|
|
1308
1496
|
* Configures the Barkoder functionality based on the provided configuration
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>Barkoder.framework/Barkoder</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>Barkoder.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
26
23
|
<string>Barkoder.framework/Barkoder</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>Barkoder.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap
CHANGED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"userDefinedMetadata" : {
|
|
74
|
-
"stride" : "32",
|
|
75
74
|
"com.github.apple.coremltools.version" : "7.2",
|
|
76
75
|
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
76
|
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
77
77
|
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
78
|
"task" : "obb",
|
|
79
|
-
"
|
|
79
|
+
"stride" : "32",
|
|
80
80
|
"imgsz" : "[256, 384]",
|
|
81
81
|
"date" : "2024-08-01T09:34:45.251931",
|
|
82
82
|
"batch" : "1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
program(1.0)
|
|
2
|
-
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "
|
|
2
|
+
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3404.16.1"}, {"coremlc-version", "3404.23.1"}, {"coremltools-component-torch", "2.3.1+cu121"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "7.2"}})]
|
|
3
3
|
{
|
|
4
4
|
func main<ios15>(tensor<fp32, [1, 3, 256, 384]> image) {
|
|
5
5
|
tensor<fp32, []> image__scaled___y_0 = const()[name = tensor<string, []>("image__scaled___y_0"), val = tensor<fp32, []>(0x1.010102p-8)];
|
|
Binary file
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"userDefinedMetadata" : {
|
|
74
|
-
"stride" : "32",
|
|
75
74
|
"com.github.apple.coremltools.version" : "7.2",
|
|
76
75
|
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
76
|
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
77
77
|
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
78
|
"task" : "obb",
|
|
79
|
-
"
|
|
80
|
-
"imgsz" : "[384, 512]",
|
|
79
|
+
"stride" : "32",
|
|
81
80
|
"date" : "2024-08-01T17:19:19.267647",
|
|
81
|
+
"imgsz" : "[384, 512]",
|
|
82
82
|
"batch" : "1",
|
|
83
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
84
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
program(1.0)
|
|
2
|
-
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "
|
|
2
|
+
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3404.16.1"}, {"coremlc-version", "3404.23.1"}, {"coremltools-component-torch", "2.3.1+cu121"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "7.2"}})]
|
|
3
3
|
{
|
|
4
4
|
func main<ios15>(tensor<fp32, [1, 3, 384, 512]> image) {
|
|
5
5
|
tensor<fp32, []> image__scaled___y_0 = const()[name = tensor<string, []>("image__scaled___y_0"), val = tensor<fp32, []>(0x1.010102p-8)];
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder
CHANGED
|
Binary file
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist
CHANGED
|
Binary file
|
|
File without changes
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
<dict>
|
|
5
5
|
<key>files</key>
|
|
6
6
|
<dict>
|
|
7
|
-
<key>.DS_Store</key>
|
|
8
|
-
<data>
|
|
9
|
-
P6qZVTGE53h9Lxb+J/uyXkv1bqY=
|
|
10
|
-
</data>
|
|
11
7
|
<key>Headers/Barkoder.h</key>
|
|
12
8
|
<data>
|
|
13
9
|
9tBmdiEM3Piw6SdXbESop6X7Zac=
|
|
@@ -18,7 +14,7 @@
|
|
|
18
14
|
</data>
|
|
19
15
|
<key>Info.plist</key>
|
|
20
16
|
<data>
|
|
21
|
-
|
|
17
|
+
otCqrqsy3quxLVueROGZaLjiLOc=
|
|
22
18
|
</data>
|
|
23
19
|
<key>Modules/module.modulemap</key>
|
|
24
20
|
<data>
|
|
@@ -26,7 +22,7 @@
|
|
|
26
22
|
</data>
|
|
27
23
|
<key>default.metallib</key>
|
|
28
24
|
<data>
|
|
29
|
-
|
|
25
|
+
06tfFnf1MRUFe5+MjBs/VNQcEn8=
|
|
30
26
|
</data>
|
|
31
27
|
<key>float16_384x256.mlmodelc/analytics/coremldata.bin</key>
|
|
32
28
|
<data>
|
|
@@ -34,15 +30,15 @@
|
|
|
34
30
|
</data>
|
|
35
31
|
<key>float16_384x256.mlmodelc/coremldata.bin</key>
|
|
36
32
|
<data>
|
|
37
|
-
|
|
33
|
+
9Bv8yQbnj4Lbv7S63P3ISqwX9Uk=
|
|
38
34
|
</data>
|
|
39
35
|
<key>float16_384x256.mlmodelc/metadata.json</key>
|
|
40
36
|
<data>
|
|
41
|
-
|
|
37
|
+
pQxfZIpErO25AQJ3b0OjQfi8fVg=
|
|
42
38
|
</data>
|
|
43
39
|
<key>float16_384x256.mlmodelc/model.mil</key>
|
|
44
40
|
<data>
|
|
45
|
-
|
|
41
|
+
6Ckdeih7+rV3d26T7DaHxE5hyFI=
|
|
46
42
|
</data>
|
|
47
43
|
<key>float16_384x256.mlmodelc/weights/weight.bin</key>
|
|
48
44
|
<data>
|
|
@@ -58,11 +54,11 @@
|
|
|
58
54
|
</data>
|
|
59
55
|
<key>float16_512x384.mlmodelc/metadata.json</key>
|
|
60
56
|
<data>
|
|
61
|
-
|
|
57
|
+
C36Hwk5NGVUo1zk14wg8NqUntAM=
|
|
62
58
|
</data>
|
|
63
59
|
<key>float16_512x384.mlmodelc/model.mil</key>
|
|
64
60
|
<data>
|
|
65
|
-
|
|
61
|
+
Aege+CQOzfTneIZUrYzoj5FEkpA=
|
|
66
62
|
</data>
|
|
67
63
|
<key>float16_512x384.mlmodelc/weights/weight.bin</key>
|
|
68
64
|
<data>
|
|
@@ -104,7 +100,7 @@
|
|
|
104
100
|
<dict>
|
|
105
101
|
<key>hash2</key>
|
|
106
102
|
<data>
|
|
107
|
-
|
|
103
|
+
Qj/z+8FdHfP9cLtOYOlObxt2VaiDjowSZ+0y+PjkVW4=
|
|
108
104
|
</data>
|
|
109
105
|
</dict>
|
|
110
106
|
<key>float16_384x256.mlmodelc/analytics/coremldata.bin</key>
|
|
@@ -118,21 +114,21 @@
|
|
|
118
114
|
<dict>
|
|
119
115
|
<key>hash2</key>
|
|
120
116
|
<data>
|
|
121
|
-
|
|
117
|
+
QvgqHo4R9DXLZAaZEBnPkBHE/C0p0YQEYZj8TeFukDU=
|
|
122
118
|
</data>
|
|
123
119
|
</dict>
|
|
124
120
|
<key>float16_384x256.mlmodelc/metadata.json</key>
|
|
125
121
|
<dict>
|
|
126
122
|
<key>hash2</key>
|
|
127
123
|
<data>
|
|
128
|
-
|
|
124
|
+
TR74LsZ7M/RLOnoqqEfLMd+hXw5mk/ekzuzSMhIbaDQ=
|
|
129
125
|
</data>
|
|
130
126
|
</dict>
|
|
131
127
|
<key>float16_384x256.mlmodelc/model.mil</key>
|
|
132
128
|
<dict>
|
|
133
129
|
<key>hash2</key>
|
|
134
130
|
<data>
|
|
135
|
-
|
|
131
|
+
DH/EvVTBcigkEptFEgXKMXS6HhIr0lj/LkqDFf4hRlg=
|
|
136
132
|
</data>
|
|
137
133
|
</dict>
|
|
138
134
|
<key>float16_384x256.mlmodelc/weights/weight.bin</key>
|
|
@@ -160,14 +156,14 @@
|
|
|
160
156
|
<dict>
|
|
161
157
|
<key>hash2</key>
|
|
162
158
|
<data>
|
|
163
|
-
|
|
159
|
+
KUY6i6p5lmjlwXT4nknCFaO1sgIkAI1As2j6v68gE7U=
|
|
164
160
|
</data>
|
|
165
161
|
</dict>
|
|
166
162
|
<key>float16_512x384.mlmodelc/model.mil</key>
|
|
167
163
|
<dict>
|
|
168
164
|
<key>hash2</key>
|
|
169
165
|
<data>
|
|
170
|
-
|
|
166
|
+
AVEamImyGo8s6a9HV9at/87RiZRBDgpfrrfiPbDgMz8=
|
|
171
167
|
</data>
|
|
172
168
|
</dict>
|
|
173
169
|
<key>float16_512x384.mlmodelc/weights/weight.bin</key>
|
|
Binary file
|