-
Notifications
You must be signed in to change notification settings - Fork 0
/
facedetection.xml
76 lines (65 loc) · 2.58 KB
/
facedetection.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:src="@drawable/ic_camera_black_24dp"
app:backgroundTint="@color/colorPrimaryDark"
app:fabSize="normal"
app:maxImageSize="40dp"/>
<ImageButton
android:id="@+id/imgbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginStart="20dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/btn"
android:src="@drawable/ic_camera_alt_black_24dp" />
<TextView
android:id="@+id/output"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/progress_horizontal"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="output"
android:textColor="#000"
android:textSize="17sp" />
<FrameLayout
android:id="@+id/frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/btn">
<com.camerakit.CameraKitView
android:id="@+id/camera"
android:layout_width="match_parent"
android:layout_height="400dp"
android:adjustViewBounds="true"
android:keepScreenOn="true"
app:camera_facing="front"
app:camera_flash="auto"
app:camera_focus="continuous"
app:camera_permissions="camera">
</com.camerakit.CameraKitView>
</FrameLayout>
<ProgressBar
android:id="@+id/progress_horizontal"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/frame"
android:indeterminate="true"
android:indeterminateBehavior="repeat"
android:visibility="invisible" />
<com.example.machine_learning.GraphicOverlay
android:id="@+id/graphic_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>