Spaces:
Runtime error
Runtime error
Create index.html
Browse files- 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>
|