Spaces:
Running
Running
File size: 5,709 Bytes
cc65f2f |
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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Face-API.js Landing Page</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/w3.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#compara-imagens" id="compara-imagens-menu">Compara imagens</a></li>
<li><a href="#detectar-emocoes" id="detectar-emocoes-menu">Detectar emocoes</a></li>
</ul>
</nav>
</header>
<main>
<section id="detectar-emocoes" class="active">
<h2>Detectar emoções</h2>
<div id="detectar-emocoes-form">
<form>
<br><br>
<label class="switch">
<input type="checkbox" id="start-camera-button">
<span class="slider round"></span>
</label>
<label class="switch">
<input type="checkbox" id="detect-emotions-button">
<span class="slider round"></span>
</label>
<label class="switch">
<input type="checkbox" id="detect-landmarks-button">
<span class="slider round"></span>
</label>
<label class="switch">
<input type="checkbox" id="detect-age-button">
<span class="slider round"></span>
</label>
<label class="switch">
<input type="checkbox" id="extract-points-button">
<span class="slider round"></span>
</label>
</form>
<div id="detectar-emocoes-idade"></div>
<div id="detectar-emocoes-results"></div>
<div id="pontos"></div>
</div>
</section>
<section id="compara-imagens" style="display:none">
<h2>Comparar imagens</h2>
<div class="row">
<div class="w3-row-padding" style="margin:0 -16px">
<div class="w3-third">
<div style="height:330px" class="w3-card w3-container w3-margin-bottom">
<img src="img/avatar1.png" id="imagem1" style="border-radius: 5px;width:250px">
<canvas id="overlay" style="width:240px"/>
</div>
<input type="file" id="file1" class="form-control" onchange="imagem1()" >
</div>
<div class="w3-third">
<div style="height:330px" class="w3-card-2 w3-container w3-margin-bottom">
<button id="verificado" class="w3-button w3-teal w3-round-large" type="button" onclick="verificar() "
style="visibility: false;" disabled> Verificar </button>
</div>
</div>
<div class="w3-third">
<div style="height:330px" class="w3-card-4 w3-container w3-margin-bottom">
<img src="img/avatar2.png" id="imagem2" style="border-radius: 5px;width:250px">
<br>
</div>
<input type="file" id="file2" class="form-control" onchange="imagem2()">
</div>
<div id="facesContainer" hidden>
<canvas id="canvas" style="width:240px"/>
</div>
</div>
<div class="row">
<div class="w3-row-padding" style="margin:0 -16px">
<div class="w3-third">
<div style="height:330px" class="w3-card-2 w3-container w3-yellow w3-margin-bottom">
<div class="img-overlay-wrap svg-container" id="svg">
<button id="img1" class="w3-button w3-round-large" type="button"></button>
<img src="" id="imagenova" style="border-radius: 5px;width:250px">
</div>
</div>
</div>
<div class="w3-third">
<div style="height:330px" class="w3-card-2 w3-container w3-margin-bottom">
<div class="img-overlay-wrap svg-container" id="svg3">
<img src="" id="imagenova3" style="border-radius: 5px;width:250px">
<svg>
</svg>
<svg>
</svg>
</div>
</div>
</div>
<div class="w3-third">
<div style="height:330px" class="w3-card-4 w3-container w3-yellow w3-margin-bottom">
<div class="img-overlay-wrap svg-container" id="svg2">
<button id="img22" class="w3-button w3-round-large" type="button"></button>
<img src="" id="imagenova2" style="border-radius: 5px;width:250px">
</div>
</div>
</div>
</div>
<br><br>
</div>
</div>
</section>
</main>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/scripts.js"></script>
<script src="js/face-api.js"></script>
<script src="js/iniciar.js"></script>
<script src="js/emocoes.js"></script>
<script src="js/comparar.js"></script>
</body>
</html>
|