Spaces:
Runtime error
Runtime error
Update templates/index.html
Browse files- templates/index.html +21 -0
templates/index.html
CHANGED
@@ -2,9 +2,16 @@
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<title> AIML </title>
|
|
|
|
|
|
|
5 |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
6 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
7 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
|
10 |
<body>
|
@@ -37,6 +44,20 @@
|
|
37 |
<h2>
|
38 |
Welcome
|
39 |
</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
<!-- <div class="row">
|
41 |
<div class="col-sm-4">
|
42 |
<img src="https://cdn.glitch.global/438f3e8d-dfe7-4861-b60f-b0a2bccfecf0/kapany.png?v=1661407050397"
|
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<title> AIML </title>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
9 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
10 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
11 |
+
|
12 |
+
<script src="https://cdn.socket.io/4.5.4/socket.io.min.js"
|
13 |
+
crossorigin="anonymous"></script>
|
14 |
+
|
15 |
</head>
|
16 |
|
17 |
<body>
|
|
|
44 |
<h2>
|
45 |
Welcome
|
46 |
</h2>
|
47 |
+
|
48 |
+
<button onclick="start_camera()">Capture</button>
|
49 |
+
<button onclick="stop_camera()">stop</button>
|
50 |
+
<div>
|
51 |
+
<video autoplay="true" id="videoElement"></video>
|
52 |
+
<canvas id="canvas" width="400" height="300"></canvas>
|
53 |
+
</div>
|
54 |
+
<div>
|
55 |
+
<h1>Name: </h1><h3 id="name"></h3></div></br>
|
56 |
+
<h1>confidence score: </h1><h3 id="score"></h3></div>
|
57 |
+
</div>
|
58 |
+
<script src="{{ url_for('static',filename='app.js') }}"></script>
|
59 |
+
|
60 |
+
|
61 |
<!-- <div class="row">
|
62 |
<div class="col-sm-4">
|
63 |
<img src="https://cdn.glitch.global/438f3e8d-dfe7-4861-b60f-b0a2bccfecf0/kapany.png?v=1661407050397"
|