SlideShare a Scribd company logo
1 of 15
Download to read offline
Face detection in android
media apps
Adding more value to applications
Hackathon, Mobile Day
Endava
24.06.2013
• Face detection/recognition – what’s all about?
• Pioneers in face recognition
• Add value to your media apps
• What we want to…
• Tools & technologies
• How it’s all mixed up?
• How all things work together?
• How can we make it work?
• Some facts
• Don’t forget about privacy
• Q&A
Highlights
2
IN YOUR ZONE
Face detection/recognition – what’s all about?
3
•Face detection
• Definition
• Use cases
•Face recognition
•Definition
•Use cases
IN YOUR ZONE
Pioneers in face recognition
4
•Marker points (position of eyes, ears, nose)
•Kanade, T. (November 1973) - Euclidean distance between feature vectors of a probe and reference image
•Eigenfaces – Turk, M. & Pentland, A. – a holistic approach to face recognition
•Fisherfaces – Belhumeur, P. N., Hespanha, J., and Kriegman, D. (1997) - Eigenfaces vs. Fisherfaces
•Local feature extraction:
• Gabor Wavelets – Wiskott, L., Fellous, J., Krüger, N., Malsburg, C. (1997)
• Discrete Cosinus Transform – Messer, K. (2006
• Local Binary Patterns – Ahonen, T., Hadid, A., and Pietikainen, M. (2004)
IN YOUR ZONE
Add value to your media apps
5
•Face tagging in social media
•Sharing – open new ways to share
IN YOUR ZONE
Add value to your media apps
6
•Android Device lock, specific applications face authorization
•Determining friends in video clips
IN YOUR ZONE
What we want to…
7
•Detect faces in a specific image
•Recognize a tagged contact in Android Media library
IN YOUR ZONE
Tools & technologies
8
IN YOUR ZONE
How it’s all mixed up?
9
IN YOUR ZONE
How all things work together?
10
IN YOUR ZONE
How can we make it work?
11
Mat imgGray = imread(originalImageName, CV_LOAD_IMAGE_GRAYSCALE);
CascadeClassifier face_cascade;
if(face_cascade.load(cascadeFilePath)){
face_cascade.detectMultiScale(loadedImageData, faces);
}
Ptr<FaceRecognizer> recognizer = createLBPHFaceRecognizer();
//training model
recognizer->train(images, labels);
//face prediction
recognizer->predict(scalledFace, predicted_label, predicted_confidence);
Face detection
Face detection
Face recognition
IN YOUR ZONE
Some facts about face recognition
12
0.00
5.00
10.00
15.00
20.00
25.00
30.00
35.00
40.00
45.00
50.00
14 faces 25 faces 40 faces
PERCENTAGE
RECOGNITION RATIO
Local Binary Paths Histogram (LBPH) FisherFaces EigenFaces
IN YOUR ZONE
Don’t forget about privacy
13
•Make use of privacy policies and/or disclaimers
Privacy matters to me!!!
That’s why I’m using
privacy visor…
IN YOUR ZONE
Q&A
14
IN YOUR ZONE
That’s it…
15
Vasile Chelban | Android Developer
thank you
http://opencv.org/platforms/android.html
http://developer.android.com/tools/sdk/ndk/index.html
http://developer.android.com/sdk/index.html

More Related Content

What's hot

Face recognition technology
Face recognition technologyFace recognition technology
Face recognition technologyranjit banshpal
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face IdentificationKalyan Acharjya
 
Face Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun SharmaFace Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun SharmaArjun Agnihotri
 
Attendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan SikdarAttendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan Sikdarraihansikdar
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition pptSantosh Kumar
 
Face Detection Using MATLAB (SUD)
Face Detection Using MATLAB (SUD)Face Detection Using MATLAB (SUD)
Face Detection Using MATLAB (SUD)Sudhanshu Saxena
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition SystemZara Tariq
 
Face Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance SystemFace Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance SystemKarmesh Maheshwari
 
Attendance Management System using Face Recognition
Attendance Management System using Face RecognitionAttendance Management System using Face Recognition
Attendance Management System using Face RecognitionNanditaDutta4
 
Fake Currency detction Using Image Processing
Fake Currency detction Using Image ProcessingFake Currency detction Using Image Processing
Fake Currency detction Using Image ProcessingSavitaHanchinal
 
Facial recognition system
Facial recognition systemFacial recognition system
Facial recognition systemDivya Sushma
 
Attendence management system using face detection
Attendence management system using face detectionAttendence management system using face detection
Attendence management system using face detectionSaurabh Sutone
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slideSanjoy Dutta
 
human face detection using matlab
human face detection using matlabhuman face detection using matlab
human face detection using matlabshamima sultana
 
Computer vision and face recognition using python
Computer vision and face recognition using pythonComputer vision and face recognition using python
Computer vision and face recognition using pythonRatnakar Pandey
 

What's hot (20)

Face recognition technology
Face recognition technologyFace recognition technology
Face recognition technology
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
 
face recognition
face recognitionface recognition
face recognition
 
Face recognisation system
Face recognisation systemFace recognisation system
Face recognisation system
 
Face Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun SharmaFace Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun Sharma
 
Attendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan SikdarAttendance system based on face recognition using python by Raihan Sikdar
Attendance system based on face recognition using python by Raihan Sikdar
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition ppt
 
Face Detection Using MATLAB (SUD)
Face Detection Using MATLAB (SUD)Face Detection Using MATLAB (SUD)
Face Detection Using MATLAB (SUD)
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 
Face Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance SystemFace Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance System
 
Face recognition
Face recognitionFace recognition
Face recognition
 
Face Detection
Face DetectionFace Detection
Face Detection
 
Face recognition
Face recognitionFace recognition
Face recognition
 
Attendance Management System using Face Recognition
Attendance Management System using Face RecognitionAttendance Management System using Face Recognition
Attendance Management System using Face Recognition
 
Fake Currency detction Using Image Processing
Fake Currency detction Using Image ProcessingFake Currency detction Using Image Processing
Fake Currency detction Using Image Processing
 
Facial recognition system
Facial recognition systemFacial recognition system
Facial recognition system
 
Attendence management system using face detection
Attendence management system using face detectionAttendence management system using face detection
Attendence management system using face detection
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slide
 
human face detection using matlab
human face detection using matlabhuman face detection using matlab
human face detection using matlab
 
Computer vision and face recognition using python
Computer vision and face recognition using pythonComputer vision and face recognition using python
Computer vision and face recognition using python
 

Viewers also liked

Semantic Web - Ontology 101
Semantic Web - Ontology 101Semantic Web - Ontology 101
Semantic Web - Ontology 101Luigi De Russis
 
Programming the Semantic Web
Programming the Semantic WebProgramming the Semantic Web
Programming the Semantic WebLuigi De Russis
 
Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)Luigi De Russis
 
