Skip to content

FACE DETECTION AND ATTENDENC-- Face detection is a computer vision problem that involves finding faces in photos. It is a trivial problem for humans to solve and has been solved reasonably well by classical feature-based techniques, such as the cascade classifier

Notifications You must be signed in to change notification settings

SAZZAD-AMT/FACE-RECOGNITION-AND-ATTENDENCE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FACR-RECOGNITION-AND-ATTENDENCE

FACE DETECTION

  • ALL OF YOU PLEASE INSTALL PIP PERFECTLY.

  • What is used for face detection?
  • Face detection is AI-based computer technology that is used to extract and identify human faces from digital images. When integrated with biometric security systems (particularly, facial recognition ones), this kind of technology is what makes it possible to monitor and track people in real-time.

  • How does face detection work?
  • A facial recognition system uses biometrics to map facial features from a photograph or video. It compares the information with a database of known faces to find a match. Facial recognition can help verify a person's identity, but it also raises privacy issues.


    FACE RECOGNITION

    imgElon = face_recognition.load_image_file('Imagesbasic/Elon Musk.jpg')
    imgElon = cv2.cvtColor(imgElon,cv2.COLOR_BGR2RGB)
    imgTest = face_recognition.load_image_file('Imagesbasic/Elon1.jpg')
    imgTest = cv2.cvtColor(imgTest,cv2.COLOR_BGR2RGB)
    
    results = face_recognition.compare_faces([encodeElon],encodeTest)
    faceDis = face_recognition.face_distance([encodeElon],encodeTest)
    print(results,faceDis)
    cv2.putText(imgTest,f'{results} {round(faceDis[0],2)}',(50,50),cv2.FONT_HERSHEY_COMPLEX,1,(0,0,255),2)
    

    FACE RECOGNITION FOR ATTENDENCE

    import cv2
    import numpy as np
    import face_recognition
    import os
    from datetime import datetime
    # from PIL import ImageGrab
    
    def markAttendance(name):
        with open('Code\Att.csv','r+') as f:
            myDataList = f.readlines()
            nameList = []
            for line in myDataList:
                entry = line.split(',')
                nameList.append(entry[0])
            if name not in nameList:
                now = datetime.now()
                dtString = now.strftime('%H:%M:%S')
                f.writelines(f'\n{name},{dtString}')
    

    PLEASE CHECK CSV FILE. There you can see attendance.

    About

    FACE DETECTION AND ATTENDENC-- Face detection is a computer vision problem that involves finding faces in photos. It is a trivial problem for humans to solve and has been solved reasonably well by classical feature-based techniques, such as the cascade classifier

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages