UmairMirza commited on
Commit
41b0143
1 Parent(s): 2b4de57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -10,6 +10,7 @@ images = []
10
  personNames = []
11
  myList = os.listdir(path)
12
  unkownEncodings=[]
 
13
  print(myList)
14
  for cu_img in myList:
15
  current_Img = cv2.imread(f'{path}/{cu_img}')
@@ -32,7 +33,7 @@ encodeListKnown = faceEncodings(images)
32
  print('All Encodings Complete!!!')
33
 
34
  def Attandance(video):
35
- cap = cv2.VideoCapture("messi-ronaldo-fb.jpg")
36
  index=1
37
  while True:
38
  #try:
@@ -65,7 +66,4 @@ demo=gr.Interface(fn=Attandance,
65
 
66
  )
67
  demo.launch(debug=True)
68
- print(len(unkownEncodings))
69
-
70
- cap.release()
71
- cv2.destroyAllWindows()
 
10
  personNames = []
11
  myList = os.listdir(path)
12
  unkownEncodings=[]
13
+ names=[]
14
  print(myList)
15
  for cu_img in myList:
16
  current_Img = cv2.imread(f'{path}/{cu_img}')
 
33
  print('All Encodings Complete!!!')
34
 
35
  def Attandance(video):
36
+ cap = cv2.VideoCapture(video)
37
  index=1
38
  while True:
39
  #try:
 
66
 
67
  )
68
  demo.launch(debug=True)
69
+