Introduction to OpenCV 3.x (with Java)
Introduction to OpenCV 3.x (with Java)Introduction to OpenCV 3.x (with Java)
Introduction to OpenCV 3.x (with Java)Luigi De Russis
 
Face Recognition with OpenCV and scikit-learn
Face Recognition with OpenCV and scikit-learnFace Recognition with OpenCV and scikit-learn
Face Recognition with OpenCV and scikit-learnShiqiao Du
 
PyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel Hordes
PyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel HordesPyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel Hordes
PyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel Hordeskgrandis
 

Viewers also liked (8)

Semantic Web - Ontology 101
Semantic Web - Ontology 101Semantic Web - Ontology 101
Semantic Web - Ontology 101
 
Programming the Semantic Web
Programming the Semantic WebProgramming the Semantic Web
Programming the Semantic Web
 
Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)
 
Introduction to OpenCV 3.x (with Java)
Introduction to OpenCV 3.x (with Java)Introduction to OpenCV 3.x (with Java)
Introduction to OpenCV 3.x (with Java)
 
Jena Programming
Jena ProgrammingJena Programming
Jena Programming
 
Java and OWL
Java and OWLJava and OWL
Java and OWL
 
Face Recognition with OpenCV and scikit-learn
Face Recognition with OpenCV and scikit-learnFace Recognition with OpenCV and scikit-learn
Face Recognition with OpenCV and scikit-learn
 
PyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel Hordes
PyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel HordesPyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel Hordes
PyCon 2012: Militarizing Your Backyard: Computer Vision and the Squirrel Hordes
 

Similar to Face Recognition using OpenCV

Face Recognition Dissertation
Face Recognition Dissertation Face Recognition Dissertation
Face Recognition Dissertation Sandeep Garg
 
Dsp me map-report
Dsp me map-reportDsp me map-report
Dsp me map-reportevansjx
 
IRJET - Emotionalizer : Face Emotion Detection System
IRJET - Emotionalizer : Face Emotion Detection SystemIRJET - Emotionalizer : Face Emotion Detection System
IRJET - Emotionalizer : Face Emotion Detection SystemIRJET Journal
 
