Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
purna135 committed Feb 3, 2022
1 parent 02d9252 commit 7493059
Show file tree
Hide file tree
Showing 52 changed files with 71,220 additions and 97,647 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified db.sqlite3
Binary file not shown.
Binary file added face_rec/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added face_rec/__pycache__/face.cpython-39.pyc
Binary file not shown.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions face_rec/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def speak(text, id = None):


def create_user(face_id, face_name):
cam = cv2.VideoCapture(0)
cam = cv2.VideoCapture(0, cv2.CAP_DSHOW)
cam.set(3, 640) # set video width
cam.set(4, 480) # set video height

Expand Down Expand Up @@ -56,7 +56,7 @@ def create_user(face_id, face_name):
break
elif count >= 30: # Take 30 face sample and stop video
break

print("\n[INFO] Exiting Program...")
cam.release()
cv2.destroyAllWindows()
Expand Down
168,838 changes: 71,205 additions & 97,633 deletions face_rec/trainer/trainer.yml

Large diffs are not rendered by default.

Binary file added home/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added home/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file added home/__pycache__/apps.cpython-39.pyc
Binary file not shown.
Binary file added home/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file added home/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added home/__pycache__/views.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added home/migrations/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
24 changes: 12 additions & 12 deletions home/urls.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from django.conf.urls import url
from django.urls import include, re_path
from . import views


urlpatterns=[
url(r'^$', views.login, name='login'),
url('^dashboard/$', views.dashboard, name='dashboard'),
url('^dashboard/addstudent/$', views.add_student, name='addstudent'),
url('^dashboard/train/$', views.train_database, name='train'),
url('^dashboard/takeattendance/$', views.take_attendance, name='takeattendance'),
url('^dashboard/view/', views.view_attendance, name='view'),
url('^dashboard/settings/', views.settings, name='settings'),
url('^dashboard/sendmail/', views.send_mail, name='sendmail'),
url('^dashboard/profile/$', views.profile, name='profile'),
url('^logout/$', views.logout, name='logout'),
re_path(r'^$', views.login, name='login'),
re_path('^dashboard/$', views.dashboard, name='dashboard'),
re_path('^dashboard/addstudent/$', views.add_student, name='addstudent'),
re_path('^dashboard/train/$', views.train_database, name='train'),
re_path('^dashboard/takeattendance/$', views.take_attendance, name='takeattendance'),
re_path('^dashboard/view/', views.view_attendance, name='view'),
re_path('^dashboard/settings/', views.settings, name='settings'),
re_path('^dashboard/sendmail/', views.send_mail, name='sendmail'),
re_path('^dashboard/profile/$', views.profile, name='profile'),
re_path('^logout/$', views.logout, name='logout'),

url(r'^api/chart/data/$', views.ChartData.as_view()),
re_path(r'^api/chart/data/$', views.ChartData.as_view()),
]
1 change: 1 addition & 0 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def dashboard(request):
def add_student(request):
if request.method == 'POST':
fname = request.POST['fname']
fname = fname.strip()
lname = request.POST['lname']
roll = request.POST['roll'][-2:]
mob = request.POST['mob']
Expand Down

0 comments on commit 7493059

Please sign in to comment.