-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUpload_for_Detection.html
70 lines (69 loc) · 2.21 KB
/
Upload_for_Detection.html
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
<!DOCTYPE html>
<html>
<head>
<title>
Box Detection in Warehouse Conveyor Belts
</title>
<style>
body {
font-family: sans-serif;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-image: url("https://www.greyorange.com/wp-content/uploads/2022/10/BANNER-IL-min.jpeg"); /* Add your background image here */
background-size: cover;
background-position: center;
background-color: rgba(255, 255, 255, 0.01); /* Semi-transparent white */
}
form {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 30px;
border-radius: 10px;
background-color: rgba(255, 255, 255, 1); /* Semi-transparent white */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
gap: 15px;
}
h2 {
text-align: center;
font-weight: bold;
margin-bottom: 15px;
}
label {
font-weight: bold;
}
input[type="file"] {
padding: 10px 20px;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"] {
background-color: #03A9F4; /* Blue */
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
input[type="submit"]:hover {
background-color: #028BEB;
}
</style>
</head>
<body>
<form action="http://127.0.0.1:8000/YOLO_Box_Prediction_Website" method="post" enctype="multipart/form-data">
<h2>Box Detection in Warehouse Conveyor Belts</h2>
<label for="file">Upload image:</label>
<input type="file" id="file" name="file" accept=".png, .jpg">
<input type="submit" value="Find Boxes">
</form>
</body>
</html>