Skip to content

Commit

Permalink
Merge pull request #148 from srishilesh/master
Browse files Browse the repository at this point in the history
Issue #31 Modularizing Code - Srishilesh
  • Loading branch information
RajatGarg97 authored May 13, 2019
2 parents 0124045 + 0813f6f commit 6b153d0
Show file tree
Hide file tree
Showing 6 changed files with 1,037 additions and 993 deletions.
10 changes: 10 additions & 0 deletions windows/add_face.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import cv2

def add_face_detect(link):
name = link[1] # Add Username
path = 'C:/dataset' # Directory location
cam = cv2.VideoCapture(0) # To capture images of the user
ret, img = cam.read()
cv2.imwrite(path + "/" + str(name) + ".jpg", img)
cam.release()
cv2.destroyAllWindows()
Loading

0 comments on commit 6b153d0

Please sign in to comment.