Posts

Showing posts from July, 2022

face-recognition-attendance

Image
  Source Code: https://github.com/AmarShaikh/face-re... import cv2 import numpy as np import face_recognition import os from datetime import datetime import pyodbc path='trainimg' images=[] imgLabel=[] mylst=os.listdir(path) for cl in mylst:     curimg=cv2.imread(f'{path}\\{cl}')     images.append(curimg)     imgLabel.append(os.path.splitext(cl)[0]) def findEncodings(images):     encodLst=[]     for img in images:         img=cv2.cvtColor(img,cv2.COLOR_BGR2RGB)         encode=face_recognition.face_encodings(img)[0]         encodLst.append(encode)     return encodLst encodlstKnowFaces=findEncodings(images) def markAttendance2(name,inTime,InDate):     conn = pyodbc.connect('Driver={SQL Server};'                       'Server=DESKTOP-1F0T08U;'                       'Database=attendancedb;'                       'Trusted_Connection=yes;')     cursor = conn.cursor()              sql='''insert into attendancedb.dbo.tbl_attendance (N

Python Projects

  Extract Text from PDF with Python 2 days ago Extract Text from PDF with Python Object Detection in 10 lines of code using Python 4 days ago Object Detection in 10 lines of code using Python Convert Text into Audio Using Python April 3, 2022 Convert Text into Audio Using Python Build an Asteroids Game With Python and Pygame February 26, 2022 Build an Asteroids Game With Python and Pygame How to Create a Tic-Tac-Toe Game in Python? December 17, 2021 How to Create a Tic-Tac-Toe Game in Python? Python Bootcamp 2021: Build 8 Real World Python Projects December 11, 2021 Python Bootcamp 2021: Build 8 Real World Python Projects Real time Number Plates Identifier and Counter in Python December 8, 2021 Real time Number Plates Identifier and Counter in Python Sending Emails With Python December 7, 2021 Sending Emails With Python Football Player and Team Detector in Python with Artificial Intelligence December 7, 2021 Football Player and Team Detector in Python with Artificial Intelligence Advan