SlideShare a Scribd company logo
Machine learning group 
Practical examples 
Scope 
We have covered some basic theory in our machine learning 
group but only a few of us have applied any of the tools. 
The next few weeks we are presenting some practical examples.
2 
Content 
Practical examples 
1. Numberplate recognition 
- Method 
- Code 
2. Face recognition 
- Method 
- Code 
Material from the book - Mastering OpenCV with practical computer 
vision examples, was used for this presentation.
3 
Examples 
1. Numberplate recognition 
Method 
SVM and Neural Networks 
1. Plate detection 
- Segmentation 
- Feature extraction 
- Classification 
- Results 
2. Plate recognition 
- Segmentation 
- Feature extraction 
- Classification 
- Results
4 
Examples
5 
1. Plate detection 
Examples 
- Segmentation 
- Feature extraction 
- Classification 
- Results
Sobel filter Threshold operation Close morphologic operation 
Mask of one filled area Detected plates after the 
6 
Possible detected plates 
marked in red (features images) 
SVM classifier 
Examples
7 
2. Plate recognition 
Examples 
- Segmentation (OCR segmentation) 
- Feature extraction 
- Classification 
- Results
8 
Examples
9 
1. Numberplate recognition 
Code 
Examples
10 
Examples 
2. Face recognition 
Method 
Eigenfaces or Fisherfaces 
1. Face detection 
2. Face preprocessing 
3. Training a machine-learning algorithm from collected faces 
4. Face recognition
11 
Examples 
2000 – Slow and Unreliable face detection 
2001 – Viola and Jones invented Haar-based cascade classifiers for object 
Detection. Big improvement especialy for real time application. 
2002 – Improved buy Lienhard and Maydt. 
2006 – LBP features by Ahonen Hadrd (Faster than Haar based features) 
LBP similar to Haar but uses histograms of pixel intensity comparisons.
12 
Examples 
Viola and Jones 
1. Grey scale image – intensity values from 0 to 255. 
2. The feature value is calculated as the sum of the pixel intensities in the 
light rectangle(s) minus the sum of the pixels in the dark rectangle(s) 
3. These adjacent blocks are known as ’features’.The value of the feature 
is then used in a filter to determine if that feature is present in the original 
image 
4. To make summing the intensity of the pixels in a given rectangle less 
computationally expensive and improve the speed, the integral image gets 
calculated (finding the area under a curve by adding together small 
rectangular areas) at every point. 
5. Learning. When there is no correlation between the feature identify-ing 
a face and it not being one, and vice versa it would be rejected.
Type of cascade classifier XML filename – OpenCV v2.4 
Face detector (default) haarcascade_frontalface_default.xml 
Face detector (fast Haar) haarcascade_frontalface_alt2.xml 
Face detector (fast LBP) lbpcascade_frontalface.xml 
Profile (side-looking) face detector haarcascade_profileface.xml 
Eye detector (separate for left and right) haarcascade_lefteye_2splits.xml 
Mouth detector haarcascade_mcs_mouth.xml 
Nose detector haarcascade_mcs_nose.xml 
Whole person detector haarcascade_fullbody.xml 
13 
Examples
14 
Examples 
Geometrical 
transformation 
and cropping 
Separate 
histogram 
equalization 
for left and 
right sides 
Smoothing 
bilateral 
filter 
Elliptical mask
15 
Examples 
Eigen Faces 
Fisher Faces
16 
Examples 
2. Face recognition 
Code
Thank you 
Name (email@csir.co.za)

More Related Content

What's hot

Ecet 370 week 1 lab
Ecet 370 week 1 labEcet 370 week 1 lab
Ecet 370 week 1 lab
agevpaswind1984
 
Generative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variantsGenerative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variants
ananth
 
Deep Neural Network Regression at Scale in Spark MLlib
Deep Neural Network Regression at Scale in Spark MLlibDeep Neural Network Regression at Scale in Spark MLlib
Deep Neural Network Regression at Scale in Spark MLlib
Jeremy Nixon
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Mohammad Tawfik
 
