-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SmartAttandance * UpdatedMainReademe.md * UpdatedMainReademe.md * Update README_smart_attendance_system.md
- Loading branch information
1 parent
477f102
commit d2b4ed4
Showing
13 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
### Prerequisites | ||
|
||
Before you begin, ensure you have met the following requirements: | ||
|
||
* [Git](https://git-scm.com/downloads "Download Git") must be installed on your operating system. | ||
|
||
### Installation | ||
|
||
1. Clone this repo. | ||
|
||
To run **Smart Attendance System**, run this command on your git bash: | ||
|
||
Linux and macOS: | ||
|
||
```bash | ||
sudo git clone https://github.com/raj-mistry-01/Computer-Vision.git | ||
``` | ||
|
||
Windows: | ||
|
||
```bash | ||
git clone https://github.com/raj-mistry-01/Computer-Vision.git | ||
``` | ||
|
||
2. Navigate to Smart Attendance Folder | ||
|
||
3. Install required python packages | ||
|
||
```bash | ||
pip install -r requirements | ||
``` | ||
|
||
## What Is It (You can also read it in .idea folder) | ||
Now first we should have the students's data | ||
We have name and roll number of the students stored in a data.csv | ||
We will encode the each student's name(a string) into a qrcode | ||
|
||
In main.py | ||
first we will read the data.csv and make a list of name and their rollnumber | ||
By cv2 , If a student is present it will give his or her code to camera , we will | ||
decode it and by decoding it we will get his or her name after that we will remove | ||
his or her name from name list | ||
Which names are left in list ,simple logic they are absent | ||
|
||
|
||
## Avoid A Comman Mistake : | ||
In ```main.py``` the path of csv should be according your ```system``` | ||
|
||
### A Question In Your Mind (I know) : | ||
If one student has all qrcode than it can also presents his all friends , but soon this ```code``` is going to be integretad by ```Face Recognization``` | ||
|
||
## Languages Used : | ||
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from pyzbar.pyzbar import decode | ||
import cv2 | ||
from PIL import Image | ||
import csv | ||
|
||
cam = cv2.VideoCapture(0) | ||
|
||
students = [] | ||
RollNumbers = [] | ||
with open(r"path of csv","r") as file : | ||
reader = csv.reader(file) | ||
for row in reader : | ||
students.append(row[1]) | ||
RollNumbers.append(row[0]) | ||
|
||
while True : | ||
_,frame = cam.read() | ||
decodedframe = decode(frame) | ||
try : | ||
for qrcode in decodedframe : | ||
name = decodedframe[0].data.decode() | ||
if name in students : | ||
RollNumbers.remove(RollNumbers[students.index(name)]) | ||
students.remove(name) | ||
except: | ||
print("Error") | ||
cv2.imshow("Attendace System",frame) | ||
k = cv2.waitKey(100) & 0xff | ||
if k==27: | ||
break # press escape to close the loop | ||
print(f"Absent Students Name : {students}.") | ||
print(f"Absent Students Roll No : {RollNumbers}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pyzbar == 0.1.9 | ||
pillow == 10.2.0 | ||
opencv-contrib-python == 4.9.0.80 | ||
opencv-python == 4.9.0.80 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
first column = Student's Roll Number | ||
Second column = Student's Name |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.