Answers for "python install face_recognition"

0

install face-recognition

pip install face-recognition
Posted by: Guest on February-17-2022
1

pycharm install face_recognition

$ git clone git://github.com/ageitgey/face_recognition
Posted by: Guest on May-05-2020
0

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()
Posted by: Guest on May-12-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language