| <!DOCTYPE html>
|
| <html lang="en">
|
| <head>
|
| <meta charset="UTF-8">
|
| <title>Object Detection</title>
|
| <style>
|
| body {
|
| font-family: Arial, sans-serif;
|
| background: #f5f5f5;
|
| padding: 30px;
|
| text-align: center;
|
| }
|
| .container {
|
| background: white;
|
| padding: 20px;
|
| border-radius: 8px;
|
| box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
| display: inline-block;
|
| }
|
| input[type="file"], input[type="submit"] {
|
| margin: 10px;
|
| padding: 8px 12px;
|
| border-radius: 4px;
|
| }
|
| video {
|
| max-width: 100%;
|
| margin-top: 20px;
|
| }
|
| </style>
|
| </head>
|
| <body>
|
| <div class="container">
|
| <h1>Object Detection (Video)</h1>
|
| <form method="POST" enctype="multipart/form-data">
|
| <input type="file" name="video" accept="video/*" required>
|
| <br>
|
| <input type="submit" value="Upload & Detect">
|
| </form>
|
| {% if video_result %}
|
| <h2>Result Video</h2>
|
| <video controls>
|
| <source src="{{ video_result }}" type="video/mp4">
|
| Your browser does not support the video tag.
|
| </video>
|
| {% endif %}
|
| </div>
|
| </body>
|
| </html>
|
|
|