-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
76 lines (69 loc) · 3.52 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;500;600;700&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="Images/logo.png">
<title>Fruit-Checker</title>
<style type="text/css">
footer{
position: absolute;
bottom: 0;
right: 0
}
</style>
</head>
<body>
<nav class="navbar navbar-dark" style="background-color: #000980;">
<a class="navbar-brand title" id="brand" href="#">
<img src="Images/logo.png" width="30" height="30" class="d-inline-block align-top" alt="logo">
Fruit-Checker
</a>
</nav>
<div class="container" id="main">
<div class="row justify-content-center">
<div class="col-lg-10 col-md-12">
<div class="card m-4">
<div class="card-body" id="box-cont">
<h3 class="card-title py-3 title" id="detect">Detect whether your fruit is fresh or rotten
</h3>
<p class="px-3">
To identify if a <span class="yellow">Banana</span>, <span class="orange">Orange</span> or
<span class="red">Apple</span> has defects, either use your web camera and show the fruit
or upload an image from your device.
</p>
<label for="webcam" class="ps-3 pt-3 pb-3">USE WEBCAM:</label>
<button id="webcam" type="button" class="btn btn-outline-primary ms-3"
onclick="useWebcam()">Start
webcam</button><br />
<label class="p-3" for="fruitimg">UPLOAD IMAGE:</label>
<div class="input-group px-3 pb-3" id="inputimg">
<input type="file" class="form-control" accept="image/*" id="fruitimg">
<button class="btn btn-outline-primary" id="loadBtn">Load</button>
</div>
<div id="webcam-container" class="px-3"></div>
<div id="uploadedImage" class="px-3"></div>
<div id="label-container" class="px-3 pt-3"></div>
</div>
</div>
</div>
</div>
<footer>
<a href="https://www.freepik.com/free-photos-vectors/background">Background vector created by freepik</a>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/@teachablemachine/[email protected]/dist/teachablemachine-image.min.js"></script>
<script src=https://unpkg.com/parse/dist/parse.min.js></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="script.js"></script>
</body>
</html>