-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
129 lines (121 loc) · 6.1 KB
/
App.vue
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<template>
<v-app>
<v-app-bar dense app>
<v-toolbar-title class="font-black"><h3>Custom Measure</h3></v-toolbar-title>
</v-app-bar>
<v-content>
<!-- <v-tabs>
<v-tab>App</v-tab>
<v-tab>Upload Data</v-tab>
<v-tab-item> -->
<v-stepper v-model="currentStep">
<v-stepper-header>
<v-stepper-step :complete="currentStep > 1" step="1">Welcome</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step :complete="currentStep > 2" step="2">Lights & Clothes</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step :complete="currentStep > 3" step="3">Camera</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step :complete="currentStep > 4" step="4">Steps</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step step="5">Turn</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step step="6">Measure</v-stepper-step>
</v-stepper-header>
<v-stepper-items>
<v-stepper-content step="1">
<v-card min-height="400px" class="d-flex justify-center align-center flex-column">
<h1>Welcome to Custom-Measure</h1>
<p>Follow the next steps to prepare and measure your body. This tool approximates your body measurements using Artificial intelligence</p>
<!-- <p class="text-caption">Note: By using this app you agree that data submitted in this app may be used for diagnostic purposes</p> -->
<v-btn
color="primary"
@click="currentStep = 2"
>
Continue
</v-btn>
</v-card>
</v-stepper-content>
<v-stepper-content step="2">
<v-card min-height="400px" class="d-flex justify-center align-center flex-column">
<img width=80% src="img/SVG/Step2.svg">
<p>Make sure the room is well lit, wear fit clothes for accurate results</p>
<v-btn
color="primary"
@click="currentStep = 3"
>
Continue
</v-btn>
</v-card>
</v-stepper-content>
<v-stepper-content step="3">
<v-card min-height="400px" class="d-flex justify-center align-center flex-column">
<img width=80% src="img/SVG/Step3.svg">
<p>Place the Mobile on a chair or align the laptop's webcam for full view of body.</p>
<v-btn
color="primary"
@click="currentStep = 4"
>
Continue
</v-btn>
</v-card>
</v-stepper-content>
<v-stepper-content step="4">
<v-card min-height="400px" class="d-flex justify-center align-center flex-column">
<img width=80% src="img/SVG/Step4.svg">
<p>Stand <strong>still</strong> in attention position for a few seconds and then turn to your right side when the prompt comes. Our AI will estimate the measurements</p>
<v-btn
color="primary"
@click="currentStep = 5"
>
Continue
</v-btn>
</v-card>
</v-stepper-content>
<v-stepper-content step="5">
<v-card min-height="400px" class="d-flex justify-center align-center flex-column">
<img width=80% src="img/SVG/Step5.svg">
<p>Turn to <strong>your right</strong> side when instructed</p>
<v-btn
color="primary"
@click="currentStep = 6"
>
Continue
</v-btn>
</v-card>
</v-stepper-content>
<v-stepper-content step="6">
<camera-predict></camera-predict>
</v-stepper-content>
</v-stepper-items>
</v-stepper>
<!-- </v-tab-item>
<v-tab-item>
<app-upload></app-upload>
</v-tab-item>
</v-tabs>-->
</v-content>
</v-app>
</template>
<script>
import AppUpload from './AppUpload'
import CameraPredict from './CameraPredict'
export default {
name: "app",
data: function() {
return{
currentStep: 1,
}
},
components: {
AppUpload,
CameraPredict
}
}
</script>
<style lang="css">
img {
object-fit: contain;
max-height: 500px;
}
</style>