tplopoltay commited on
Commit
873ef24
ยท
verified ยท
1 Parent(s): 4b0e1e9

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +43 -0
index.html ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <title>Responsive Object Detection</title>
6
+ <link rel="stylesheet" href="style.css">
7
+ </head>
8
+ <body>
9
+ <!-- Login Container -->
10
+ <div class="screen" id="login">
11
+ <div class="login-card">
12
+ <h2>๐Ÿ” Secure Access</h2>
13
+ <input type="password" id="apiKey" placeholder="Enter API key">
14
+ <button onclick="validateKey()">Access App</button>
15
+ </div>
16
+ </div>
17
+
18
+ <!-- Detection Screen -->
19
+ <div class="screen" id="app" style="display:none">
20
+ <!-- Webcam Container -->
21
+ <div class="video-container">
22
+ <video id="webcam" autoplay playsinline></video>
23
+ <canvas id="overlay"></canvas>
24
+ </div>
25
+
26
+ <!-- Controls -->
27
+ <div class="controls">
28
+ <button id="privacyBtn" onclick="togglePrivacyMode()">๐Ÿ”’ Privacy</button>
29
+ <button id="saveBtn" onclick="saveDetection()">๐Ÿ“ธ Save</button>
30
+ </div>
31
+
32
+ <!-- Detection History -->
33
+ <div class="history-container">
34
+ <h3>๐Ÿ“œ Detection History</h3>
35
+ <div id="historyList"></div>
36
+ </div>
37
+ </div>
38
+
39
+ <!-- TensorFlow.js -->
40
+ <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.21.0/dist/tf.min.js"></script>
41
+ <script src="script.js"></script>
42
+ </body>
43
+ </html>