ragebhanukiran's picture
initial commit
b338c44 verified
Raw
History Blame Contribute Delete
2.12 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Faster R-CNN Object Detection</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f4f4f4;
padding: 20px;
}
h1 {
color: #333;
}
.container {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: auto;
}
input[type="file"] {
margin: 20px 0;
}
.image-container {
margin-top: 20px;
}
img {
max-width: 100%;
border: 2px solid #ddd;
border-radius: 5px;
}
.btn {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
margin-top: 10px;
}
.btn:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1>Faster R-CNN Object Detection</h1>
<form action="/" method="post" enctype="multipart/form-data">
<input type="file" name="file" required>
<button type="submit" class="btn">Upload & Detect</button>
</form>
{% if uploaded_image %}
<div class="image-container">
<h2>Uploaded Image</h2>
<img src="{{ uploaded_image }}" alt="Uploaded Image">
</div>
{% endif %}
{% if result_image %}
<div class="image-container">
<h2>Detection Results</h2>
<img src="{{ result_image }}" alt="Detected Image">
</div>
{% endif %}
</div>
</body>
</html>