-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (90 loc) · 3.5 KB
/
index.html
File metadata and controls
90 lines (90 loc) · 3.5 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Hair Segmentation</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/index.css">
<script src="js/tf.min.js"></script>
<script src="js/tfjs-converter.js"></script>
<script src="js/tfjs-core.js"></script>
<script src="js/facemesh.js"></script>
<script async src="js/opencv.js" onload="onOpenCvReady();"></script>
<script defer src="js/index.js"></script>
</head>
<body>
<div>
<button type="button" class="btn btn-secondary" onclick="makeupType('hair')">Hair Segmentation</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('faceblush')">Face Blush</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('facefoundation')">Face Foundation</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('faceconcealer')">Face Concealer</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('eyebrow')">Eye Brows</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('eyecolor')">Eye Color</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('eyelashes')">Eye Lashes</button>
<button type="button" class="btn btn-secondary" onclick="makeupType('eyeliner')">Eye Liner </button>
</div>
<div class="row">
<div class="col-sm">
<h1>Image</h1>
<div>`
<input type="file" id="srcImageInput" name="file" />
</div>
<div>
<img id="srcImage" alt="No Image" />
<canvas id="imageOutput"></canvas>
</div>
</div>
<div class="col-sm">
<h1>Video</h1>
<video id="video" autoplay muted style="
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
display: none;">
</video>
<canvas id="videoOutput"></canvas>
</div>
<div class="col-sm">
<h1>Color</h1>
<div class="d-flex flex-row">
<div class="color-btn">
<img src="assets/clean.png" width="40" class="reset-btn"/>
</div>
<div class="color-btn">
<svg width="46" height="46">
<circle cx="23" cy="23" r="20" stroke="#fff" stroke-width="1px" fill="#ff9f2d"></circle>
</svg>
</div>
<div class="color-btn">
<svg width="46" height="46">
<circle cx="23" cy="23" r="20" stroke="#fff" stroke-width="1px" fill="#bf5484"></circle>
</svg>
</div>
<div class="color-btn">
<svg width="46" height="46">
<circle cx="23" cy="23" r="20" stroke="#fff" stroke-width="1px" fill="#8d354a"></circle>
</svg>
</div>
<div class="color-btn">
<svg width="46" height="46">
<circle cx="23" cy="23" r="20" stroke="#fff" stroke-width="1px" fill="#9c6550"></circle>
</svg>
</div>
<div class="color-btn">
<svg width="46" height="46">
<circle cx="23" cy="23" r="20" stroke="#fff" stroke-width="1px" fill="#9d0109"></circle>
</svg>
</div>
<div class="color-btn">
<svg width="46" height="46">
<circle cx="23" cy="23" r="20" stroke="#fff" stroke-width="1px" fill="#005db2"></circle>
</svg>
</div>
</div>
</div>
</div>
</body>
</html>