Skip to content

Arjun-Rao-student/face-recognition-feed-cctv

Repository files navigation

Face Recognition

feed webcam

\\\\\Installations/////////////////

download a C++ compiler and install it

download visual studio(community edition) https://visualstudio.microsoft.com/downloads/ and install it

we will run it and select the ‘Desktop development with C++’

after completion restart the computer

download the pycharm (community edition) https://www.jetbrains.com/pycharm/download/#section=windows and install it

////Here we will install the required packages////

path file>settings>project>python interpretor>+ search the packages

cmake

dlib (recommended pip install dlib in the command prompt)

face_recognition (recommended pip install face-recognition in the command prompt )

numpy

opencv-python

Importing

First we will import the relevant libraries

sample

import face_recognition

import os

import cv2

import numpy as np

BASIC STEPS

steps

====>Loading Images and Converting

====>Find Faces Locations and Encodings

====>Compare Faces & Find Distance

Attendance steps

steps

import cv2

import os

import numpy as np

import face_recognition

from datetime import datetime

from PIL import ImageGrab

===>Importing Images

===>Encode

===>while loop

===>cc Encodings

===>Find Matches

===>Attendance

///////////// ## run the cc live video on your monitor after code run (done bro! proceed) ///////////

///////////// capture and recognition note it ///////////////////////////////////////////////////////