Spaces:
No application file
No application file
Create index.html
Browse files- index.html +47 -0
index.html
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
|
| 15 |
+
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
|
| 16 |
+
</script>
|
| 17 |
+
|
| 18 |
+
<body>
|
| 19 |
+
<h1>Pose detection using the MediaPipe PoseLandmarker task</h1>
|
| 20 |
+
|
| 21 |
+
<section id="demos" class="invisible">
|
| 22 |
+
<h2>Demo: Detecting Images</h2>
|
| 23 |
+
<p><b>Click on an image below</b> to see the key landmarks of the body.</p>
|
| 24 |
+
|
| 25 |
+
<div class="detectOnClick">
|
| 26 |
+
<!-- source: https://pixabay.com/photos/woman-asia-beautiful-cambodia-1822514/ -->
|
| 27 |
+
<img src="https://assets.codepen.io/9177687/woman-ge0f199f92_640.jpg" width="100%" crossorigin="anonymous" title="Click to get detection!" />
|
| 28 |
+
</div>
|
| 29 |
+
<div class="detectOnClick">
|
| 30 |
+
<!-- source: https://pixabay.com/photos/woman-relaxation-portrait-3053489/ -->
|
| 31 |
+
<img src="https://assets.codepen.io/9177687/woman-g1af8d3deb_640.jpg" width="100%" crossorigin="anonymous" title="Click to get detection!" />
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<h2>Demo: Webcam continuous pose landmarks detection</h2>
|
| 35 |
+
<p>Stand in front of your webcam to get real-time pose landmarker detection.</br>Click <b>enable webcam</b> below and grant access to the webcam if prompted.</p>
|
| 36 |
+
|
| 37 |
+
<div id="liveView" class="videoView">
|
| 38 |
+
<button id="webcamButton" class="mdc-button mdc-button--raised">
|
| 39 |
+
<span class="mdc-button__ripple"></span>
|
| 40 |
+
<span class="mdc-button__label">ENABLE WEBCAM</span>
|
| 41 |
+
</button>
|
| 42 |
+
<div style="position: relative;">
|
| 43 |
+
<video id="webcam" style="width: 1280px; height: 720px; position: abso" autoplay playsinline></video>
|
| 44 |
+
<canvas class="output_canvas" id="output_canvas" width="1280" height="720" style="position: absolute; left: 0px; top: 0px;"></canvas>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
</section>
|