Spaces:
Runtime error
Runtime error
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>OpenCV: Facial and Smile</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" | |
crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
</head> | |
<body> | |
<!-- | |
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> | |
<a class="navbar-brand" href="/">Reconhecimento Facial e detecção de sorriso</a> | |
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation"> | |
<span class="navbar-toggler-icon"></span> | |
</button> | |
<div class="collapse navbar-collapse" id="navbarsExampleDefault"> | |
<ul class="navbar-nav mr-auto"> | |
<li class="nav-item active"> | |
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">About</a> | |
</li> | |
</ul> | |
<form class="form-inline my-2 my-lg-0"> | |
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search"> | |
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> | |
</form> | |
</div> | |
</nav> | |
--> | |
<div class="container mt-5"> | |
<h1 class="text-center font-weight-bold">🤗 Reconhecimento Facial e detecção de sorriso 🤗</h1> | |
<div id="autor-info" class="text-center mt-3"> | |
<p><span style="color: rgb(222, 38, 21);">Data Scientist:</span> Dr. Eddy Giusepe Chirinos Isidro</p> | |
<p><span style="color: rgb(222, 38, 14);">Email:</span> [email protected]</p> | |
<p><span style="color: rgb(222, 38, 14);">GitHub:</span> <a href="https://github.com/EddyGiusepe" target="_blank">https://github.com/EddyGiusepe</a></p> | |
<p><span style="color: rgb(222, 38, 14);">LinkedIn:</span> <a href="https://www.linkedin.com/in/eddy-giusepe-chirinos-isidro-85a43a42/" target="_blank">https://www.linkedin.com/in/eddy-giusepe-chirinos-isidro-85a43a42/</a></p> | |
</div> | |
<form method="POST" action="/upload" enctype="multipart/form-data"> | |
<div class="form-group"> | |
<label for="file">Escolha sua Imagem para detectar a Face e o Sorriso (.jpg | .jpeg | .png | .gif)</label> | |
<input type="file" class="form-control-file" name="file" accept=".jpg, .jpeg, .png, .gif" required> | |
</div> | |
<button type="submit" class="btn btn-primary"><i class="fa fa-upload"></i> Enviar a Imagem selecionada</button> | |
</form> | |
{% if error %} | |
<p class="text-danger mt-3">{{ error }}</p> | |
{% endif %} | |
{% if filename %} | |
<div class="mt-3"> | |
<p class="font-weight-bold">Imagem com Detecção Facial e sorriso:</p> | |
<img src="{{ url_for('static', filename='images/' + filename) }}" class="img-fluid" alt="Imagem com Detecção Facial"> | |
</div> | |
{% endif %} | |
</div> | |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> | |
</body> | |
</html> | |