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 dc1c437

Browse files
Face Recognition
1 parent da7a638 commit dc1c437

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

‎Face_Recognition/Recognition.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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'images\henry13円.jpg')
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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def train_face():
5252
# we can easily access this trained model
5353
face_recognizer.save('face_trained.yml')
5454

55-
# save the features and labels into the numpy file
56-
np.save('features.npy', features)
57-
np.save('labels.npy',labels)
58-
55+
#### save the features and labels into the numpy file
56+
# simply remove the comments of the below 2 line
57+
#
58+
# np.save('features.npy', features)
59+
# np.save('labels.npy',labels)

‎Face_Recognition/features.npy‎

-2.81 MB
Binary file not shown.

‎Face_Recognition/images/henry/13.jpg‎

-52 KB
Binary file not shown.

‎Face_Recognition/labels.npy‎

-164 Bytes
Binary file not shown.

0 commit comments

Comments
(0)

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