-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from codewhizz/recognization
Recognization Feature Works. Fixed Bugs as well ;)
- Loading branch information
Showing
13 changed files
with
108 additions
and
86 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Id,Name | ||
ID,Name | ||
, | ||
, | ||
, | ||
|
@@ -17,5 +17,4 @@ Id,Name | |
, | ||
, | ||
, | ||
0, Test | ||
1,Aslam | ||
0,Test |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,30 +1,25 @@ | ||
import cv2 | ||
|
||
# input live stream from a recorder | ||
# URL = "http://192.168.1.103:8080/video" | ||
|
||
# input from saved video | ||
# URL = "video.avi" | ||
def start(input_video): | ||
# store input video stream capture in cap variable | ||
cap = cv2.VideoCapture(input_video) | ||
|
||
# input from a device attached to computer | ||
URL = 0 # or -1 | ||
|
||
|
||
def start(): | ||
cap = cv2.VideoCapture(URL) | ||
while cap.isOpened(): | ||
# capture frame-by-frame | ||
ret, frame = cap.read() | ||
if ret is True: # video is detected | ||
# convert frame to grayscale | ||
# gray_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) | ||
|
||
# display the resulting frame | ||
cv2.imshow('frame', frame) | ||
cv2.imshow('Checking Video - Attendance using Face Recognition', frame) | ||
|
||
if cv2.waitKey(1) & 0xFF == ord('q'): | ||
break | ||
else: # video not detected | ||
break | ||
|
||
# when everything is done | ||
cap.release() | ||
cv2.destroyAllWindows() |
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pyfiglet | ||
appdirs==1.4.3 | ||
attrs==19.1.0 | ||
black==19.3b0 | ||
|