CubeIT Tech - Algorithms
CubeIT Tech - AlgorithmsCubeIT Tech - Algorithms
CubeIT Tech - Algorithms
Kirill Suslov
 
Test 3 exam review guide
Test 3 exam review guideTest 3 exam review guide
Test 3 exam review guide
bgb02burns
 
Introduction to MATLAB 1
Introduction to MATLAB 1Introduction to MATLAB 1
Introduction to MATLAB 1
Mohamed Gafar
 
Java Tutorial Lab 3
Java Tutorial Lab 3Java Tutorial Lab 3
Java Tutorial Lab 3
Berk Soysal
 
COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4
COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4
COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4
Voffelarin
 
Slideshare breaking inter layer co-adaptation
Slideshare breaking inter layer co-adaptationSlideshare breaking inter layer co-adaptation
Slideshare breaking inter layer co-adaptation
Masayuki Tanaka
 
Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
ktuonlinenotes
 
Matlab-Data types and operators
Matlab-Data types and operatorsMatlab-Data types and operators
Matlab-Data types and operators
Luckshay Batra
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
ashhadiqbal
 
Substructure Similarity Search in Graph Databases
Substructure Similarity Search in Graph DatabasesSubstructure Similarity Search in Graph Databases
Substructure Similarity Search in Graph Databases
pgst
 
Prelim Project OOP
Prelim Project OOPPrelim Project OOP
Prelim Project OOP
Dwight Sabio
 
งานย่อย 6
งานย่อย 6งานย่อย 6
งานย่อย 6
Biw Nipawan
 
Introduction to Machine Learning in Python using Scikit-Learn
Introduction to Machine Learning in Python using Scikit-LearnIntroduction to Machine Learning in Python using Scikit-Learn
Introduction to Machine Learning in Python using Scikit-Learn
Amol Agrawal
 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & Scientists
Ray Phan
 
Reviewer prelims
Reviewer prelimsReviewer prelims
Reviewer prelims
Juan Apolinario Reyes
 
KNN - Classification Model (Step by Step)
KNN - Classification Model (Step by Step)KNN - Classification Model (Step by Step)
KNN - Classification Model (Step by Step)
Manish nath choudhary
 

What's hot (20)

Ecet 370 week 1 lab
Ecet 370 week 1 labEcet 370 week 1 lab
Ecet 370 week 1 lab
 
Generative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variantsGenerative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variants
 
Deep Neural Network Regression at Scale in Spark MLlib
Deep Neural Network Regression at Scale in Spark MLlibDeep Neural Network Regression at Scale in Spark MLlib
Deep Neural Network Regression at Scale in Spark MLlib
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
CubeIT Tech - Algorithms
CubeIT Tech - AlgorithmsCubeIT Tech - Algorithms
CubeIT Tech - Algorithms
 
Test 3 exam review guide
Test 3 exam review guideTest 3 exam review guide
Test 3 exam review guide
 
Introduction to MATLAB 1
Introduction to MATLAB 1Introduction to MATLAB 1
Introduction to MATLAB 1
 
Java Tutorial Lab 3
Java Tutorial Lab 3Java Tutorial Lab 3
Java Tutorial Lab 3
 
COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4
COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4
COLLEGE OF COMPUTING AND INFORMATICS Assignment – 4
 
Slideshare breaking inter layer co-adaptation
Slideshare breaking inter layer co-adaptationSlideshare breaking inter layer co-adaptation
Slideshare breaking inter layer co-adaptation
 
Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
 
Matlab-Data types and operators
Matlab-Data types and operatorsMatlab-Data types and operators
Matlab-Data types and operators
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
 
Substructure Similarity Search in Graph Databases
Substructure Similarity Search in Graph DatabasesSubstructure Similarity Search in Graph Databases
Substructure Similarity Search in Graph Databases
 
Prelim Project OOP
Prelim Project OOPPrelim Project OOP
Prelim Project OOP
 
งานย่อย 6
งานย่อย 6งานย่อย 6
งานย่อย 6
 