IRJET- Emotionalizer : Face Emotion Detection System
IRJET- Emotionalizer : Face Emotion Detection SystemIRJET- Emotionalizer : Face Emotion Detection System
IRJET- Emotionalizer : Face Emotion Detection SystemIRJET Journal
 
Understanding the professionals using a qualitative mobile app to explore the...
Understanding the professionals using a qualitative mobile app to explore the...Understanding the professionals using a qualitative mobile app to explore the...
Understanding the professionals using a qualitative mobile app to explore the...Merlien Institute
 
DETECTING FACIAL EXPRESSION IN IMAGES
DETECTING FACIAL EXPRESSION IN IMAGESDETECTING FACIAL EXPRESSION IN IMAGES
DETECTING FACIAL EXPRESSION IN IMAGESJournal For Research
 
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...IRJET Journal
 
Design Specification - Astro Exploration
Design Specification - Astro ExplorationDesign Specification - Astro Exploration
Design Specification - Astro ExplorationOliviaMeredith3
 
Comparative Studies for the Human Facial Expressions Recognition Techniques
Comparative Studies for the Human Facial Expressions Recognition TechniquesComparative Studies for the Human Facial Expressions Recognition Techniques
Comparative Studies for the Human Facial Expressions Recognition Techniquesijtsrd
 
Ictktn online business essentials 2012 may
Ictktn online business essentials   2012 mayIctktn online business essentials   2012 may
Ictktn online business essentials 2012 mayMargaret Gold
 
Profile Identification through Face Recognition
Profile Identification through Face RecognitionProfile Identification through Face Recognition
Profile Identification through Face Recognitionijtsrd
 
Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Herman Kurnadi
 

Similar to Face Recognition using OpenCV (20)

Face Recognition Dissertation
Face Recognition Dissertation Face Recognition Dissertation
Face Recognition Dissertation
 
Dsp me map-report
Dsp me map-reportDsp me map-report
Dsp me map-report
 
50120140504002
5012014050400250120140504002
50120140504002
 
IRJET - Emotionalizer : Face Emotion Detection System
IRJET - Emotionalizer : Face Emotion Detection SystemIRJET - Emotionalizer : Face Emotion Detection System
IRJET - Emotionalizer : Face Emotion Detection System
 
IRJET- Emotionalizer : Face Emotion Detection System
IRJET- Emotionalizer : Face Emotion Detection SystemIRJET- Emotionalizer : Face Emotion Detection System
IRJET- Emotionalizer : Face Emotion Detection System
 
Understanding the professionals using a qualitative mobile app to explore the...
Understanding the professionals using a qualitative mobile app to explore the...Understanding the professionals using a qualitative mobile app to explore the...
Understanding the professionals using a qualitative mobile app to explore the...
 
DETECTING FACIAL EXPRESSION IN IMAGES
DETECTING FACIAL EXPRESSION IN IMAGESDETECTING FACIAL EXPRESSION IN IMAGES
DETECTING FACIAL EXPRESSION IN IMAGES
 
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
 
Resume_IOS_3.9 (1).DOC
Resume_IOS_3.9 (1).DOCResume_IOS_3.9 (1).DOC
Resume_IOS_3.9 (1).DOC
 
CV_Alex
CV_AlexCV_Alex
CV_Alex
 
Resume ikram
Resume ikramResume ikram
Resume ikram
 
Design Specification - Astro Exploration
Design Specification - Astro ExplorationDesign Specification - Astro Exploration
Design Specification - Astro Exploration
 
Comparative Studies for the Human Facial Expressions Recognition Techniques
Comparative Studies for the Human Facial Expressions Recognition TechniquesComparative Studies for the Human Facial Expressions Recognition Techniques
Comparative Studies for the Human Facial Expressions Recognition Techniques
 
Ictktn online business essentials 2012 may
Ictktn online business essentials   2012 mayIctktn online business essentials   2012 may
Ictktn online business essentials 2012 may
 
Resume_Manjot
Resume_ManjotResume_Manjot
Resume_Manjot
 
Prawin Dayalan.D
Prawin Dayalan.DPrawin Dayalan.D
Prawin Dayalan.D
 
Profile Identification through Face Recognition
Profile Identification through Face RecognitionProfile Identification through Face Recognition
Profile Identification through Face Recognition
 
MOBILE APP.pptx
MOBILE APP.pptxMOBILE APP.pptx
MOBILE APP.pptx
 
