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