|
5 | 5 | <GridLayout rows="6/8*, 2/8*"> |
6 | 6 | <GridLayout row="0"> |
7 | 7 | <MLKitFaceDetection |
| 8 | + width="100%" height="100%" |
8 | 9 | processEveryNthFrame="30" |
9 | 10 | (scanResult)="onFaceDetectionResult($event)"> |
10 | 11 | </MLKitFaceDetection> |
11 | 12 |
|
12 | | - <GridLayout rows="*, 320, *" columns="*, 5/6*, *"> |
| 13 | + <GridLayout rows="*, 250, *" columns="*, 5/6*, *"> |
13 | 14 | <Label class="mask" row="0" col="0" colSpan="3"></Label> |
14 | 15 | <Label class="mask" row="2" col="0" colSpan="3"></Label> |
15 | 16 | <Label class="mask" row="1" col="0"></Label> |
|
32 | 33 | <Label height="1" marginBottom="1" borderBottomWidth="1" borderColor="rgba(81, 184, 237, 1)"></Label> |
33 | 34 | </StackLayout> |
34 | 35 | </GridLayout> |
35 | | - <Label row="0" col="1" class="text-center" 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> |
| 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> |
36 | 37 | <StackLayout row="2" col="0" colSpan="3"> |
37 | 38 | <Label [text]="mlKitAllOK" textWrap="true" class="m-t-5 c-purple"></Label> |
38 | | - <GridLayout columns="*, *, *" class="m-t-5"> |
39 | | - <Label col="0" class="mlkit-result font-weight-bold" textWrap="true" text="Smiling"></Label> |
40 | | - <Label col="1" class="mlkit-result font-weight-bold" textWrap="true" text="Left 👁 open"></Label> |
41 | | - <Label col="2" class="mlkit-result font-weight-bold" textWrap="true" text="Right 👁 open"></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> |
42 | 43 | </GridLayout> |
43 | 44 | </StackLayout> |
44 | 45 | </GridLayout> |
45 | 46 | </GridLayout> |
46 | 47 | <ListView backgroundColor="black" row="1" [items]="faces"> |
47 | 48 | <ng-template let-item="item"> |
48 | 49 | <GridLayout columns="*, *, *"> |
49 | | - <Label col="0" class="mlkit-result" [class.c-purple]="item.smilingProbability > 0.7" [text]="item.smilingProbability | number" textWrap="true"></Label> |
50 | | - <Label col="1" class="mlkit-result" [class.c-purple]="item.leftEyeOpenProbability > 0.7" [text]="item.leftEyeOpenProbability | number" textWrap="true"></Label> |
51 | | - <Label col="2" class="mlkit-result" [class.c-purple]="item.rightEyeOpenProbability > 0.7" [text]="item.rightEyeOpenProbability | number" textWrap="true"></Label> |
| 50 | + <Label col="0" class="mlkit-result c-black" [class.c-purple]="item.smilingProbability > 0.7" [text]="item.smilingProbability | number" textWrap="true"></Label> |
| 51 | + <Label col="1" class="mlkit-result c-black" [class.c-purple]="item.leftEyeOpenProbability > 0.7" [text]="item.leftEyeOpenProbability | number" textWrap="true"></Label> |
| 52 | + <Label col="2" class="mlkit-result c-black" [class.c-purple]="item.rightEyeOpenProbability > 0.7" [text]="item.rightEyeOpenProbability | number" textWrap="true"></Label> |
52 | 53 | </GridLayout> |
53 | 54 | </ng-template> |
54 | 55 | </ListView> |
|
0 commit comments