Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit da7a638

Browse files
Face Recognition Added #466
1 parent 36d3fd7 commit da7a638

File tree

7 files changed

+59468
-3
lines changed

7 files changed

+59468
-3
lines changed

‎Face_Recognition/Recognition.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
haar_cascade = cv.CascadeClassifier('haar_face.xml')
55

66
people = []
7-
DIR = r'' ## DIR - path of the folder containing images
7+
DIR = r'images' ## DIR - path of the folder containing images
88
for i in os.listdir(DIR):
99
people.append(i)
1010

@@ -13,7 +13,7 @@
1313
# We are using the trained yml file.
1414
face_recognizer.read('face_trained.yml')
1515

16-
img = cv.imread(r'')
16+
img = cv.imread(r'images\henry13円.jpg')
1717

1818
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
1919
cv.imshow('Person', gray)

‎Face_Recognition/face_train.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numpy as np
99

1010
people = []
11-
DIR = r'' # DIR - path of the folder containing images
11+
DIR = r'images' # DIR - path of the folder containing images
1212
for i in os.listdir(DIR): # Will append the names of the person in the people list
1313
people.append(i)
1414

‎Face_Recognition/face_trained.yml‎

Lines changed: 26151 additions & 0 deletions
Large diffs are not rendered by default.

‎Face_Recognition/features.npy‎

2.81 MB
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /