-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (43 loc) · 1.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reconocimiento de Números</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1 class="title">Reconocimiento de numeros</h1>
<button class="btnDarkMode" id="btnDarkMode" onclick="toggleDarkMode()">
<div id="icon"></div>
</button>
</header>
<main>
</div>
<div class="b-example-divider"></div>
<p class="instructions">Dibuje un numero del 0-9, grande y centrado para tener una mejor predicción</p>
<div class="container mt-5">
<div class="row">
<div class="col-12 col-md-4 offset-md-4">
<div id="canvas-container">
<div></div>
<canvas id="bigcanvas" width="200" height="200" ></canvas>
<canvas id="smallcanvas" width="28" height="28" style="display: none;"></canvas>
</div>
<div class="buttons">
<button class="btn-clean" id="limpiar" onclick="limpiar()">Limpiar</button>
<button class="btn-submit" id="predecir" onclick="predecir()">Predecir</button>
</div>
<div id="resultado"></div>
</div>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js"></script>
<script src="fabric.min.js"></script>
<script src="drawing.js"></script>
<script src="main.js"></script>
</body>
</html>