Rename templates to templates/index.html

#1
by jake2004 - opened
Files changed (2) hide show
  1. templates +0 -0
  2. templates/index.html +53 -0
templates DELETED
File without changes
templates/index.html ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>IP Webcam Object Detection</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ text-align: center;
11
+ background-color: #f4f4f4;
12
+ }
13
+ h1 {
14
+ color: #333;
15
+ }
16
+ form {
17
+ margin: 20px;
18
+ }
19
+ input[type="text"] {
20
+ padding: 10px;
21
+ width: 80%;
22
+ max-width: 400px;
23
+ }
24
+ button {
25
+ padding: 10px 20px;
26
+ background-color: #28a745;
27
+ color: white;
28
+ border: none;
29
+ cursor: pointer;
30
+ }
31
+ button:hover {
32
+ background-color: #218838;
33
+ }
34
+ .video-container {
35
+ margin-top: 20px;
36
+ }
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <h1>IP Webcam Object Detection</h1>
41
+ <form method="POST">
42
+ <input type="text" name="ip_url" placeholder="Enter IP Webcam URL" required>
43
+ <button type="submit">Start Stream</button>
44
+ </form>
45
+
46
+ {% if ip_url %}
47
+ <div class="video-container">
48
+ <h2>Live Video Feed</h2>
49
+ <img src="{{ url_for('video_feed') }}" width="80%">
50
+ </div>
51
+ {% endif %}
52
+ </body>
53
+ </html>