-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (43 loc) · 1.74 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<html>
<head>
<title>Image recognition</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcamjs/1.0.26/webcam.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<center>
<h3 class="btn btn-default heading">IMAGE RECOGNITION</h3>
<br><br>
<p style="font-size: 22px;">Model is trained to identify the following objects: </p>
<b class="name_of_objects">
Watch
<hr>
Spoon
<hr>
Phone
<hr>
Water Bottle
<hr>
</b>
<label>Webcam View - </label>
<div id="camera"></div>
<br><br>
<div id="result"></div>
<br><br>
<button onclick="take_snapshot();" class="btn btn-info">Capture Image</button>
<br><br>
<button onclick="check();" class="btn btn-success">Identify Image</button>
<br><br>
<p style="font-size: 22px;">Object : <span id="result_object_name"></span> </p>
<p style="font-size: 22px;">Accuracy : <span id="result_object_accuracy"></span> </p>
</center>
</div>
<script src="main.js"></script>
</body>
</html>