Skip to content

Rachit333/Face_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Recognition

THIS IS AN EXTENSION TO MY PERSONAL PROJECT CALLED Quark

NOTE: I AM USING Python 3.8.2

Installation

Download and install an application called "IP Webcam"

Link: https://bit.ly/ip_webcam_app

Connect both devices on same network, and start the server in the app on android phone.

For using the webcam, remove the following code snippet from main.py

  • Line 8 - 17
from selenium import webdriver
from selenium.webdriver.chrome.options import Options;
driver_path = r"C:\Windows\chromedriver.exe"
options = Options()
options.add_argument('--headless')
options.add_argument('--log-level=3')
driver = webdriver.Chrome(driver_path, chrome_options=options)
ip = netifaces.gateways()['default'][netifaces.AF_INET][0]
driver.get(f"http://{ip}:8080/")
cap = cv2.VideoCapture(f"http://{ip}:8080/video")
  • Line 37 -38
driver.find_element_by_id('flashbtn').click()                                 
driver.quit() 
  • Line 81
driver.find_element_by_id('flashbtn').click()

And uncomment the code.

  • Line 4
cap = cv2.VideoCapture(0)

Click a picture of yourself and paste in the ./faces folder.

The picture should in .jpg format. Rename it to your name.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages