diff --git a/Attandance.csv b/Attendance.csv similarity index 100% rename from Attandance.csv rename to Attendance.csv diff --git a/ImageAttandance/bill_gates.jpeg b/ImageAttendance/bill_gates.jpeg similarity index 100% rename from ImageAttandance/bill_gates.jpeg rename to ImageAttendance/bill_gates.jpeg diff --git a/ImageAttandance/elon_musk.jpg b/ImageAttendance/elon_musk.jpg similarity index 100% rename from ImageAttandance/elon_musk.jpg rename to ImageAttendance/elon_musk.jpg diff --git a/ImageAttandance/satya_nadella.jpg b/ImageAttendance/satya_nadella.jpg similarity index 100% rename from ImageAttandance/satya_nadella.jpg rename to ImageAttendance/satya_nadella.jpg diff --git a/README.md b/README.md index 660043d..5f26ca9 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ _pip_ installer is required to install the packages required in this software. W Open the folder in which you downloaded the project, open a terminal in that directory and run `pip install -r requirements.txt` command. If all the previous steps are followed correctly, this command will install and setup the software in your computer system. It will need some time based on your system hardware, but for sure the software will be ready to use. ### Step 6: -Place the pictures of the candidates in file `ImageAttandance` With the names of the candidate as the file name of the picture (.jpeg/.jpg) +Place the pictures of the candidates in file `ImageAttendance` With the names of the candidate as the file name of the picture (.jpeg/.jpg) (Sample images of Bill Gates, Elon Musk and Satya Nandella provided for demo usage. ### Step 7: diff --git a/attendance.py b/attendance.py index d324c1d..0e37962 100644 --- a/attendance.py +++ b/attendance.py @@ -4,7 +4,7 @@ import os from datetime import datetime -path = "ImageAttandance" +path = "ImageAttendance" images = [] classNames = [] mylist = os.listdir(path) @@ -26,8 +26,8 @@ def findEncodings(images): return encodeList -def markAttandance(name): - with open("Attandance.csv", "r+") as f: +def markAttendance(name): + with open("Attendance.csv", "r+") as f: myDataList = f.readlines() nameList = [] for line in myDataList: @@ -75,7 +75,7 @@ def markAttandance(name): (255, 255, 255), 2, ) - markAttandance(name) + markAttendance(name) cv2.imshow("Webcam", img) cv2.waitKey(1) # faceLoc = face_recognition.face_locations(imgElon)[0]