This document describes a system to automate class attendance using face detection and recognition with OpenCV. The system uses the Viola-Jones algorithm for face detection and linear binary pattern histograms for face recognition. Detected faces are converted to grayscale images for better accuracy. The system trains on positive images of faces and negative images without faces to build a classifier. It then detects faces in class and recognizes students by matching features to a stored database, updating attendance and notifying administrators. The proposed system aims to reduce time spent on manual attendance and increase accuracy by automating the process through computer vision techniques.