navya Android resume
navya Android resumenavya Android resume
navya Android resume
 
Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)
 

Recently uploaded

How to become a GDSC Lead GDSC MI AOE.pptx
How to become a GDSC Lead GDSC MI AOE.pptxHow to become a GDSC Lead GDSC MI AOE.pptx
How to become a GDSC Lead GDSC MI AOE.pptxKaustubhBhavsar6
 
From the origin to the future of Open Source model and business
From the origin to the future of  Open Source model and businessFrom the origin to the future of  Open Source model and business
From the origin to the future of Open Source model and businessFrancesco Corti
 
2024.03.12 Cost drivers of cultivated meat production.pdf
2024.03.12 Cost drivers of cultivated meat production.pdf2024.03.12 Cost drivers of cultivated meat production.pdf
2024.03.12 Cost drivers of cultivated meat production.pdfThe Good Food Institute
 
Flow Control | Block Size | ST Min | First Frame
Flow Control | Block Size | ST Min | First FrameFlow Control | Block Size | ST Min | First Frame
Flow Control | Block Size | ST Min | First FrameKapil Thakar
 
Emil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptx
Emil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptxEmil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptx
Emil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptxNeo4j
 
Extra-120324-Visite-Entreprise-icare.pdf
Extra-120324-Visite-Entreprise-icare.pdfExtra-120324-Visite-Entreprise-icare.pdf
Extra-120324-Visite-Entreprise-icare.pdfInfopole1
 
CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024Brian Pichman
 
Novo Nordisk's journey in developing an open-source application on Neo4j
Novo Nordisk's journey in developing an open-source application on Neo4jNovo Nordisk's journey in developing an open-source application on Neo4j
Novo Nordisk's journey in developing an open-source application on Neo4jNeo4j
 
Planetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile BrochurePlanetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile BrochurePlanetek Italia Srl
 
Introduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its applicationIntroduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its applicationKnoldus Inc.
 
Webinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - Tech
Webinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - TechWebinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - Tech
Webinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - TechProduct School
 
Automation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projectsAutomation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projectsDianaGray10
 
Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...DianaGray10
 
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveKeep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveIES VE
 
IT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced ComputingIT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced ComputingMAGNIntelligence
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
 
AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024Brian Pichman
 
Stobox 4: Revolutionizing Investment in Real-World Assets Through Tokenization
Stobox 4: Revolutionizing Investment in Real-World Assets Through TokenizationStobox 4: Revolutionizing Investment in Real-World Assets Through Tokenization
Stobox 4: Revolutionizing Investment in Real-World Assets Through TokenizationStobox
 
EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarThousandEyes
 
How to release an Open Source Dataweave Library
How to release an Open Source Dataweave LibraryHow to release an Open Source Dataweave Library
How to release an Open Source Dataweave Libraryshyamraj55
 

Recently uploaded (20)

How to become a GDSC Lead GDSC MI AOE.pptx
How to become a GDSC Lead GDSC MI AOE.pptxHow to become a GDSC Lead GDSC MI AOE.pptx
How to become a GDSC Lead GDSC MI AOE.pptx
 
From the origin to the future of Open Source model and business
From the origin to the future of  Open Source model and businessFrom the origin to the future of  Open Source model and business
From the origin to the future of Open Source model and business
 
2024.03.12 Cost drivers of cultivated meat production.pdf
2024.03.12 Cost drivers of cultivated meat production.pdf2024.03.12 Cost drivers of cultivated meat production.pdf
2024.03.12 Cost drivers of cultivated meat production.pdf
 
Flow Control | Block Size | ST Min | First Frame
Flow Control | Block Size | ST Min | First FrameFlow Control | Block Size | ST Min | First Frame
Flow Control | Block Size | ST Min | First Frame
 
Emil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptx
Emil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptxEmil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptx
Emil Eifrem at GraphSummit Copenhagen 2024 - The Art of the Possible.pptx
 
Extra-120324-Visite-Entreprise-icare.pdf
Extra-120324-Visite-Entreprise-icare.pdfExtra-120324-Visite-Entreprise-icare.pdf
Extra-120324-Visite-Entreprise-icare.pdf
 
CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024CyberSecurity - Computers In Libraries 2024
CyberSecurity - Computers In Libraries 2024
 
Novo Nordisk's journey in developing an open-source application on Neo4j
Novo Nordisk's journey in developing an open-source application on Neo4jNovo Nordisk's journey in developing an open-source application on Neo4j
Novo Nordisk's journey in developing an open-source application on Neo4j
 
Planetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile BrochurePlanetek Italia Srl - Corporate Profile Brochure
Planetek Italia Srl - Corporate Profile Brochure
 
Introduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its applicationIntroduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its application
 
Webinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - Tech
Webinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - TechWebinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - Tech
Webinar: The Art of Prioritizing Your Product Roadmap by AWS Sr PM - Tech
 
Automation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projectsAutomation Ops Series: Session 2 - Governance for UiPath projects
Automation Ops Series: Session 2 - Governance for UiPath projects
 
Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...Explore the UiPath Community and ways you can benefit on your journey to auto...
Explore the UiPath Community and ways you can benefit on your journey to auto...
 
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES LiveKeep Your Finger on the Pulse of Your Building's Performance with IES Live
Keep Your Finger on the Pulse of Your Building's Performance with IES Live
 
IT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced ComputingIT Service Management (ITSM) Best Practices for Advanced Computing
IT Service Management (ITSM) Best Practices for Advanced Computing
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024
 
Stobox 4: Revolutionizing Investment in Real-World Assets Through Tokenization
Stobox 4: Revolutionizing Investment in Real-World Assets Through TokenizationStobox 4: Revolutionizing Investment in Real-World Assets Through Tokenization
Stobox 4: Revolutionizing Investment in Real-World Assets Through Tokenization
 
EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? Webinar
 
How to release an Open Source Dataweave Library
How to release an Open Source Dataweave LibraryHow to release an Open Source Dataweave Library
How to release an Open Source Dataweave Library
 

