forked from NativeScript/mlkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmlkit-core.component.html
More file actions
15 lines (15 loc) · 1.15 KB
/
Copy pathmlkit-core.component.html
File metadata and controls
15 lines (15 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<ActionBar title="mlkit-core" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<GridLayout rows="*,auto,auto,auto,auto,auto,auto,auto,auto,auto" height="100%">
<MLKitView [torchOn]="torchOn" [pause]="isPaused" height="100%" rowSpan="3" (loaded)="onLoaded($event)" cameraPosition="back" [detectionType]="detectorType" (detection)="onDetection($event)"></MLKitView>
<Button row="1" height="40" text="Toggle Camera" (tap)="toggleCamera($event)"></Button>
<Button row="2" height="40" text="Request Camera Permission" (tap)="requestPermission($event)"></Button>
<Label row="3" [text]="'Detecting ' + detectorType"></Label>
<Button row="4" height="40" text="Change Detector Type" (tap)="changeType($event)"></Button>
<Label row="5" [text]="'isPaused : ' + isPaused"></Label>
<Button row="6" height="40" text="Toggle Pause" (tap)="togglePause($event)"></Button>
<Label row="7" [text]="'Torch On : ' + torchOn"></Label>
<Button row="8" height="40" text="Toggle Torch" (tap)="toggleTorch($event)"></Button>
<Button row="9" height="40" text="Process Still Image" (tap)="processStill($event)"></Button>
</GridLayout>
</StackLayout>