File size: 2,369 Bytes
43037ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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>