Skip to content

Commit

Permalink
version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
soham4abc committed Jul 16, 2021
1 parent 3bb075e commit 114126c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions attendance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from datetime import datetime

path = "ImageAttandance"
path = "ImageAttendance"
images = []
classNames = []
mylist = os.listdir(path)
Expand All @@ -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:
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 114126c

Please sign in to comment.