Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b98ef9e

Browse files
torch demo
1 parent da65271 commit b98ef9e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

demo-ng/app/tabs/mlkit/barcodescanning/barcodescanning.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ export class BarcodeScanningComponent extends AbstractMLKitViewComponent {
1313
format: string;
1414
}>;
1515

16-
constructor() {
17-
super();
18-
// let's start with the torch on, just for show
19-
this.torchOn = true;
20-
}
21-
2216
onBarcodeScanResult(event: any): void {
2317
const result: MLKitScanBarcodesOnDeviceResult = event.value;
2418
this.barcodes = result.barcodes;
19+
console.log("this.barcodes: " + JSON.stringify(this.barcodes));
2520
}
2621
}

demo-ng/app/tabs/mlkit/imagelabeling/imagelabeling.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ export class ImageLabelingComponent extends AbstractMLKitViewComponent {
1313
confidence: number;
1414
}>;
1515

16+
constructor() {
17+
super();
18+
// let's start with the torch on, just for show
19+
this.torchOn = true;
20+
}
21+
1622
onImageLabelingResult(scanResult: any): void {
1723
const value: MLKitImageLabelingOnDeviceResult = scanResult.value;
1824
this.labels = value.labels;

0 commit comments

Comments
 (0)