7. Brief Analysis of the Database and the
Original System
• Good Illumination
• Varying Pose (Tilted Face )
• NOT Only the Frontal Views
8. Close All
Traversing the
File
Check
Toolbox
Build Face
Part Detector
Crop the Face
There is a
Face
Check if it is
Frontal Face
Yes, it is
Frontal Face
Check if it is
tilted
Yes, it is a
Tilted Face
Output
No, it is not.
Do Rotation
Output
Illumination
Correction*
Glasses
Removal
No, it is Side
Face
Drop It
There is no
Face
Drop It
The Pre-Processing
System
9. Build Face Part Detector/Crop the Face
• Output the Face Boundary, Left eye Boundary, Right eye Boundary,
Mouth Boundary and Nose Boundary
• The relevant information is included in the documentation of Matlab,
vision.CascadeObjectDetector System object.
10. Close All
Traversing the
File
Check
Toolbox
Build Face
Part Detector
Crop the Face
There is a
Face
Check if it is
Frontal Face
Yes, it is
Frontal Face
Check if it is
tilted
Yes, it is a
Tilted Face
Output
No, it is not.
Do Rotation
Output
Illumination
Correction*
Glasses
Removal
No, it is Side
Face
Drop It
There is no
Face
Drop It
The Pre-Processing
System
11. Detect If It Is Frontal Face
• Detect Box
• Check if Two Eyes Boxes Exist
• Location of Mouth & Nose
13. The Second Type
• Get Vertical Center of Mouth and Nose
• Calculate Absolute Distance of Two Middle Lines
• ‘Relative’ Distance
Relative Distance = Absolute Distance/ Face Width
• Set Threshold
14. Close All
Traversing the
File
Check
Toolbox
Build Face
Part Detector
Crop the Face
There is a
Face
Check if it is
Frontal Face
Yes, it is
Frontal Face
Check if it is
tilted
Yes, it is a
Tilted Face
Output
No, it is not.
Do Rotation
Output
Illumination
Correction*
Glasses
Removal
No, it is Side
Face
Drop It
There is no
Face
Drop It
The Pre-Processing
System
15. • Check Location of Left Eye&Right Eye
(the boundary box)
• Get Center points
• Link
• Check the Angle
• imrotate()
• Rebuild Face Part Detector&Recrop the Face
Detect If It Is Tilted Face
16. Close All
Traversing the
File
Check
Toolbox
Build Face
Part Detector
Crop the Face
There is a
Face
Check if it is
Frontal Face
Yes, it is
Frontal Face
Check if it is
tilted
Yes, it is a
Tilted Face
Output
No, it is not.
Do Rotation
Output
Illumination
Correction*
Glasses
Removal
No, it is Side
Face
Drop It
There is no
Face
Drop It
The Pre-Processing
System
17. Illumination-Correction
• 𝐼 𝑚, 𝑛 = 𝑅 𝑚, 𝑛 𝐿(𝑚, 𝑛)
• Low Frequency Component & High Frequency Component
• DCT Normalization (Discrete Cosine Transform Normalization)
• log 𝐼 𝑚, 𝑛 = log 𝑅 𝑚, 𝑛 + log 𝐿(𝑚, 𝑛))
K. P. Horn, Robot Vision. Cambridge, MA: MIT Press, 1986.
18. Details
• Installation
• Do Image Histogram Normalization
• Create & Save Zigzag Map
• Transform to Logarithm & Frequency Domains
• Set Zero to the Relevant Coefficient
• Inverse DCT
• Post-Processing