Introduction to Machine Learning in Python using Scikit-Learn
Introduction to Machine Learning in Python using Scikit-LearnIntroduction to Machine Learning in Python using Scikit-Learn
Introduction to Machine Learning in Python using Scikit-Learn
 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & Scientists
 
Reviewer prelims
Reviewer prelimsReviewer prelims
Reviewer prelims
 
KNN - Classification Model (Step by Step)
KNN - Classification Model (Step by Step)KNN - Classification Model (Step by Step)
KNN - Classification Model (Step by Step)
 

Viewers also liked

CHAMP: a Bespoke Integrated System for Mobile Manipulation
CHAMP: a Bespoke Integrated System for Mobile ManipulationCHAMP: a Bespoke Integrated System for Mobile Manipulation
CHAMP: a Bespoke Integrated System for Mobile Manipulation
Beatrice van Eden
 
Mid winter final
Mid winter finalMid winter final
Mid winter final
Beatrice van Eden
 
Kernal methods part2
Kernal methods part2Kernal methods part2
Kernal methods part2
Beatrice van Eden
 
Wits presentation 5_30062015
Wits presentation 5_30062015Wits presentation 5_30062015
Wits presentation 5_30062015
Beatrice van Eden
 
Wits presentation 3_02062015
Wits presentation 3_02062015Wits presentation 3_02062015
Wits presentation 3_02062015
Beatrice van Eden
 
US learning
US learningUS learning
US learning
Beatrice van Eden
 
Wits presentation 2_19052015
Wits presentation 2_19052015Wits presentation 2_19052015
Wits presentation 2_19052015
Beatrice van Eden
 
Wits presentation 1_21042015
Wits presentation 1_21042015Wits presentation 1_21042015
Wits presentation 1_21042015
Beatrice van Eden
 
Wits presentation 6_28072015
Wits presentation 6_28072015Wits presentation 6_28072015
Wits presentation 6_28072015
Beatrice van Eden
 
Wits presentation 4_17062015
Wits presentation 4_17062015Wits presentation 4_17062015
Wits presentation 4_17062015
Beatrice van Eden
 
Probability distributionv1
Probability distributionv1Probability distributionv1
Probability distributionv1
Beatrice van Eden
 
Python and Machine Learning
Python and Machine LearningPython and Machine Learning
Python and Machine Learning
trygub
 
Introduction to Deep Learning with Python
Introduction to Deep Learning with PythonIntroduction to Deep Learning with Python
Introduction to Deep Learning with Python
indico data
 
Deep Learning through Examples
Deep Learning through ExamplesDeep Learning through Examples
Deep Learning through Examples
Sri Ambati
 

Viewers also liked (15)

CHAMP: a Bespoke Integrated System for Mobile Manipulation
CHAMP: a Bespoke Integrated System for Mobile ManipulationCHAMP: a Bespoke Integrated System for Mobile Manipulation
CHAMP: a Bespoke Integrated System for Mobile Manipulation
 
Mid winter final
Mid winter finalMid winter final
Mid winter final
 
Photo midwinter 2011
Photo midwinter 2011Photo midwinter 2011
Photo midwinter 2011
 
Kernal methods part2
Kernal methods part2Kernal methods part2
Kernal methods part2
 
Wits presentation 5_30062015
Wits presentation 5_30062015Wits presentation 5_30062015
Wits presentation 5_30062015
 
Wits presentation 3_02062015
Wits presentation 3_02062015Wits presentation 3_02062015
Wits presentation 3_02062015
 
US learning
US learningUS learning
US learning
 
Wits presentation 2_19052015
Wits presentation 2_19052015Wits presentation 2_19052015
Wits presentation 2_19052015
 
Wits presentation 1_21042015
Wits presentation 1_21042015Wits presentation 1_21042015
Wits presentation 1_21042015
 
Wits presentation 6_28072015
Wits presentation 6_28072015Wits presentation 6_28072015
Wits presentation 6_28072015
 
Wits presentation 4_17062015
Wits presentation 4_17062015Wits presentation 4_17062015
Wits presentation 4_17062015
 
Probability distributionv1
Probability distributionv1Probability distributionv1
Probability distributionv1
 
Python and Machine Learning
Python and Machine LearningPython and Machine Learning
Python and Machine Learning
 
Introduction to Deep Learning with Python
Introduction to Deep Learning with PythonIntroduction to Deep Learning with Python
Introduction to Deep Learning with Python
 
Deep Learning through Examples
Deep Learning through ExamplesDeep Learning through Examples
Deep Learning through Examples
 

Similar to Machine learning group - Practical examples

Face Detection System on Ada boost Algorithm Using Haar Classifiers
Face Detection System on Ada boost Algorithm Using Haar ClassifiersFace Detection System on Ada boost Algorithm Using Haar Classifiers
Face Detection System on Ada boost Algorithm Using Haar Classifiers
IJMER
 
FEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITION
FEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITIONFEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITION
FEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITION
International Journal of Technical Research & Application
 
Face Detection techniques
Face Detection techniquesFace Detection techniques
Face Detection techniques
Abhineet Bhamra
 
Road signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvRoad signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencv
MohdSalim34
 
Report face recognition : ArganRecogn
Report face recognition :  ArganRecognReport face recognition :  ArganRecogn
Report face recognition : ArganRecogn
Ilyas CHAOUA
 
Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...
Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...
Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...
CSCJournals
 
fuzzy LBP for face recognition ppt
fuzzy LBP for face recognition pptfuzzy LBP for face recognition ppt
fuzzy LBP for face recognition ppt
Abdullah Gubbi
 
Learning with Relative Attributes
Learning with Relative AttributesLearning with Relative Attributes
Learning with Relative Attributes
Vikas Jain
 
Computer Vision - Real Time Face Recognition using Open CV and Python
Computer Vision - Real Time Face Recognition using Open CV and PythonComputer Vision - Real Time Face Recognition using Open CV and Python
Computer Vision - Real Time Face Recognition using Open CV and Python
Akash Satamkar
 
Practical Digital Image Processing 4
Practical Digital Image Processing 4Practical Digital Image Processing 4
Practical Digital Image Processing 4
Aly Abdelkareem
 
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From ScratchPPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
Jisang Yoon
 
Implementation of high performance feature extraction method using oriented f...
Implementation of high performance feature extraction method using oriented f...Implementation of high performance feature extraction method using oriented f...
Implementation of high performance feature extraction method using oriented f...
eSAT Journals
 
InternshipReport
InternshipReportInternshipReport
InternshipReport
Vikas Solanki
 
Object Capturing In A Cluttered Scene By Using Point Feature Matching
Object Capturing In A Cluttered Scene By Using Point Feature MatchingObject Capturing In A Cluttered Scene By Using Point Feature Matching
Object Capturing In A Cluttered Scene By Using Point Feature Matching
IJERA Editor
 
Deep Computer Vision - 1.pptx
Deep Computer Vision - 1.pptxDeep Computer Vision - 1.pptx
Deep Computer Vision - 1.pptx
JawadHaider36
 
I017525560
I017525560I017525560
I017525560
IOSR Journals
 
Visual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learningVisual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learning
Benjamin Bengfort
 
H0334749
H0334749H0334749
H0334749
iosrjournals
 
ArtificialIntelligenceInObjectDetection-Report.pdf
ArtificialIntelligenceInObjectDetection-Report.pdfArtificialIntelligenceInObjectDetection-Report.pdf
ArtificialIntelligenceInObjectDetection-Report.pdf
Abishek86232
 
Recent Progress on Object Detection_20170331
Recent Progress on Object Detection_20170331Recent Progress on Object Detection_20170331
Recent Progress on Object Detection_20170331
Jihong Kang
 

Similar to Machine learning group - Practical examples (20)

Face Detection System on Ada boost Algorithm Using Haar Classifiers
Face Detection System on Ada boost Algorithm Using Haar ClassifiersFace Detection System on Ada boost Algorithm Using Haar Classifiers
Face Detection System on Ada boost Algorithm Using Haar Classifiers
 
FEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITION
FEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITIONFEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITION
FEATURE EXTRACTION USING SURF ALGORITHM FOR OBJECT RECOGNITION
 
Face Detection techniques
Face Detection techniquesFace Detection techniques
Face Detection techniques
 
Road signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvRoad signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencv
 
Report face recognition : ArganRecogn
Report face recognition :  ArganRecognReport face recognition :  ArganRecogn
Report face recognition : ArganRecogn
 
Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...
Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...
Shallow vs. Deep Image Representations: A Comparative Study with Enhancements...
 
fuzzy LBP for face recognition ppt
fuzzy LBP for face recognition pptfuzzy LBP for face recognition ppt
fuzzy LBP for face recognition ppt
 
Learning with Relative Attributes
Learning with Relative AttributesLearning with Relative Attributes
Learning with Relative Attributes
 
Computer Vision - Real Time Face Recognition using Open CV and Python
Computer Vision - Real Time Face Recognition using Open CV and PythonComputer Vision - Real Time Face Recognition using Open CV and Python
Computer Vision - Real Time Face Recognition using Open CV and Python
 
Practical Digital Image Processing 4
Practical Digital Image Processing 4Practical Digital Image Processing 4
Practical Digital Image Processing 4
 
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From ScratchPPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
 
Implementation of high performance feature extraction method using oriented f...
Implementation of high performance feature extraction method using oriented f...Implementation of high performance feature extraction method using oriented f...
Implementation of high performance feature extraction method using oriented f...
 
InternshipReport
InternshipReportInternshipReport
InternshipReport
 
Object Capturing In A Cluttered Scene By Using Point Feature Matching
Object Capturing In A Cluttered Scene By Using Point Feature MatchingObject Capturing In A Cluttered Scene By Using Point Feature Matching
Object Capturing In A Cluttered Scene By Using Point Feature Matching
 
Deep Computer Vision - 1.pptx
Deep Computer Vision - 1.pptxDeep Computer Vision - 1.pptx
Deep Computer Vision - 1.pptx
 
I017525560
I017525560I017525560
I017525560
 
Visual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learningVisual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learning
 
H0334749
H0334749H0334749
H0334749
 
ArtificialIntelligenceInObjectDetection-Report.pdf
ArtificialIntelligenceInObjectDetection-Report.pdfArtificialIntelligenceInObjectDetection-Report.pdf
ArtificialIntelligenceInObjectDetection-Report.pdf
 
Recent Progress on Object Detection_20170331
Recent Progress on Object Detection_20170331Recent Progress on Object Detection_20170331
Recent Progress on Object Detection_20170331
 

More from Beatrice van Eden

SANAE 50 newsletter 2011 06
SANAE 50 newsletter 2011 06 SANAE 50 newsletter 2011 06
SANAE 50 newsletter 2011 06
Beatrice van Eden
 
Sanae 50 may newsletter
Sanae 50 may newsletterSanae 50 may newsletter
Sanae 50 may newsletter
Beatrice van Eden
 
Sanae50 newsletter apr2011_final_300dpi
Sanae50 newsletter apr2011_final_300dpiSanae50 newsletter apr2011_final_300dpi
Sanae50 newsletter apr2011_final_300dpiBeatrice van Eden
 
Sanae50 newsletter march2011_draft2_300dpi
Sanae50 newsletter march2011_draft2_300dpiSanae50 newsletter march2011_draft2_300dpi
Sanae50 newsletter march2011_draft2_300dpi
Beatrice van Eden
 

More from Beatrice van Eden (7)

SANAE 50 newsletter 2011 06
SANAE 50 newsletter 2011 06 SANAE 50 newsletter 2011 06
SANAE 50 newsletter 2011 06
 
Sanae 50 may newsletter
Sanae 50 may newsletterSanae 50 may newsletter
Sanae 50 may newsletter
 
Some more greetings
Some more greetingsSome more greetings
Some more greetings
 
