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

Commit 298fcc1

Browse files
cleanup
1 parent 3118703 commit 298fcc1

4 files changed

Lines changed: 30 additions & 26 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44

55
<GridLayout>
66
<MLKitBarcodeScanner
7-
width="100%" height="100%"
7+
width="100%"
8+
height="100%"
89
formats="QR_CODE, EAN_8, EAN_13"
910
android:processEveryNthFrame="5"
1011
ios:processEveryNthFrame="10"
1112
(scanResult)="onBarcodeScanResult($event)">
1213
</MLKitBarcodeScanner>
13-
14+
1415
<GridLayout rows="*, 320, *" columns="*, 5/6*, *">
15-
<Label class="mask" row="0" col="0" colSpan="3"></Label>
16+
<Label class="mask" row="0" col="0" colSpan="3"></Label>
1617
<Label class="mask" row="2" col="0" colSpan="3"></Label>
17-
<Label class="mask" row="1" col="0"></Label>
18+
<Label class="mask" row="1" col="0"></Label>
1819
<Label class="mask" row="1" col="2"></Label>
1920
<GridLayout row="1" col="1" rows="1/6*, *, 1/6*" columns="1/6*, *, 1/6*">
2021
<Label class="frame-top-left" row="0" col="0"></Label>
@@ -34,7 +35,7 @@
3435
<Label height="1" marginBottom="1" borderBottomWidth="1" borderColor="rgba(81, 184, 237, 1)"></Label>
3536
</StackLayout>
3637
</GridLayout>
37-
<Label row="0" col="1" class="text-center c-white" textWrap="true" verticalAlignment="center" text="The scanner has been configured to detect QR codes, EAN 8 and EAN 13. It processes every 5th frame (default 10). These settings can be tweaked in your usage of the plugin."></Label>
38+
<Label row="0" col="1" class="text-center c-white" textWrap="true" verticalAlignment="center" text="The scanner has been configured to detect QR codes, EAN 8 and EAN 13. It processes every 5th frame (default 10). These settings can be tweaked in your usage of the plugin."></Label>
3839
<ListView row="2" col="0" colSpan="3" [items]="barcodes" class="m-t-20" backgroundColor="transparent">
3940
<ng-template let-item="item">
4041
<GridLayout columns="2*, 3*">

demo-ng/app/tabs/mlkit/facedetection/facedetection.component.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
<GridLayout rows="6/8*, 2/8*">
66
<GridLayout row="0">
77
<MLKitFaceDetection
8-
width="100%" height="100%"
8+
width="100%"
9+
height="100%"
910
processEveryNthFrame="30"
1011
(scanResult)="onFaceDetectionResult($event)">
1112
</MLKitFaceDetection>
12-
13+
1314
<GridLayout rows="*, 250, *" columns="*, 5/6*, *">
14-
<Label class="mask" row="0" col="0" colSpan="3"></Label>
15+
<Label class="mask" row="0" col="0" colSpan="3"></Label>
1516
<Label class="mask" row="2" col="0" colSpan="3"></Label>
16-
<Label class="mask" row="1" col="0"></Label>
17+
<Label class="mask" row="1" col="0"></Label>
1718
<Label class="mask" row="1" col="2"></Label>
1819
<GridLayout row="1" col="1" rows="1/6*, *, 1/6*" columns="1/6*, *, 1/6*">
1920
<Label class="frame-top-left" row="0" col="0"></Label>
@@ -33,15 +34,15 @@
3334
<Label height="1" marginBottom="1" borderBottomWidth="1" borderColor="rgba(81, 184, 237, 1)"></Label>
3435
</StackLayout>
3536
</GridLayout>
36-
<Label row="0" col="1" class="text-center c-white" textWrap="true" color="white" verticalAlignment="center" text="The scanner has been configured to detect faces every 30th frame (default is 10). You can tweak this in your usage of the plugin."></Label>
37+
<Label row="0" col="1" class="text-center c-white" textWrap="true" color="white" verticalAlignment="center" text="The scanner has been configured to detect faces every 30th frame (default is 10). You can tweak this in your usage of the plugin."></Label>
3738
<StackLayout row="2" col="0" colSpan="3">
38-
<Label [text]="mlKitAllOK" textWrap="true" class="m-t-5 c-purple"></Label>
39-
<GridLayout row="auto" columns="*, *, *" class="m-t-5">
40-
<Label row="0" col="0" class="mlkit-result font-weight-bold" textWrap="true" text="Smiling"></Label>
41-
<Label row="0" col="1" class="mlkit-result font-weight-bold" textWrap="true" text="Left 👁 open"></Label>
42-
<Label row="0" col="2" class="mlkit-result font-weight-bold" textWrap="true" text="Right 👁 open"></Label>
43-
</GridLayout>
44-
</StackLayout>
39+
<Label [text]="mlKitAllOK" textWrap="true" class="m-t-5 c-purple"></Label>
40+
<GridLayout row="auto" columns="*, *, *" class="m-t-5">
41+
<Label row="0" col="0" class="mlkit-result font-weight-bold" textWrap="true" text="Smiling"></Label>
42+
<Label row="0" col="1" class="mlkit-result font-weight-bold" textWrap="true" text="Left 👁 open"></Label>
43+
<Label row="0" col="2" class="mlkit-result font-weight-bold" textWrap="true" text="Right 👁 open"></Label>
44+
</GridLayout>
45+
</StackLayout>
4546
</GridLayout>
4647
</GridLayout>
4748
<ListView backgroundColor="black" row="1" [items]="faces">

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
<GridLayout>
66
<MLKitImageLabeling
7-
width="100%" height="100%"
7+
width="100%"
8+
height="100%"
89
confidenceThreshold="0.6"
910
(scanResult)="onImageLabelingResult($event)">
1011
</MLKitImageLabeling>
11-
12+
1213
<GridLayout rows="*, 320, *" columns="*, 5/6*, *">
13-
<Label class="mask" row="0" col="0" colSpan="3"></Label>
14+
<Label class="mask" row="0" col="0" colSpan="3"></Label>
1415
<Label class="mask" row="2" col="0" colSpan="3"></Label>
15-
<Label class="mask" row="1" col="0"></Label>
16+
<Label class="mask" row="1" col="0"></Label>
1617
<Label class="mask" row="1" col="2"></Label>
1718
<GridLayout row="1" col="1" rows="1/6*, *, 1/6*" columns="1/6*, *, 1/6*">
1819
<Label class="frame-top-left" row="0" col="0"></Label>

demo-ng/app/tabs/mlkit/textrecognition/textrecognition.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
<GridLayout>
66
<MLKitTextRecognition
7-
width="100%" height="100%"
8-
(scanResult)="onTextRecognitionResult($event)">
7+
width="100%"
8+
height="100%"
9+
(scanResult)="onTextRecognitionResult($event)">
910
</MLKitTextRecognition>
10-
11+
1112
<GridLayout rows="*, 320, *" columns="*, 5/6*, *">
12-
<Label class="mask" row="0" col="0" colSpan="3"></Label>
13+
<Label class="mask" row="0" col="0" colSpan="3"></Label>
1314
<Label class="mask" row="2" col="0" colSpan="3"></Label>
14-
<Label class="mask" row="1" col="0"></Label>
15+
<Label class="mask" row="1" col="0"></Label>
1516
<Label class="mask" row="1" col="2"></Label>
1617
<GridLayout row="1" col="1" rows="1/6*, *, 1/6*" columns="1/6*, *, 1/6*">
1718
<Label class="frame-top-left" row="0" col="0"></Label>

0 commit comments

Comments
 (0)