Leonel Richie
Published © Apache-2.0

Face attendance system

An attendance system using a face recognition and easy to use

BeginnerWork in progress4 hours1,070
Face attendance system

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Amazon Web Services raspberry pi 3 night vision camera
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian
OpenCV
OpenCV
TensorFlow
TensorFlow

Story

Read more

Code

Face Recognition lbph

Python
<!DOCTYPE html>
<html>
<head>
	<title>Riwayat Absensi Mahasiswa</title>
	<link rel="stylesheet" type="text/css" href="styles/styles.css">
	<link rel="stylesheet" type="text/css" href="styles/bootstrap.css">
</head>
<body>
	<div class="container"><br>
	<h1>Riwayat Absensi Mahasiswa</h1>
	<p>Sistem Absensi Mahasiswa dengan Face Recognition </p>
	<hr>
	<a class="btn btn-primary" href="datamahasiswa.php" role="button">Lihat Data Mahasiswa</a>
	<hr>
	<h2>Data Absensi</h2>
	<?php
	  try
	  {
		//open the database
		$db = new PDO('sqlite:facebase');

		//now output the data to a simple html table...
		print "<table border=1>";
		print "<tr><td>No.</td><td>NIM</td><td>Nama</td><td>Tanggal</td>
				<td>Waktu Masuk</td><td>Foto Masuk</td>";
		$result = $db->query('SELECT * FROM dataabsensi');
		foreach($result as $row)
		{
		  print "<tr><td>".$row['LogNIM']."</td>";
		  print "<td>".$row['NIM']."</td>";
		  print "<td>".$row['nama']."</td>";
		  print "<td>".$row['tanggal']."</td>";
		  print "<td>".$row['waktu_masuk']."</td>";
		  print "<td><img src='foto/".$row['foto_masuk']."'></td>";
		  print "<td><img src='foto/".$row['foto_keluar']."'></td>";
		}
		print "</table>";

		// close the database connection
		$db = NULL;
	  }
		catch(PDOException $e)
	  {
		print 'Exception : '.$e->getMessage();
	  }
	?>
	</div>
</body>
</html>

Credits

Leonel Richie

Leonel Richie

1 project • 1 follower

Comments

Add projectSign up / Login