Mid winter artigas uruguay
Mid winter artigas uruguayMid winter artigas uruguay
Mid winter artigas uruguay
 
Sanae50 newsletter apr2011_final_300dpi
Sanae50 newsletter apr2011_final_300dpiSanae50 newsletter apr2011_final_300dpi
Sanae50 newsletter apr2011_final_300dpi
 
Sanae50 newsletter march2011_draft2_300dpi
Sanae50 newsletter march2011_draft2_300dpiSanae50 newsletter march2011_draft2_300dpi
Sanae50 newsletter march2011_draft2_300dpi
 
Sanae50 newsletter feb2011
Sanae50 newsletter feb2011Sanae50 newsletter feb2011
Sanae50 newsletter feb2011
 

Recently uploaded

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 

Recently uploaded (20)

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 

Machine learning group - Practical examples

  • 1. Machine learning group Practical examples Scope We have covered some basic theory in our machine learning group but only a few of us have applied any of the tools. The next few weeks we are presenting some practical examples.
  • 2. 2 Content Practical examples 1. Numberplate recognition - Method - Code 2. Face recognition - Method - Code Material from the book - Mastering OpenCV with practical computer vision examples, was used for this presentation.
  • 3. 3 Examples 1. Numberplate recognition Method SVM and Neural Networks 1. Plate detection - Segmentation - Feature extraction - Classification - Results 2. Plate recognition - Segmentation - Feature extraction - Classification - Results
  • 5. 5 1. Plate detection Examples - Segmentation - Feature extraction - Classification - Results
  • 6. Sobel filter Threshold operation Close morphologic operation Mask of one filled area Detected plates after the 6 Possible detected plates marked in red (features images) SVM classifier Examples
  • 7. 7 2. Plate recognition Examples - Segmentation (OCR segmentation) - Feature extraction - Classification - Results
  • 9. 9 1. Numberplate recognition Code Examples
  • 10. 10 Examples 2. Face recognition Method Eigenfaces or Fisherfaces 1. Face detection 2. Face preprocessing 3. Training a machine-learning algorithm from collected faces 4. Face recognition
  • 11. 11 Examples 2000 – Slow and Unreliable face detection 2001 – Viola and Jones invented Haar-based cascade classifiers for object Detection. Big improvement especialy for real time application. 2002 – Improved buy Lienhard and Maydt. 2006 – LBP features by Ahonen Hadrd (Faster than Haar based features) LBP similar to Haar but uses histograms of pixel intensity comparisons.
  • 12. 12 Examples Viola and Jones 1. Grey scale image – intensity values from 0 to 255. 2. The feature value is calculated as the sum of the pixel intensities in the light rectangle(s) minus the sum of the pixels in the dark rectangle(s) 3. These adjacent blocks are known as ’features’.The value of the feature is then used in a filter to determine if that feature is present in the original image 4. To make summing the intensity of the pixels in a given rectangle less computationally expensive and improve the speed, the integral image gets calculated (finding the area under a curve by adding together small rectangular areas) at every point. 5. Learning. When there is no correlation between the feature identify-ing a face and it not being one, and vice versa it would be rejected.
  • 13. Type of cascade classifier XML filename – OpenCV v2.4 Face detector (default) haarcascade_frontalface_default.xml Face detector (fast Haar) haarcascade_frontalface_alt2.xml Face detector (fast LBP) lbpcascade_frontalface.xml Profile (side-looking) face detector haarcascade_profileface.xml Eye detector (separate for left and right) haarcascade_lefteye_2splits.xml Mouth detector haarcascade_mcs_mouth.xml Nose detector haarcascade_mcs_nose.xml Whole person detector haarcascade_fullbody.xml 13 Examples
  • 14. 14 Examples Geometrical transformation and cropping Separate histogram equalization for left and right sides Smoothing bilateral filter Elliptical mask
  • 15. 15 Examples Eigen Faces Fisher Faces
  • 16. 16 Examples 2. Face recognition Code
  • 17. Thank you Name (email@csir.co.za)

Editor's Notes

  1. <number>