barkoder-nativescript 1.3.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +115 -0
- package/barkoder-nativescript.android.ts +6 -0
- package/barkoder-nativescript.common.ts +4 -1
- package/barkoder-nativescript.ios.ts +7 -1
- 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/Headers/iBarkoder.h +103 -14
- 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 +85 -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 +85 -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 +103 -14
- 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 +137 -5
- 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 +85 -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 +85 -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/Info.plist +5 -5
- 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 +8 -3
- 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 +759 -3134
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +20 -18
- 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 +20 -18
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +203 -17
- 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 +16 -6
- 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 +759 -3134
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +20 -18
- 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 +20 -18
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +759 -3134
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +20 -18
- 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 +20 -18
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +25 -85
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +203 -17
- package/typings/ios/objc!Barkoder.d.ts +11 -1
- package/platforms/android/README.md +0 -9
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# barKoder Barcode Scanner SDK for mobile Nativescript Apps
|
|
2
|
+
## Ultimate software-based barcode scanning solution for Nativescript
|
|
3
|
+
|
|
4
|
+
The [barKoder Barcode Scanner SDK](https://barkoder.com/barcode-scanner-sdk) Nativescript plugin grants an easy to use Nativescript solution with a great and option-rich interface that can be integrated in both iOS and Android apps. Integrating the barKoder Barcode Scanner SDK into your Enterprise or Consumer-facing mobile apps will instantly transform your user's smartphones and tablets into rugged barcode scanning devices without the need to procure and maintain expensive and sluggish hardware devices that have a very short life span.
|
|
5
|
+
|
|
6
|
+
Even though the barKoder barcode scanner SDK is a relatively new product, it is already more advanced than any competitor API's. Its robust barcode reading engine can be used to read the content of the most widely used barcodes with lightning fast speed and unprecedented recognition rate:
|
|
7
|
+
|
|
8
|
+
1D - [Codabar](https://barkoder.com/barcode-types/codaba), [Code 11](https://barkoder.com/barcode-types/code-11), [Code 25](https://barkoder.com/barcode-types/code-25), [Code 39](https://barkoder.com/barcode-types/code-39), [Code 93](https://barkoder.com/barcode-types/code-93), [Code 128](https://barkoder.com/barcode-types/code-128), [DotCode](https://barkoder.com/barcode-types/dotcode), [EAN-8](https://barkoder.com/barcode-types/ean-upc-code), [EAN-13](https://barkoder.com/barcode-types/ean-upc-code), [Interleaved 2 of 5](https://barkoder.com/barcode-types/code-25), [ITF-14](https://barkoder.com/barcode-types/code-25), [MSI Plessey](https://barkoder.com/barcode-types/msi-plessey), [Pharmacode](https://barkoder.com/barcode-types/code-32), [Telepen](https://barkoder.com/barcode-types/telepen), [UPC-A](https://barkoder.com/barcode-types/ean-upc-code) & [UPC-E](https://barkoder.com/barcode-types/ean-upc-code)
|
|
9
|
+
2D - [Aztec Code](https://barkoder.com/barcode-types/aztec), [Aztec Compact](https://barkoder.com/barcode-types/aztec), [Data Matrix](https://barkoder.com/barcode-types/data-matrix), [DotCode](https://barkoder.com/barcode-types/dotcode),[PDF417](https://barkoder.com/barcode-types/pdf417), [Micro PDF417](https://barkoder.com/barcode-types/pdf417), [QR Code](https://barkoder.com/barcode-types/qr-code) & [Micro QR Code](https://barkoder.com/barcode-types/qr-code)
|
|
10
|
+
|
|
11
|
+
The [barKoder SDK](https://barkoder.com/) features multiple algorithms that handle a wide variety of barcode scanning scenarios with unprecedented performance in terms of speed and success rate:
|
|
12
|
+
* [DPM Mode](https://barkoder.com/dpm-barcode-scanner-sdk) - Specially designed scanning template for decoding Data Matrix barcodes engraved using any Direct Part Marking (DPM) technique;
|
|
13
|
+
* [MatrixSight](https://barkoder.com/matrixsight) - MatrixSight® is the ultimate 2D barcode recognition system. Its capabilities transcend beyond anything that a traditional barcode scanner, be that hardware or software-based, can achieve. Simply put, there's no QR Code or Data Matrix barcode that is safe from the barKoder MatrixSight® algorithm. They can have absolutely no finder, alignment or timing patters and can even miss entire data segments but that still won't keep their data safe from being read;
|
|
14
|
+
* [Segment Decoding](https://barkoder.com/segment-decoding) - The advanced barcode localization logics that are part of the Segment Decoding® technique elevated the barKoder SDK into the most powerful scanning API when it comes to 1D barcode recognition, regardless whether the barcodes have been deformed, crumpled, wrinkled and otherwise altered. Even if it goes to a degree where a straight line can't pass through all its bars, a limitation that other decoders, including hardware ones can't alleviate. Segment Decoding® is unmatched in its performance levels and pattern matching capabilities, amortizing even the highest degree of barcode damages, including printing errors, label damage, scanner angles, low print quality, as well as various other levels of physical damage or environmental conditionings. The fact that the data can be extracted even from 1D barcodes that have significant deformations along their Z axis, makes barKoder especially handy when trying to recognize barcodes found on test tubes, bottles and other surfaces with rounded, curved, hollowed or otherwise irregular shapes;
|
|
15
|
+
* [VIN Barcode Scanning Mode](https://barkoder.com/vin-scanning-mode) - When you combine MatrixSight® & Segment Decoding®, the result is breathtaking and leads to the most advanced VIN barcode scanner on the market, able to capture the data even within the most stubborn & difficult to read VIN-powered Code 39, Code 128, Data Matrix & QR Codes;
|
|
16
|
+
* [DeBlur Mode](https://barkoder.com/deblur-mode) - Whether there's lens, motion or focus blur present in EAN or UPC barcodes, the barKoder DeBlur Mode alleviates it fully and doesn't allow the scanning experience to suffer;
|
|
17
|
+
* [PDF417-LineSight](https://barkoder.com/pdf417-linesight) - The robust PDF417 barcode scanner SDK that is offered by barKoder can detect even the most severely damaged PDF417 codes, including samples missing their start and stop patterns, stop row indicators or even entire data columns, making it the sublime choice for apps that need to reliably scan US or Canadian driver's licenses, South African vehicle license discs or driver's licenses, as well as various types of ID's such as Military, Argentinian, Colombian or South African Smart ID Cards.
|
|
18
|
+
* [Batch MultiScan](https://barkoder.com/batch-multiscan) - The Batch MultiScan feature of the barKoder Barcode Scanner SDK for mobile apps and websites, will enable your users to decode multiple barcodes regardless of their type or size in one go. The barKoder API covers all common 1D and 2D barcode symbologies, enabling intuitive and fast data capture while delivering an accuracy of at least 99%, even under the most difficult scanning conditions. Whether in inventory counting, on the last mile or in manufacturing, our fast and accurate Batch MultiScan algorithm greatly increases efficiency and helps create friction-less internal and external processes. The Batch MultiScan works with smartphones, tablets and industrial cameras, enabling true mobility wherever it’s applied.
|
|
19
|
+
* [DPM Recognition Mode](https://barkoder.com/dpm-barcode-scanner-sdk) - barKoder SDK's unique algorithms and features provided all the necessary conditions for creating a special mode for decoding even the most challenging Data Matrix barcodes, i.e. those engraved utilizing the Direct Part Marking (DPM) methods, something that previously was only possible with extremely expensive and specialized hardware scanners. Now all you need to achieve such barcode reading levels is your own personal smart device!
|
|
20
|
+
|
|
21
|
+
You can check out our free demo app Barcode Scanner by barKoder available both via [Apple App Store](https://apps.apple.com/us/app/barkoder-scanner/id6443715409?uo=2) & [Google Play Store](https://play.google.com/store/apps/details?id=com.barkoder.demoscanner).
|
|
22
|
+
|
|
23
|
+
## Trial License
|
|
24
|
+
|
|
25
|
+
If you run the barKoder Barcode Scanner SDK without a valid trial or production license, all results upon successful barcode scans will be partially masked by asterisks (*). You can get a trial license simply by [registering on the barKoder Portal](https://barkoder.com/register) and utilizing the self-service for [Evaluation License Generation](https://barkoder.com/spr/new)! Each trial license will be good for an initial duration of 30 days and can be deployed to up to 25 devices. For any custom requirements, contact our sales team via sales@barkoder.com
|
|
26
|
+
|
|
27
|
+
Note that a trial license is only supposed to be utilized in a development or staging environment.
|
|
28
|
+
|
|
29
|
+
## Free Developer Support
|
|
30
|
+
|
|
31
|
+
Our support is completely free for integration or testing purposes and granted through the [barKoder Portal](https://barkoder.com/login). After registering and logging into your account, you only need to submit a [Support Issue](https://barkoder.com/issues) form. Alternatively, you can contact us by email via support@barkoder.com.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Installation Guide for barKoder's Nativescript Barcode Reader SDK
|
|
35
|
+
|
|
36
|
+
This is a guide for the barKoder [NativeScript Plugin]
|
|
37
|
+
|
|
38
|
+
## 1. Prepare environment
|
|
39
|
+
Install the dependencies and [setup your environment](https://docs.nativescript.org/setup)
|
|
40
|
+
|
|
41
|
+
## 2. Add our barkoder-nativescript package
|
|
42
|
+
To add the **barkoder-nativescript** package to your project, you have two options. You can either use the **barkoder-nativescript** package from **npm** or from a local path.
|
|
43
|
+
|
|
44
|
+
To use the package from [npm](https://www.npmjs.com/package/barkoder-nativescript) run this command:
|
|
45
|
+
|
|
46
|
+
```c
|
|
47
|
+
npm i barkoder-nativescript
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
if you are using **NPM** in your project.
|
|
51
|
+
|
|
52
|
+
If you prefer to use a local package, download the package from [https://barkoder.com](https://barkoder.com/repository), unzip the archive and add the package with setting the package path
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
tns plugin add <path to barkoder-nativescript package>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 3. Import package
|
|
59
|
+
Import the **Barkoder Constants** in your project with:
|
|
60
|
+
```typescript
|
|
61
|
+
import { BarkoderConstants } from 'barkoder-nativescript/barkoder-nativescript.common';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 4. BarkoderView
|
|
65
|
+
At this point the **barkoder-nativescript** package is installed and imported in your project. Next step is to add the **BarkoderView** in your layout.
|
|
66
|
+
```xml
|
|
67
|
+
|
|
68
|
+
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo"
|
|
69
|
+
xmlns:Barkoder="barkoder-nativescript/barkoder-nativescript.common">
|
|
70
|
+
...
|
|
71
|
+
|
|
72
|
+
<Barkoder:BarkoderView id="barkoderView" class="scanner-container" width="100%" height="70%"/>
|
|
73
|
+
|
|
74
|
+
...
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## 5. Init BarkoderView in ViewModel and set the License Key
|
|
79
|
+
Inside **View-Model** we need to init a BarkoderView from layout xml.
|
|
80
|
+
```typescript
|
|
81
|
+
export class HelloWorldModel extends Observable implements BarkoderConstants.BarkoderResultCallback {
|
|
82
|
+
private barkoderView : any
|
|
83
|
+
constructor(args) {
|
|
84
|
+
super()
|
|
85
|
+
|
|
86
|
+
this.barkoderView = args.object.page.getViewById('barkoderView');
|
|
87
|
+
this.barkoderView.setLicenseKey("License_Key")
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
scanningFinished(results: any[], thumbnails: any[], resultImage: any): void {
|
|
91
|
+
console.log(`${results[0].textualData}`)
|
|
92
|
+
console.log(`${results[0].barcodeTypeName}`)
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## 6. Ready to Scan Event
|
|
97
|
+
SDK is fully initialized and ready for configuration or to start the scanning process.
|
|
98
|
+
```typescript
|
|
99
|
+
|
|
100
|
+
this.barkoderView.startScanning(this)
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
For the complete usage of the **barkoder-nativescript** package please check our sample.
|
|
104
|
+
|
|
105
|
+
## 7. Camera permissions
|
|
106
|
+
Our SDK requires camera permission to be granted in order to use scanning features.On Android, you specify the permissions in App_Resources/Android/src/main/AndroidManifest.xml. However, this plugin specifies the required permissions for you. [@nativescript/camera](https://www.npmjs.com/package/@nativescript/camera)
|
|
107
|
+
. For iOS you need to specify camera permission in **Info.plist** file inside your project
|
|
108
|
+
```swift
|
|
109
|
+
<key>NSCameraUsageDescription</key>
|
|
110
|
+
<string>Camera permission</string>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## 8. Licensing
|
|
114
|
+
The SDK will scan barcodes even without a valid license; however all results will be randomly masked with (*) Asterisk characters. By using our software you are agreeing to our [End User License Agreement](https://barkoder.com/EULA). To obtain a valid license, one should create an account [here](https://barkoder.com/register) and either get a trial license (to test the software out) or procure a production license that can be used within a live app.
|
|
115
|
+
|
|
@@ -580,6 +580,8 @@ export class BarkoderViewAndroid extends View {
|
|
|
580
580
|
return this.bkdView.config.getDecoderConfig().COOP25.enabled;
|
|
581
581
|
case BarkoderConstants.DecoderType.Dotcode:
|
|
582
582
|
return this.bkdView.config.getDecoderConfig().Dotcode.enabled;
|
|
583
|
+
case BarkoderConstants.DecoderType.IDDocument:
|
|
584
|
+
return this.bkdView.config.getDecoderConfig().IDDocument.enabled;
|
|
583
585
|
}
|
|
584
586
|
}
|
|
585
587
|
|
|
@@ -614,6 +616,7 @@ export class BarkoderViewAndroid extends View {
|
|
|
614
616
|
this.bkdView.config.getDecoderConfig().Datalogic25.enabled = false;
|
|
615
617
|
this.bkdView.config.getDecoderConfig().COOP25.enabled = false;
|
|
616
618
|
this.bkdView.config.getDecoderConfig().Dotcode.enabled = false;
|
|
619
|
+
this.bkdView.config.getDecoderConfig().IDDocument.enabled = false;
|
|
617
620
|
decoders.forEach((dt: BarkoderConstants.DecoderType) => {
|
|
618
621
|
switch (dt) {
|
|
619
622
|
case BarkoderConstants.DecoderType.Aztec:
|
|
@@ -694,6 +697,9 @@ export class BarkoderViewAndroid extends View {
|
|
|
694
697
|
case BarkoderConstants.DecoderType.Dotcode:
|
|
695
698
|
this.bkdView.config.getDecoderConfig().Dotcode.enabled = true;
|
|
696
699
|
break;
|
|
700
|
+
case BarkoderConstants.DecoderType.IDDocument:
|
|
701
|
+
this.bkdView.config.getDecoderConfig().IDDocument.enabled = true;
|
|
702
|
+
break;
|
|
697
703
|
default:
|
|
698
704
|
break;
|
|
699
705
|
}
|
|
@@ -48,7 +48,8 @@ export enum DecoderType {
|
|
|
48
48
|
COOP25 = 24,
|
|
49
49
|
Code32 = 25,
|
|
50
50
|
Telepen = 26,
|
|
51
|
-
Dotcode = 27
|
|
51
|
+
Dotcode = 27,
|
|
52
|
+
IDDocument = 28
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
export enum FormattingType {
|
|
@@ -181,6 +182,7 @@ export class DekoderConfig {
|
|
|
181
182
|
code32?: BarcodeConfig;
|
|
182
183
|
telepen?: BarcodeConfig;
|
|
183
184
|
dotcode?: BarcodeConfig;
|
|
185
|
+
idDocument?: BarcodeConfig;
|
|
184
186
|
general?: GeneralSettings;
|
|
185
187
|
|
|
186
188
|
constructor(config: Partial<DekoderConfig>) {
|
|
@@ -217,6 +219,7 @@ export class DekoderConfig {
|
|
|
217
219
|
'Code 32': this.code32?.toMap(),
|
|
218
220
|
'Telepen': this.telepen?.toMap(),
|
|
219
221
|
'Dotcode': this.dotcode?.toMap(),
|
|
222
|
+
'IDDocument': this.dotcode?.toMap(),
|
|
220
223
|
'general': this.general?.toMap()
|
|
221
224
|
}
|
|
222
225
|
|
|
@@ -3,7 +3,7 @@ import { View } from "@nativescript/core";
|
|
|
3
3
|
import { ios } from "@nativescript/core/application";
|
|
4
4
|
|
|
5
5
|
export class BarkoderViewIOS extends View {
|
|
6
|
-
public bkdView:
|
|
6
|
+
public bkdView: any;
|
|
7
7
|
public licenseKeyProperty: any;
|
|
8
8
|
private _licenseKey: string;
|
|
9
9
|
|
|
@@ -533,6 +533,8 @@ export class BarkoderViewIOS extends View {
|
|
|
533
533
|
return this.bkdView.config.decoderConfig.coop25.enabled;
|
|
534
534
|
case BarkoderConstants.DecoderType.Dotcode:
|
|
535
535
|
return this.bkdView.config.decoderConfig.dotcode.enabled;
|
|
536
|
+
case BarkoderConstants.DecoderType.IDDocument:
|
|
537
|
+
return this.bkdView.config.decoderConfig.idDocument.enabled;
|
|
536
538
|
}
|
|
537
539
|
}
|
|
538
540
|
|
|
@@ -568,6 +570,7 @@ export class BarkoderViewIOS extends View {
|
|
|
568
570
|
this.bkdView.config.decoderConfig.coop25.enabled = false;
|
|
569
571
|
this.bkdView.config.decoderConfig.dotcode.enabled = false;
|
|
570
572
|
this.bkdView.config.decoderConfig.code32.enabled = false;
|
|
573
|
+
this.bkdView.config.decoderConfig.idDocument.enabled = false;
|
|
571
574
|
decoders.forEach((dt: BarkoderConstants.DecoderType) => {
|
|
572
575
|
switch (dt) {
|
|
573
576
|
case BarkoderConstants.DecoderType.Aztec:
|
|
@@ -648,6 +651,9 @@ export class BarkoderViewIOS extends View {
|
|
|
648
651
|
case BarkoderConstants.DecoderType.Dotcode:
|
|
649
652
|
this.bkdView.config.decoderConfig.dotcode.enabled = true;
|
|
650
653
|
break;
|
|
654
|
+
case BarkoderConstants.DecoderType.IDDocument:
|
|
655
|
+
this.bkdView.config.decoderConfig.idDocument.enabled = true;
|
|
656
|
+
break;
|
|
651
657
|
default:
|
|
652
658
|
break;
|
|
653
659
|
}
|
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
|
|
@@ -4,21 +4,36 @@
|
|
|
4
4
|
#import <Foundation/Foundation.h>
|
|
5
5
|
#import <CoreImage/CoreImage.h>
|
|
6
6
|
#import <CoreMedia/CoreMedia.h>
|
|
7
|
+
#if TARGET_OS_IOS
|
|
7
8
|
#import <UIKit/UIKit.h>
|
|
9
|
+
#else
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
|
|
8
13
|
|
|
9
14
|
typedef enum {
|
|
10
15
|
GlobalOption_SetMaximumThreads = 0,
|
|
11
16
|
GlobalOption_UseGPU,
|
|
12
17
|
GlobalOption_MulticodeCachingEnabled,
|
|
13
18
|
GlobalOption_MulticodeCachingDuration,
|
|
19
|
+
GlobalOption_LazyInitEnable,
|
|
20
|
+
GlobalOption_RestultLocationPreview,
|
|
21
|
+
GlobalOption_DisableGPUCompletely
|
|
14
22
|
} GlobalOption;
|
|
15
23
|
|
|
16
24
|
typedef enum {
|
|
17
25
|
Fast = 0,
|
|
18
26
|
Normal,
|
|
19
|
-
Slow
|
|
27
|
+
Slow,
|
|
28
|
+
Rigorous
|
|
20
29
|
} DecodingSpeed;
|
|
21
30
|
|
|
31
|
+
typedef enum {
|
|
32
|
+
Grayscale = 0,
|
|
33
|
+
YUV,
|
|
34
|
+
BGRA
|
|
35
|
+
} ColorFormat;
|
|
36
|
+
|
|
22
37
|
typedef enum {
|
|
23
38
|
Aztec,
|
|
24
39
|
AztecCompact,
|
|
@@ -47,7 +62,8 @@ typedef enum {
|
|
|
47
62
|
COOP25,
|
|
48
63
|
Code32,
|
|
49
64
|
Telepen,
|
|
50
|
-
Dotcode
|
|
65
|
+
Dotcode,
|
|
66
|
+
IDDocument
|
|
51
67
|
} DecoderType;
|
|
52
68
|
|
|
53
69
|
|
|
@@ -62,11 +78,13 @@ typedef enum {
|
|
|
62
78
|
// BKImage
|
|
63
79
|
//==========================================================================
|
|
64
80
|
@interface Image : NSObject
|
|
65
|
-
- (id)initWithPixels:(uint8_t *)pixels width: (int) width height: (int) height;
|
|
81
|
+
- (id)initWithPixels:(uint8_t *)pixels width: (int) width height: (int) height colorFormat: (ColorFormat) colorFormat;
|
|
66
82
|
|
|
67
83
|
@property (nonatomic, readwrite) uint8_t* pixels;
|
|
68
84
|
@property (nonatomic, readonly) int width;
|
|
69
85
|
@property (nonatomic, readonly) int height;
|
|
86
|
+
@property (nonatomic, readonly) ColorFormat colorFormat;
|
|
87
|
+
|
|
70
88
|
@end
|
|
71
89
|
|
|
72
90
|
//==========================================================================
|
|
@@ -79,12 +97,19 @@ typedef enum {
|
|
|
79
97
|
- (bool)isLicensed;
|
|
80
98
|
- (NSString *) typeName;
|
|
81
99
|
|
|
100
|
+
typedef enum {
|
|
101
|
+
Checksum_Disabled,
|
|
102
|
+
Checksum_Enabled
|
|
103
|
+
} StandardChecksum;
|
|
104
|
+
|
|
105
|
+
|
|
82
106
|
@property (nonatomic, readwrite) bool enabled;
|
|
83
107
|
@property (nonatomic, readwrite) int expectedCount;
|
|
84
108
|
@property (nonatomic, readonly) int minimumLength;
|
|
85
109
|
@property (nonatomic, readonly) int maximumLength;
|
|
86
110
|
@end
|
|
87
111
|
|
|
112
|
+
|
|
88
113
|
//==========================================================================
|
|
89
114
|
// Code 11 Config
|
|
90
115
|
//==========================================================================
|
|
@@ -104,13 +129,9 @@ typedef enum {
|
|
|
104
129
|
// Code 25 Config
|
|
105
130
|
//==========================================================================
|
|
106
131
|
@interface Code25Config : SpecificConfig
|
|
107
|
-
typedef enum {
|
|
108
|
-
Code25_Checksum_Disabled,
|
|
109
|
-
Code25_Checksum_Enabled
|
|
110
|
-
} Code25Checksum;
|
|
111
132
|
|
|
112
133
|
|
|
113
|
-
@property (nonatomic, readwrite)
|
|
134
|
+
@property (nonatomic, readwrite) StandardChecksum checksum;
|
|
114
135
|
|
|
115
136
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
116
137
|
@end
|
|
@@ -119,7 +140,7 @@ typedef enum {
|
|
|
119
140
|
// IATA 25 Config
|
|
120
141
|
//==========================================================================
|
|
121
142
|
@interface IATA25Config : SpecificConfig
|
|
122
|
-
@property (nonatomic, readwrite)
|
|
143
|
+
@property (nonatomic, readwrite) StandardChecksum checksum;
|
|
123
144
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
124
145
|
@end
|
|
125
146
|
|
|
@@ -127,7 +148,7 @@ typedef enum {
|
|
|
127
148
|
// Matrix 25 Config
|
|
128
149
|
//==========================================================================
|
|
129
150
|
@interface Matrix25Config : SpecificConfig
|
|
130
|
-
@property (nonatomic, readwrite)
|
|
151
|
+
@property (nonatomic, readwrite) StandardChecksum checksum;
|
|
131
152
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
132
153
|
@end
|
|
133
154
|
|
|
@@ -135,7 +156,7 @@ typedef enum {
|
|
|
135
156
|
// Datalogic 25 Config
|
|
136
157
|
//==========================================================================
|
|
137
158
|
@interface Datalogic25Config : SpecificConfig
|
|
138
|
-
@property (nonatomic, readwrite)
|
|
159
|
+
@property (nonatomic, readwrite) StandardChecksum checksum;
|
|
139
160
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
140
161
|
@end
|
|
141
162
|
|
|
@@ -143,7 +164,7 @@ typedef enum {
|
|
|
143
164
|
// COOP 25 Config
|
|
144
165
|
//==========================================================================
|
|
145
166
|
@interface COOP25Config : SpecificConfig
|
|
146
|
-
@property (nonatomic, readwrite)
|
|
167
|
+
@property (nonatomic, readwrite) StandardChecksum checksum;
|
|
147
168
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
148
169
|
@end
|
|
149
170
|
|
|
@@ -152,7 +173,7 @@ typedef enum {
|
|
|
152
173
|
//==========================================================================
|
|
153
174
|
@interface Interleaved25Config : SpecificConfig
|
|
154
175
|
|
|
155
|
-
@property (nonatomic, readwrite)
|
|
176
|
+
@property (nonatomic, readwrite) StandardChecksum checksum;
|
|
156
177
|
|
|
157
178
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
158
179
|
@end
|
|
@@ -327,6 +348,14 @@ typedef enum {
|
|
|
327
348
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
328
349
|
@end
|
|
329
350
|
|
|
351
|
+
//==========================================================================
|
|
352
|
+
// ID Document Config
|
|
353
|
+
//==========================================================================
|
|
354
|
+
@interface IDDocumentConfig : SpecificConfig
|
|
355
|
+
@property (nonatomic, readwrite) StandardChecksum masterChecksum;
|
|
356
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
357
|
+
@end
|
|
358
|
+
|
|
330
359
|
//==========================================================================
|
|
331
360
|
// Config
|
|
332
361
|
//==========================================================================
|
|
@@ -396,6 +425,8 @@ typedef enum {
|
|
|
396
425
|
@property (nonatomic, readonly, retain) PDF417MicroConfig* _Nonnull PDF417Micro;
|
|
397
426
|
@property (nonatomic, readonly, retain) DatamatrixConfig* _Nonnull datamatrix;
|
|
398
427
|
|
|
428
|
+
@property (nonatomic, readonly, retain) IDDocumentConfig* _Nonnull idDocument;
|
|
429
|
+
|
|
399
430
|
@property (nonatomic, readwrite) DecodingSpeed decodingSpeed;
|
|
400
431
|
@property (nonatomic, readwrite) NSString * _Nonnull encodingCharacterSet;
|
|
401
432
|
@property (nonatomic, readwrite) Formatting formatting;
|
|
@@ -451,9 +482,45 @@ typedef enum {
|
|
|
451
482
|
BT_COOP25,
|
|
452
483
|
BT_Code32,
|
|
453
484
|
BT_Telepen,
|
|
454
|
-
BT_Dotcode
|
|
485
|
+
BT_Dotcode,
|
|
486
|
+
BT_ID_Document,
|
|
487
|
+
BT_ID_Picture,
|
|
488
|
+
BT_ID_MRZ2,
|
|
489
|
+
BT_ID_MRZ3
|
|
490
|
+
|
|
455
491
|
} BarcodeType;
|
|
456
492
|
|
|
493
|
+
|
|
494
|
+
@interface BKLocation : NSObject {
|
|
495
|
+
CGPoint location[4];
|
|
496
|
+
}
|
|
497
|
+
@property (nonatomic, readwrite, retain) NSString *locationName;
|
|
498
|
+
|
|
499
|
+
-(CGPoint*) getLocationPoints;
|
|
500
|
+
|
|
501
|
+
@end;
|
|
502
|
+
|
|
503
|
+
@interface BKImageDescriptor : NSObject
|
|
504
|
+
|
|
505
|
+
#if TARGET_OS_OSX
|
|
506
|
+
@property (nonatomic, strong) NSImage *image;
|
|
507
|
+
#else
|
|
508
|
+
@property (nonatomic, strong) UIImage *image;
|
|
509
|
+
#endif
|
|
510
|
+
|
|
511
|
+
@property (nonatomic, strong) NSString *name;
|
|
512
|
+
|
|
513
|
+
- (instancetype)initWithImage:(
|
|
514
|
+
|
|
515
|
+
#if TARGET_OS_OSX
|
|
516
|
+
NSImage
|
|
517
|
+
#else
|
|
518
|
+
UIImage
|
|
519
|
+
#endif
|
|
520
|
+
*)image name:(NSString *)name;
|
|
521
|
+
|
|
522
|
+
@end
|
|
523
|
+
|
|
457
524
|
@interface DecoderResult : NSObject {
|
|
458
525
|
CGPoint location[4];
|
|
459
526
|
}
|
|
@@ -464,6 +531,8 @@ typedef enum {
|
|
|
464
531
|
@property (nonatomic, readwrite, retain) NSString* textualData;
|
|
465
532
|
@property (nonatomic, readwrite, retain) NSString* characterSet;
|
|
466
533
|
@property (nonatomic, readwrite, retain) NSDictionary* extra;
|
|
534
|
+
@property (nonatomic, readwrite, retain) NSArray<BKLocation*>* extraLocations;
|
|
535
|
+
@property (nonatomic, readwrite, retain) NSArray<BKImageDescriptor*>* images;
|
|
467
536
|
|
|
468
537
|
-(int)polygonPointCount;
|
|
469
538
|
-(CGPoint)polygonPointAt:(int)index;
|
|
@@ -471,6 +540,9 @@ typedef enum {
|
|
|
471
540
|
-(NSArray<NSString*>*)getAllKeys;
|
|
472
541
|
-(CGPoint)locationAt:(int)index;
|
|
473
542
|
-(CGPoint*) getLocationPoints;
|
|
543
|
+
-(BKLocation *)getLocationFromExtras:(NSString *)locationName;
|
|
544
|
+
-(NSArray *)getLocationsNamesFromExtras;
|
|
545
|
+
|
|
474
546
|
|
|
475
547
|
@end
|
|
476
548
|
|
|
@@ -482,12 +554,29 @@ typedef enum {
|
|
|
482
554
|
+(NSString *) GetLibVersion;
|
|
483
555
|
+(bool) IsStringVINCompliant: (NSString *) VINString checkLevel: (int) checkLevel;
|
|
484
556
|
+(bool) IsDecoderBusy;
|
|
557
|
+
|
|
558
|
+
+(NSArray<DecoderResult*>*)decodeImage:(Config*)config imageRef:(void*)imageRef imageWidth:(int)width imageHeight:(int) height;
|
|
559
|
+
+(NSArray<DecoderResult*>*)decodeImage:(Config*)config imageRef:(void*)imageRef imageWidth:(int)width imageHeight:(int) height colorFormat: (ColorFormat) colorFormat;
|
|
560
|
+
|
|
485
561
|
+(NSArray<DecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height;
|
|
562
|
+
+(NSArray<DecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height colorFormat: (ColorFormat) colorFormat;
|
|
563
|
+
|
|
486
564
|
+(int) decodeImageAsync:(Config*)config image: (Image*) image callback:(void (^)(NSArray<DecoderResult*>*, Image*)) callback;
|
|
487
565
|
+(int) decodeSampleBufferAsync:(Config*)config sampleBuffer:(CMSampleBufferRef)sampleBuffer callback:(void (^)(NSArray<DecoderResult*>*, CMSampleBufferRef)) callback;
|
|
488
566
|
+ (unsigned char*)CGImageToPixels:(CGImageRef) image;
|
|
489
567
|
+ (CGImageRef) CGImageFromPixels:(const char*)pixels width:(int)width height:(int)height;
|
|
568
|
+
#if TARGET_OS_IOS
|
|
490
569
|
+ (UIImage *) UIImageFromPixels:(uint8_t*)pixels width:(int)width height:(int)height;
|
|
570
|
+
#else
|
|
571
|
+
#endif
|
|
572
|
+
#if TARGET_OS_OSX
|
|
573
|
+
+ (NSImage *)UIImageFromLocation:(NSImage *)source points:(CGPoint[4])points marginPercent:(float)marginPercent;
|
|
574
|
+
#else
|
|
575
|
+
+ (UIImage *)UIImageFromLocation:(UIImage *)source points:(CGPoint[4])points marginPercent:(float)marginPercent;
|
|
576
|
+
#endif
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
491
580
|
|
|
492
581
|
@end
|
|
493
582
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
"MaxPool" : 3,
|
|
37
|
+
"Add" : 9,
|
|
38
|
+
"Reshape" : 8,
|
|
39
|
+
"Sigmoid" : 2,
|
|
40
|
+
"Split" : 11,
|
|
41
|
+
"Conv" : 73
|
|
42
|
+
},
|
|
43
|
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
|
44
|
+
"isUpdatable" : "0",
|
|
45
|
+
"availability" : {
|
|
46
|
+
"macOS" : "12.0",
|
|
47
|
+
"tvOS" : "15.0",
|
|
48
|
+
"visionOS" : "1.0",
|
|
49
|
+
"watchOS" : "8.0",
|
|
50
|
+
"iOS" : "15.0",
|
|
51
|
+
"macCatalyst" : "15.0"
|
|
52
|
+
},
|
|
53
|
+
"modelType" : {
|
|
54
|
+
"name" : "MLModelType_mlProgram"
|
|
55
|
+
},
|
|
56
|
+
"inputSchema" : [
|
|
57
|
+
{
|
|
58
|
+
"height" : "256",
|
|
59
|
+
"colorspace" : "RGB",
|
|
60
|
+
"isOptional" : "0",
|
|
61
|
+
"width" : "384",
|
|
62
|
+
"isColor" : "1",
|
|
63
|
+
"formattedType" : "Image (Color 384 × 256)",
|
|
64
|
+
"hasSizeFlexibility" : "0",
|
|
65
|
+
"type" : "Image",
|
|
66
|
+
"shortDescription" : "",
|
|
67
|
+
"name" : "image"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"userDefinedMetadata" : {
|
|
71
|
+
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
72
|
+
"stride" : "32",
|
|
73
|
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
74
|
+
"docs" : "https:\/\/docs.ultralytics.com",
|
|
75
|
+
"task" : "obb",
|
|
76
|
+
"com.github.apple.coremltools.version" : "7.2",
|
|
77
|
+
"imgsz" : "[256, 384]",
|
|
78
|
+
"date" : "2024-08-01T09:34:45.251931",
|
|
79
|
+
"batch" : "1",
|
|
80
|
+
"names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}"
|
|
81
|
+
},
|
|
82
|
+
"generatedClassName" : "float16_384x256",
|
|
83
|
+
"method" : "predict"
|
|
84
|
+
}
|
|
85
|
+
]
|