finishing it
This commit is contained in:
@ -1,10 +1,196 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Pose Detection</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Pose Detection</h1>
|
||||
<img src="{{ url_for('video_feed') }}" width="640" height="480">
|
||||
</body>
|
||||
<html lang="en">
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/page-starter.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:56 GMT -->
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>Pengenalan Wajah - Halaman Utama</title>
|
||||
|
||||
<!-- Main Styles -->
|
||||
<link rel="stylesheet" href="static/styles/style.min.css">
|
||||
|
||||
<!-- Material Design Icon -->
|
||||
<link rel="stylesheet" href="static/fonts/material-design/css/materialdesignicons.css">
|
||||
|
||||
<!-- mCustomScrollbar -->
|
||||
<link rel="stylesheet" href="static/plugin/mCustomScrollbar/jquery.mCustomScrollbar.min.css">
|
||||
|
||||
<!-- Waves Effect -->
|
||||
<link rel="stylesheet" href="static/plugin/waves/waves.min.css">
|
||||
|
||||
<!-- Sweet Alert -->
|
||||
<link rel="stylesheet" href="static/plugin/sweet-alert/sweetalert.css">
|
||||
<style>
|
||||
table {
|
||||
border: 1px;
|
||||
font-family: arial, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 86%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
border: 1px solid black !important;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #dddddd;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main-menu">
|
||||
<header class="header">
|
||||
<a href="" class="logo"><i class="ico mdi mdi-account-box"></i>Face Reg</a>
|
||||
<button type="button" class="button-close fa fa-times js__menu_close"></button>
|
||||
<div class="user">
|
||||
<a href="#" class="avatar"><img src="static/images/avatar-sm-5.jpg" alt=""><span
|
||||
class="status online"></span></a>
|
||||
<h5 class="name"><a href="">Pengguna</a></h5>
|
||||
<h5 class="position">User</h5>
|
||||
<!-- /.name -->
|
||||
<!-- /.control-wrap -->
|
||||
</div>
|
||||
<!-- /.user -->
|
||||
</header>
|
||||
<!-- /.header -->
|
||||
<div class="content">
|
||||
|
||||
<div class="navigation">
|
||||
<h5 class="title">Navigation</h5>
|
||||
<!-- /.title -->
|
||||
<ul class="menu js__accordion">
|
||||
<li class="current">
|
||||
<a class="waves-effect ac" href=""><i class="menu-icon mdi mdi-account-box"></i><span>Deteksi Pose</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="waves-effect ac" href="{{url_for('add')}}"><i class="menu-icon mdi mdi-account-card-details"></i><span>Penambahan Pose</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!-- /.navigation -->
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.main-menu -->
|
||||
|
||||
<div class="fixed-navbar">
|
||||
<div class="pull-left">
|
||||
<button type="button" class="menu-mobile-button glyphicon glyphicon-menu-hamburger js__menu_mobile"></button>
|
||||
<h1 class="page-title">{{ datetoday2 }} | <span id="clock"></span></h1>
|
||||
<!-- /.page-title -->
|
||||
</div>
|
||||
<!-- /.pull-left -->
|
||||
<div class="pull-right">
|
||||
|
||||
</div>
|
||||
<!-- /.pull-right -->
|
||||
</div>
|
||||
<!-- /.fixed-navbar -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- /#message-popup -->
|
||||
<div id="wrapper">
|
||||
<div class="main-content">
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-2 col-md-2"></div>
|
||||
<div class="col-xs-8 col-md-8">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Deteksi Pose Tubuh</h4>
|
||||
<div class="card-content">
|
||||
<img src="{{ url_for('video_feed') }}" style="width:100%; height:480px;"></img>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-2 col-md-2"></div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row small-spacing">
|
||||
<div class="col-xs-2 col-md-2"></div>
|
||||
<div class="col-xs-8 col-md-8">
|
||||
<div class="box-content card">
|
||||
<h4 class="box-title">Keterangan</h4>
|
||||
<p id="keterangan" style="text-align: center; font-size: 20px; font-weight: bold;"></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-2 col-md-2"></div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<ul class="list-inline">
|
||||
<li>2022 © Emil.</li>
|
||||
<li><a href="#">Website</a></li>
|
||||
<li><a href="#">Facebook</a></li>
|
||||
<!-- <li><a href="#">Help</a></li> -->
|
||||
</ul>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.main-content -->
|
||||
</div><!--/#wrapper -->
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="static/script/html5shiv.min.js"></script>
|
||||
<script src="static/script/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="static/scripts/jquery.min.js"></script>
|
||||
<script src="static/scripts/modernizr.min.js"></script>
|
||||
<script src="static/plugin/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="static/plugin/mCustomScrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
|
||||
<script src="static/plugin/nprogress/nprogress.js"></script>
|
||||
<script src="static/plugin/sweet-alert/sweetalert.min.js"></script>
|
||||
<script src="static/plugin/waves/waves.min.js"></script>
|
||||
|
||||
<script src="static/scripts/main.min.js"></script>
|
||||
<script>
|
||||
|
||||
var clockElement = document.getElementById('clock');
|
||||
|
||||
function clock() {
|
||||
clockElement.textContent = new Date().toString().slice(15, 24);
|
||||
}
|
||||
|
||||
setInterval(clock, 1000);
|
||||
|
||||
// check data every 2 seconds
|
||||
setInterval(function () {
|
||||
$.ajax({
|
||||
url: 'http://localhost:5000/cari',
|
||||
type: 'GET',
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if(data['ket'] == null){
|
||||
$('#keterangan').html('Tidak ada pose yang terdeteksi');
|
||||
}else{
|
||||
$('#keterangan').html(data['ket']);
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
<!-- Mirrored from demo.ninjateam.org/html/my-admin/light/page-starter.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Jan 2018 03:48:56 GMT -->
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user