barkoder-nativescript
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -1234,8 +1234,17 @@ import { BarkoderConstants } from "./barkoder-nativescript.common"; | ||
setVideoStabilization(enabled: boolean) : void { | ||
this.bkdView.setVideoStabilization(enabled) | ||
this.bkdView.setVideoStabilization(enabled); | ||
} | ||
setCamera(cameraPosition: BarkoderConstants.BarkoderCameraPosition) : void { | ||
if(cameraPosition == BarkoderConstants.BarkoderCameraPosition.Front) { | ||
this.bkdView.setCamera(com.barkoder.enums.BarkoderCameraPosition.FRONT); | ||
} else if (cameraPosition == BarkoderConstants.BarkoderCameraPosition.Back) { | ||
this.bkdView.setCamera(com.barkoder.enums.BarkoderCameraPosition.BACK); | ||
} | ||
} | ||
setLicenseKey(licenseKey: string): void { | ||
@@ -1242,0 +1251,0 @@ this.bkdView.config = new com.barkoder.BarkoderConfig( |
@@ -99,2 +99,7 @@ import { Observable } from 'tns-core-modules/data/observable'; | ||
export enum BarkoderCameraPosition { | ||
Back = 0, | ||
Front = 1 | ||
} | ||
export class Common extends Observable { | ||
@@ -101,0 +106,0 @@ |
@@ -1250,3 +1250,11 @@ import { BarkoderConstants } from "./barkoder-nativescript.common"; | ||
setCamera(cameraPosition: BarkoderConstants.BarkoderCameraPosition): void { | ||
if(cameraPosition == BarkoderConstants.BarkoderCameraPosition.Front) { | ||
this.bkdView.setCamera(BarkoderCameraPosition.FRONT); | ||
} else if (cameraPosition == BarkoderConstants.BarkoderCameraPosition.Back) { | ||
this.bkdView.setCamera(BarkoderCameraPosition.BACK); | ||
} | ||
} | ||
/** | ||
@@ -1253,0 +1261,0 @@ * Configures the Barkoder functionality based on the provided configuration |
{ | ||
"name": "barkoder-nativescript", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Nativescript support for Barkoder - a Barcode Scanner SDK for the modern enterprise.", | ||
@@ -5,0 +5,0 @@ "main": "barkoder-nativescript", |
@@ -74,10 +74,10 @@ [ | ||
"userDefinedMetadata" : { | ||
"stride" : "32", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"stride" : "32", | ||
"task" : "obb", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"date" : "2024-08-01T09:34:45.251931", | ||
"imgsz" : "[256, 384]", | ||
"date" : "2024-08-01T09:34:45.251931", | ||
"batch" : "1", | ||
@@ -84,0 +84,0 @@ "names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}" |
@@ -77,5 +77,5 @@ [ | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"task" : "obb", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"task" : "obb", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"imgsz" : "[384, 512]", | ||
@@ -82,0 +82,0 @@ "date" : "2024-08-01T17:19:19.267647", |
@@ -75,4 +75,4 @@ [ | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"stride" : "32", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
@@ -79,0 +79,0 @@ "task" : "obb", |
@@ -74,10 +74,10 @@ [ | ||
"userDefinedMetadata" : { | ||
"stride" : "32", | ||
"com.github.apple.coremltools.version" : "7.2", | ||
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121", | ||
"com.github.apple.coremltools.source_dialect" : "TorchScript", | ||
"task" : "obb", | ||
"docs" : "https:\/\/docs.ultralytics.com", | ||
"task" : "obb", | ||
"stride" : "32", | ||
"imgsz" : "[384, 512]", | ||
"date" : "2024-08-01T17:19:19.267647", | ||
"imgsz" : "[384, 512]", | ||
"batch" : "1", | ||
@@ -84,0 +84,0 @@ "names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
83242501
27131