-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage_classifier.html
44 lines (34 loc) · 996 Bytes
/
image_classifier.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
<html>
<head>
<title>1andonly3</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
background-image: url('../static/capture.jpg');
background-repeat: no-repeat;
height:100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;}
</style>
<script type="text/javascript">
function abc(event){
var input = event.target;
var reader = new FileReader();
reader.onload = function(){
var dataURL = reader.result;
document.getElementById('output').src = dataURL;
};
reader.readAsDataURL(input.files[0]);
};
</script>
</head>
<body>
<h1>Debris Detector</h1>
<form action="/predict" method="post" enctype="multipart/form-data">
<input type="file" name="image" value="Upload" onchange="abc(event)">
<input type="submit" value="Predict">
</form>
</body>
</html>