Spaces:
Running
Running
Update index.html
Browse files- index.html +56 -18
index.html
CHANGED
|
@@ -1,19 +1,57 @@
|
|
| 1 |
-
<!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright 2023 The MediaPipe Authors.
|
| 2 |
+
|
| 3 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
you may not use this file except in compliance with the License.
|
| 5 |
+
You may obtain a copy of the License at
|
| 6 |
+
|
| 7 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
|
| 9 |
+
Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
See the License for the specific language governing permissions and
|
| 13 |
+
limitations under the License. -->
|
| 14 |
<html>
|
| 15 |
+
<head>
|
| 16 |
+
<meta charset="utf-8">
|
| 17 |
+
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
|
| 18 |
+
<meta http-equiv="Pragma" content="no-cache">
|
| 19 |
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
| 20 |
+
<title>Face Landmarker</title>
|
| 21 |
+
|
| 22 |
+
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
|
| 23 |
+
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
|
| 24 |
+
</head>
|
| 25 |
+
<body>
|
| 26 |
+
<h1>Face landmark detection using the MediaPipe FaceLandmarker task</h1>
|
| 27 |
+
|
| 28 |
+
<section id="demos" class="invisible">
|
| 29 |
+
<h2>Demo: Detecting Images</h2>
|
| 30 |
+
<p><b>Click on an image below</b> to see the key landmarks of the face.</p>
|
| 31 |
+
|
| 32 |
+
<div class="detectOnClick">
|
| 33 |
+
<img src="https://storage.googleapis.com/mediapipe-assets/portrait.jpg" width="100%" crossorigin="anonymous" title="Click to get detection!" />
|
| 34 |
+
</div>
|
| 35 |
+
<div class="blend-shapes">
|
| 36 |
+
<ul class="blend-shapes-list" id="image-blend-shapes"></ul>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<h2>Demo: Webcam continuous face landmarks detection</h2>
|
| 40 |
+
<p>Hold your face in front of your webcam to get real-time face landmarker detection.</br>Click <b>enable webcam</b> below and grant access to the webcam if prompted.</p>
|
| 41 |
+
|
| 42 |
+
<div id="liveView" class="videoView">
|
| 43 |
+
<button id="webcamButton" class="mdc-button mdc-button--raised">
|
| 44 |
+
<span class="mdc-button__ripple"></span>
|
| 45 |
+
<span class="mdc-button__label">ENABLE WEBCAM</span>
|
| 46 |
+
</button>
|
| 47 |
+
<div style="position: relative;">
|
| 48 |
+
<video id="webcam" style="position: abso" autoplay playsinline></video>
|
| 49 |
+
<canvas class="output_canvas" id="output_canvas" style="position: absolute; left: 0px; top: 0px;"></canvas>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
<div class="blend-shapes">
|
| 53 |
+
<ul class="blend-shapes-list" id="video-blend-shapes"></ul>
|
| 54 |
+
</div>
|
| 55 |
+
</section>
|
| 56 |
+
</body>
|
| 57 |
+
</html>
|