-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
54 lines (48 loc) · 2.24 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="./app.css">
<link rel="shortcut icon" href="./favicon.ico">
<title>Color Name Prediction</title>
</head>
<body>
<h1 align="center">Color Name Prediction</h1>
<div class="introduction jumbotron">
<div class="container">
<h3> Welcome to my Color Name Prediction Application </h3>
<hr>
<h5>How this application works:</h5>
<div>
This app uses the <b>K-Nearest Neighbors (KNN) algorithm</b> to predict color names based on RGB values. It provides a straightforward way to find the name of a color within an image. Here's how to use it:
<ol>
<li>Click on the "Choose file" button and select an image from your device.</li>
<li>The selected image will be displayed below.</li>
<li>Click on any part of the image to capture the RGB value of that pixel.</li>
<li>The KNN algorithm processes the RGB value and predicts the corresponding color name.</li>
<li>The predicted color name is displayed to the user above the image.</li>
</ol>
</div>
<hr>
</div>
</div>
<div align="center" class="inputImage">
<div class="form-group">
<div><label for="file" style="cursor: pointer; margin-right: 12rem;">Upload Image</label></div>
<input type="file" accept="image/*" name="image" id="file" class="imageInput form-control-file">
</div>
</div>
<div align="center">
<div class="answer"></div>
<img hidden class="image" alt="Cannot fetch this image">
<div><canvas hidden="true" height="1000" width="700" /></div>
</div>
<br>
<script src="./app.js"></script>
</body>
</html>