|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Image Comparison</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #333;
|
|
color: #fff;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.container {
|
|
width: 80%;
|
|
margin: auto;
|
|
overflow: hidden;
|
|
padding: 20px;
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
color: #4CAF50;
|
|
}
|
|
form {
|
|
background: #444;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
}
|
|
label, input {
|
|
display: block;
|
|
margin: 10px 0;
|
|
}
|
|
input[type="file"] {
|
|
margin-top: 5px;
|
|
}
|
|
input[type="submit"] {
|
|
background: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
input[type="submit"]:hover {
|
|
background: #45a049;
|
|
}
|
|
.threshold-container {
|
|
margin-top: 20px;
|
|
}
|
|
.threshold-container input {
|
|
width: 100px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Upload Images for Comparison</h1>
|
|
<form action="/" method="POST" enctype="multipart/form-data">
|
|
<label for="input_image">Upload an image to compare:</label>
|
|
<input type="file" id="input_image" name="input_image" accept="image/*" required>
|
|
|
|
<label for="comparison_images">Upload images for comparison (select multiple):</label>
|
|
<input type="file" id="comparison_images" name="comparison_images" accept="image/*" multiple required>
|
|
|
|
<div class="threshold-container">
|
|
<label for="similarity_threshold">Similarity Threshold (0.0 - 1.0):</label>
|
|
<input type="number" id="similarity_threshold" name="similarity_threshold" step="0.01" min="0" max="1" value="0.8">
|
|
</div>
|
|
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|