Spaces:
Sleeping
Sleeping
| <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> | |