Skip to content

Commit 49bd1db

Browse files
committed
docs: Add short info and list of opencv face recognizers
1 parent 196fa90 commit 49bd1db

File tree

1 file changed

+52
-2
lines changed

1 file changed

+52
-2
lines changed

OpenCV-Face-Recognition-Python.ipynb

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"# Face Recognition with OpenCV and Python"
88
]
99
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"## Introduction"
15+
]
16+
},
1017
{
1118
"cell_type": "markdown",
1219
"metadata": {},
@@ -26,6 +33,40 @@
2633
"![visualization](output/tom-shahrukh.png)"
2734
]
2835
},
36+
{
37+
"cell_type": "markdown",
38+
"metadata": {},
39+
"source": [
40+
"## OpenCV Face Recognizers"
41+
]
42+
},
43+
{
44+
"cell_type": "markdown",
45+
"metadata": {},
46+
"source": [
47+
"OpenCV has three built in face recognizers and thanks to OpenCV's clean coding, you can use any of them by just changing a single line of code. Below are the names of those face recognizers and their OpenCV calls. \n",
48+
"\n",
49+
"1. EigenFaces Recognizer - `cv2.face.createEigenFaceRecognizer()`\n",
50+
"2. FisherFaces Recognizer - `cv2.face.createFisherFaceRecognizer()`\n",
51+
"3. Local Binary Patterns Histograms (LBPH) Face Recognizer - `cv2.face.createLBPHFaceRecognizer()`"
52+
]
53+
},
54+
{
55+
"cell_type": "markdown",
56+
"metadata": {},
57+
"source": [
58+
"### Eigen Faces Recognizer"
59+
]
60+
},
61+
{
62+
"cell_type": "code",
63+
"execution_count": null,
64+
"metadata": {
65+
"collapsed": true
66+
},
67+
"outputs": [],
68+
"source": []
69+
},
2970
{
3071
"cell_type": "markdown",
3172
"metadata": {},
@@ -52,13 +93,15 @@
5293
"cell_type": "markdown",
5394
"metadata": {},
5495
"source": [
55-
"## Import Required Modules"
96+
"### Import Required Modules"
5697
]
5798
},
5899
{
59100
"cell_type": "markdown",
60101
"metadata": {},
61102
"source": [
103+
"Before starting the actual coding we need to import the required modules for coding. So let's import them first. \n",
104+
"\n",
62105
"- **cv2:** is _OpenCV_ module for Python which we will use for face detection and face recognition.\n",
63106
"- **os:** We will use this Python module to read our training directories and file names.\n",
64107
"- **numpy:** We will use this module to convert Python lists to numpy arrays as OpenCV face recognizers accept numpy arrays."
@@ -85,6 +128,13 @@
85128
"%matplotlib inline "
86129
]
87130
},
131+
{
132+
"cell_type": "markdown",
133+
"metadata": {},
134+
"source": [
135+
"### Training Data"
136+
]
137+
},
88138
{
89139
"cell_type": "markdown",
90140
"metadata": {},
@@ -380,7 +430,7 @@
380430
"cell_type": "markdown",
381431
"metadata": {},
382432
"source": [
383-
"As OpenCV comes equipped with three face recognizers.\n",
433+
"As we know, OpenCV comes equipped with three face recognizers.\n",
384434
"\n",
385435
"1. EigenFace Recognizer: This can be created with `cv2.face.createEigenFaceRecognizer()`\n",
386436
"2. FisherFace Recognizer: This can be created with `cv2.face.createFisherFaceRecognizer()`\n",

0 commit comments

Comments
 (0)