-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (36 loc) · 1.7 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script type="text/javascript" src="mesh.js"></script>
<style src="style.css"></style>
</head>
<body>
<h1>Classifying images using the MediaPipe Image Classifier Task</h1>
<section id="demos" class="invisible">
<h2>Demo: Classify Images</h2>
<p><b>Click on an image below</b> to see its classification.</p>
<div class="classifyOnClick">
<img src="https://assets.codepen.io/9177687/dog_flickr_publicdomain.jpeg" width="100%" crossorigin="anonymous" title="Click to get classification!" />
<p class="classification removed">
</p>
</div>
<div class="classifyOnClick">
<img src="https://assets.codepen.io/9177687/cat_flickr_publicdomain.jpeg" width="100%" crossorigin="anonymous" title="Click to get classification!" />
<p class="classification removed">
</p>
</div>
<h2>Demo: Webcam continuous classification</h2>
<p>Hold some objects up close to your webcam to get real-time classification. For best results, avoid having too many objects visible to the camera.</br>Click <b>enable webcam</b> below and grant access to the webcam if prompted.</p>
<div class="webcam">
<button id="webcamButton" class="mdc-button mdc-button--raised">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__label">ENABLE WEBCAM</span>
</button>
<video id="webcam" autoplay playsinline></video>
<p id="webcamPredictions" class="webcamPredictions removed"></p>
</div>
</section>
</body>
</html>