install face-recognition
pip install face-recognition
install face-recognition
pip install face-recognition
pycharm install face_recognition
$ git clone git://github.com/ageitgey/face_recognition
python face recognition
# simple python code: face recognition
import cv2
import numpy as np
detect = cv2.CascadeClassifier(cv2.data.haarcascades +'haarcascade_frontalface_default.xml')
cam = cv2.VideoCapture('image.jpg')
check, img = cam.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = detect.detectMultiScale(gray,1.2,5)
for (x,y,w,h) in faces:
cv2.rectangle(img, (x,y), (x+w, y+h), (255, 0, 0), 2)
cv2.imshow('Face Detect', img)
cv2.waitKey(600000)
cam.release()
cv2.destroyAllWindows()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us