Emeritus-21 commited on
Commit
05809f3
·
verified ·
1 Parent(s): f0e23b6

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +6 -69
templates/index.html CHANGED
@@ -1,77 +1,14 @@
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
- <title>Itsekiri Sign Language Interpreter</title>
5
- <style>
6
- body {
7
- display: flex;
8
- flex-direction: column;
9
- align-items: center;
10
- justify-content: center;
11
- height: 100vh;
12
- margin: 0;
13
- background-color: #f5e8c7; /* Beige background */
14
- font-family: 'Arial', sans-serif;
15
- }
16
- .container {
17
- text-align: center;
18
- background: #fff;
19
- padding: 20px;
20
- border-radius: 10px;
21
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
22
- width: 700px;
23
- height: 500px;
24
- position: relative;
25
- }
26
- #video {
27
- width: 640px;
28
- height: 480px;
29
- border: 1px solid #ccc;
30
- border-radius: 5px;
31
- background: #f0f0f0;
32
- margin-bottom: 20px;
33
- }
34
- #enable-webcam {
35
- padding: 10px 20px;
36
- font-size: 16px;
37
- background-color: #ff4444;
38
- color: white;
39
- border: none;
40
- border-radius: 10px;
41
- cursor: pointer;
42
- position: absolute;
43
- top: 50%;
44
- left: 50%;
45
- transform: translate(-50%, -50%);
46
- transition: background-color 0.3s;
47
- }
48
- #enable-webcam:hover {
49
- background-color: #ff6666;
50
- }
51
- #canvas {
52
- display: none;
53
- }
54
- #prediction {
55
- margin-top: 20px;
56
- color: #333;
57
- font-size: 18px;
58
- }
59
- .fingers-display {
60
- margin-top: 10px;
61
- color: #333;
62
- font-size: 16px;
63
- }
64
- </style>
65
  </head>
66
  <body>
67
- <div class="container">
68
- <video id="video" width="640" height="480" autoplay></video>
69
- <button id="enable-webcam">Enable Webcam</button>
70
- <p id="prediction">Prediction: None</p>
71
- <div class="fingers-display" id="fingers">Fingers Detected: None</div>
72
- </div>
73
- <canvas id="canvas" width="640" height="480"></canvas>
74
 
75
  <script src="/static/script.js"></script>
76
  </body>
77
- </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
+ <title>Itsekiri Digit Recognition</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </head>
6
  <body>
7
+ <h2>Show digit to webcam</h2>
8
+ <video id="video" width="320" height="240" autoplay></video>
9
+ <canvas id="canvas" width="64" height="64" style="display:none;"></canvas>
10
+ <p>Prediction: <span id="prediction">None</span></p>
 
 
 
11
 
12
  <script src="/static/script.js"></script>
13
  </body>
14
+ </html>