Coder Social home page Coder Social logo

muhammadramadhann / verificationsystemattendance Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 2.75 MB

Verification System in Student Attendance Case Study

Python 28.67% CSS 15.52% JavaScript 2.29% HTML 53.51%
deepface face-recognition flask python

verificationsystemattendance's Introduction

Verification System in Student Attendance Case Study

app-logo

Repository ini berisi implementasi proyek tugas akhir yang berjudul "Perancangan Arsitektur Sistem Verifikasi Berbasis Face Recognition dalam Studi Kasus Absensi Mahasiswa". Sistem ini dikembangkan menggunakan bahasa pemrograman python, framework flask dan deepface dengan model yang digunakan adalah Facenet dan detector MTCNN.

Architectural Design

Arsitektur Sistem Absensi Facenet

Database Design

ERD Sistem Absensi@1 1

How to Run Project

Untuk menjalankan projek dapat mengikuti langkah-langkah berikut.

  • Buat direktori baru untuk menyimpan projek
  • Buka direktori tersebut melalui IDE Visual Studio Code atau code editor favorit
  • Buka terminal, clone repository terlebih dahulu dengan menjalankan:
$ git clone https://github.com/muhammadramadhann/VerificationSystemAttendance.git
  • Buat virtual environment
$ python -m venv venv
  • Mengaktifkan virtual environment
$ cd venv/Scripts && activate
  • Kembali ke path awal projek
$ cd .. && cd ..
  • Menginstall seluruh requirement project dan tunggu hingga proses install semua library selesai
$ pip install -r requirements.txt

Import Sample Data

Projek ini terintegrasi dengan database MySQL menggunakan xampp phpmyadmin. Adapun cara untuk melakukan import tabel dan sampel data yang digunakan dalam projek ini adalah sebagai berikut:

  • Jalankan xampp dan buka http://localhost/phpmyadmin/index.php
  • Buat sebuah database dengan nama yang diinginkan
  • Buka database tersebut lalu pilih import, pilih file mahasiswa.sql dan absensi_log.sql, tunggu hingga proses import selesai
  • Buka file app.py pada projek dan ubah line ke 14-17 seperti berikut:
app.config['MYSQL_DATABASE_HOST'] = 'localhost'
app.config['MYSQL_DATABASE_USER'] = 'root'
app.config['MYSQL_DATABASE_PASSWORD'] = ''
app.config['MYSQL_DATABASE_DB'] = 'nama_db_kamu'
  • Jika semua sudah oke, mari jalankan projek
$ python app.py
  • FYI, dataset wajah mahasiswa yang digunakan dapat dilihat pada gambar berikut.

database

Run Project in Smartphone (Mobile)

Untuk mencoba aplikasi alangkah baiknya dijalankan melalui smartphone agar fitur dapat berjalan secara optimal. Cara yang bisa digunakan adalah dengan menggunakan Ngrok.

$ ngrok config add-authtoken xxxxxxxxxxxx-xxxxxxxxxxxxx
  • Pastikan projek sudah berjalan dan ketik pada terminal Ngrok:
$ ngrok http 5000
  • Copy url yang di generate dan jalankan melalui smartphone

Modification

  • Mengubah model, face detector atau similarity metrics dapat mengubah kode dalam app.py line 65 dengan beberapa pilihan berikut.
models = ["VGG-Face", "Facenet", "Facenet512", "OpenFace", "DeepFace", "DeepID", "ArcFace", "Dlib", "SFace",]
backends = ["opencv", "ssd", "dlib", "mtcnn", "retinaface", "mediapipe"]
metrics = ["cosine", "euclidean", "euclidean_l2"]

DeepFace.verify(img1_path = "img1.jpg", 
                img2_path = "img2.jpg", 
                model_name = models[1], 
                detector_backend = backends[3]
                distance_metric = metrics[1])
  • Modifikasi dataset --> menambah gambar wajah pada folder /images dengan diberi nama file berupa NIM mahasiswa, dataset harus diselaraskan dengan data mahasiswa dalam database MySQL yaitu kolom foto.
  • Modifikasi user interface --> merubah file yang terdapat dalam folder /templates
  • Apabila membutuhkan API saja, dapat menggunakan file app.py.

verificationsystemattendance's People

Contributors

muhammadramadhann avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.