Downloads · 30 days
0
abi-0165/face-attendance-system
face-attendance-system is a machine learning model from abi-0165. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Sistem presensi otomatis menggunakan pengenalan wajah dengan algoritma LBPH (Local Binary Patterns Histograms).
Downloads · 30 days
0
Access
Public
Updated Dec 4, 2025
Repo size
11.2 MB
Likes
0
Public
Click a slice to open those files.
.yml11.2 MB · 100%
From the Hugging Face model README
Sistem presensi otomatis menggunakan pengenalan wajah dengan algoritma LBPH (Local Binary Patterns Histograms).
git clone https://huggingface.co/[username]/face-attendance-system
cd face-attendance-system
pip install -r requirements.txt
Catatan Penting: Pastikan install opencv-contrib-python (bukan opencv-python biasa) karena module cv2.face hanya tersedia di contrib version.
Pastikan webcam/kamera laptop kamu berfungsi dengan baik.
python register_face.py
Proses:
Tips untuk hasil terbaik:
python attendance_system.py
Cara kerja:
attendance.csvpython view_data.py
Menu tersedia:
PRESENSEE-ML/
├── dataset/ # Folder foto wajah terdaftar
├── register_face.py # Script registrasi wajah
├── attendance_system.py # Script sistem presensi
├── view_data.py # Script kelola data
├── face_data.pkl # Data wajah tersimpan (pickle)
├── lbph_model.yml # Model LBPH terlatih
├── attendance.csv # Rekap presensi
└── requirements.txt # Dependencies
Kamu bisa adjust parameter di attendance_system.py:
# Threshold confidence LBPH (40-80, lower = lebih strict)
LBPH_CONFIDENCE_THRESHOLD = 45.0
# Cooldown antar deteksi (detik)
COOLDOWN_SECONDS = 5
# Frame skip untuk performa
FRAME_SKIP = 2
Solusi:
pip uninstall opencv-python
pip install opencv-contrib-python
Solusi:
Solusi:
LBPH_CONFIDENCE_THRESHOLDSolusi:
cv2.VideoCapture(0) ke (1) atau (2)Nama,NIM/NIP,Tanggal,Waktu
John Doe,123456789,2024-12-04,08:30:15
Jane Smith,987654321,2024-12-04,08:31:22
Berisi dictionary dengan struktur:
id: ID unique personnama: Nama lengkapnim_nip: Nomor indukimages_gray: List gambar grayscale untuk trainingimages_color: List gambar color untuk displaynum_photos: Jumlah fotoFeel free untuk fork dan improve system ini! Some ideas:
PENTING:
face_data.pkl atau folder dataset/ ke repository public jika berisi data pribadi orang lainMIT License - Feel free to use for educational purposes
Dibuat untuk memudahkan sistem presensi otomatis menggunakan computer vision.
Happy Coding! 🚀
Jika ada pertanyaan atau issue, silakan buat issue di repository ini.