Face Recognition using OpenCV

  • 1. Face detection in android media apps Adding more value to applications Hackathon, Mobile Day Endava 24.06.2013
  • 2. • Face detection/recognition – what’s all about? • Pioneers in face recognition • Add value to your media apps • What we want to… • Tools & technologies • How it’s all mixed up? • How all things work together? • How can we make it work? • Some facts • Don’t forget about privacy • Q&A Highlights 2
  • 3. IN YOUR ZONE Face detection/recognition – what’s all about? 3 •Face detection • Definition • Use cases •Face recognition •Definition •Use cases
  • 4. IN YOUR ZONE Pioneers in face recognition 4 •Marker points (position of eyes, ears, nose) •Kanade, T. (November 1973) - Euclidean distance between feature vectors of a probe and reference image •Eigenfaces – Turk, M. & Pentland, A. – a holistic approach to face recognition •Fisherfaces – Belhumeur, P. N., Hespanha, J., and Kriegman, D. (1997) - Eigenfaces vs. Fisherfaces •Local feature extraction: • Gabor Wavelets – Wiskott, L., Fellous, J., Krüger, N., Malsburg, C. (1997) • Discrete Cosinus Transform – Messer, K. (2006 • Local Binary Patterns – Ahonen, T., Hadid, A., and Pietikainen, M. (2004)
  • 5. IN YOUR ZONE Add value to your media apps 5 •Face tagging in social media •Sharing – open new ways to share
  • 6. IN YOUR ZONE Add value to your media apps 6 •Android Device lock, specific applications face authorization •Determining friends in video clips
  • 7. IN YOUR ZONE What we want to… 7 •Detect faces in a specific image •Recognize a tagged contact in Android Media library
  • 8. IN YOUR ZONE Tools & technologies 8
  • 9. IN YOUR ZONE How it’s all mixed up? 9
  • 10. IN YOUR ZONE How all things work together? 10
  • 11. IN YOUR ZONE How can we make it work? 11 Mat imgGray = imread(originalImageName, CV_LOAD_IMAGE_GRAYSCALE); CascadeClassifier face_cascade; if(face_cascade.load(cascadeFilePath)){ face_cascade.detectMultiScale(loadedImageData, faces); } Ptr<FaceRecognizer> recognizer = createLBPHFaceRecognizer(); //training model recognizer->train(images, labels); //face prediction recognizer->predict(scalledFace, predicted_label, predicted_confidence); Face detection Face detection Face recognition
  • 12. IN YOUR ZONE Some facts about face recognition 12 0.00 5.00 10.00 15.00 20.00 25.00 30.00 35.00 40.00 45.00 50.00 14 faces 25 faces 40 faces PERCENTAGE RECOGNITION RATIO Local Binary Paths Histogram (LBPH) FisherFaces EigenFaces
  • 13. IN YOUR ZONE Don’t forget about privacy 13 •Make use of privacy policies and/or disclaimers Privacy matters to me!!! That’s why I’m using privacy visor…
  • 15. IN YOUR ZONE That’s it… 15 Vasile Chelban | Android Developer thank you http://opencv.org/platforms/android.html http://developer.android.com/tools/sdk/ndk/index.html http://developer.android.com/sdk/index.html

Editor's Notes

  1. Face detection is a computer technology that determines the locations and sizes of human faces in arbitrary (digital) images. It detects facial features and ignores anything else, such as buildings, trees and bodies. Early face-detection algorithms focused on the detection of frontal human faces, whereas newer algorithms attempt to solve the more general and difficult problem of multi-view face detection. That is, the detection of faces that are either rotated along the axis from the face to the observer (in-plane rotation), or rotated along the vertical or left-right axis (out-of-plane rotation), or both. The newer algorithms take into account variations in the image or video by factors such as face appearance, lighting, and pose.Face detection is used in:biometrics, often as a part of (or together with) a facial recognition system. video surveillance, human computer interface and image database management. Some recent digital cameras use face detection for autofocus. researches in the area of energy conservation.Face recognition is an easy task for humans. Experiments in [Tu06] have shown, that even one to three day old babies are able to distinguish between known faces. So how hard could it be for a computer? It was shown by David Hubel and Torsten Wiesel, that our brain has specialized nerve cells responding to specific local features of a scene, such as lines, edges, angles or movement.Since we don’t see the world as scattered pieces, our visual cortex must somehow combine the different sources of information into useful patternsAutomatic face recognition is all about extracting those meaningful features from an image, putting them into a useful representation and performing some kind of classification on them.Skin texture analysisFace recognition uses:The London Borough of Newham, in the UK, previously trialed a facial recognition system built into their borough-wide CCTV system.The German Federal Police use a facial recognition system to allow voluntary subscribers to pass fully automated border controls at Frankfurt Rhein-Main international airport.Recognition systems are also used by casinos to catch card counters and other blacklisted individuals.The Australian Customs Service has an automated border processing system called SmartGate that uses facial recognition. The system compares the face of the individual with the image in the e-passport microchip, certifying that the holder of the passport is the rightful owner.U.S. Department of State operates one of the largest face recognition systems in the world with over 75 million photographs that is actively used for visa processing.Because of certain limitations of fingerprint recognition systems, nowadays facial recognition systems are finding market penetration as Attendance monitoring alternatives.
  2. Face recognition based on the geometric features of a face is probably the most intuitive approach to face recognition. Kanade T. - Marker pointswere used to build a feature vector (distance between the points, angle between them, ...). Such a method is robust against changes in illumination by its nature, but has a huge drawback: the accurate registration of the marker points is complicated, even with state of the art algorithms.Eigenfaces - Turk, M. &amp; Pentland, A. – A facial image is a point from a high-dimensional image space and a lower-dimensional representation is found, where classification becomes easy. Principal Component Analysis – it doesn’t take any class labels into account.  If the variance is generated from external sources, let it be light, the axes with maximum variance do not necessarily contain any discriminative information at all, hence a classification becomes impossible.Fisherfaces - Belhumeur, P. N., Hespanha, J., and Kriegman, D. – a class-specific projection with a Linear Discriminant Analysis was applied to face recognition.The basic idea was to minimize the variance within a class, while maximizing the variance between the classes at the same time.To avoid the high-dimensionality of the input data only local regions of an image are described, the extracted features are (hopefully) more robust against partial occlusion, illumation and small sample size.Algorithms used for a local feature extraction:Gabor Wavelets– Wiskott, L., Fellous, J., Krüger, N., Malsburg, C. (1997) – Face Recognition By Elastic Bunch Graph Matching.Discrete Cosinus Transform – Messer, K. (2006) – Performance Characterisation of Face Recognition Algorithms and Their Sensitivity to Severe Illumination ChangesLocal Binary Patterns – Ahonen, T., Hadid, A., and Pietikainen, M. (2004) – Face Recognition with Local Binary PatternsIt’s still an open research question what’s the best way to preserve spatial information when applying a local feature extraction, because spatial information is potentially useful information.
  3. A professor at Tokyo’s National Institute of Informatics recently created a stocky pair of glasses that will conceal the face of an individual from facial recognition software. Using a small array of near-infrared LED lights that are invisible to the human eye, Associate Professor Isao Echizen’s goggles fool detection software by creating virtual noise in a surveillance camera’s imaging sensor, disrupting readings on normal facial features.