SlideShare a Scribd company logo
1 of 15
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

Facial recognition technology by vaibhav
Facial recognition technology by vaibhavFacial recognition technology by vaibhav
Facial recognition technology by vaibhavVaibhav P
 
Face recognition tech1
Face recognition tech1Face recognition tech1
Face recognition tech1Ankit Gupta
 
Face recognition application
Face recognition applicationFace recognition application
Face recognition applicationawadhesh kumar
 
Face recognition
Face recognition Face recognition
Face recognition Chandan A V
 
Face recognition technology
Face recognition technologyFace recognition technology
Face recognition technologyPushkar Dutt
 
Face recognization 1
Face recognization 1Face recognization 1
Face recognization 1leenak770
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slideSanjoy Dutta
 
Face Recognition Technology
Face Recognition TechnologyFace Recognition Technology
Face Recognition TechnologyShravan Halankar
 
Face Detection techniques
Face Detection techniquesFace Detection techniques
Face Detection techniquesAbhineet Bhamra
 
FACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGYFACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGYJASHU JASWANTH
 
Face recognigion system ppt
Face recognigion system pptFace recognigion system ppt
Face recognigion system pptRavi Kumar
 
Face Recognition System for Door Unlocking
Face Recognition System for Door UnlockingFace Recognition System for Door Unlocking
Face Recognition System for Door UnlockingHassan Tariq
 
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
 
Face detection ppt
Face detection pptFace detection ppt
Face detection pptPooja R
 

What's hot (20)

face recognition
face recognitionface recognition
face recognition
 
Facial recognition technology by vaibhav
Facial recognition technology by vaibhavFacial recognition technology by vaibhav
Facial recognition technology by vaibhav
 
Face Detection
Face DetectionFace Detection
Face Detection
 
Face recognition tech1
Face recognition tech1Face recognition tech1
Face recognition tech1
 
Face recognition application
Face recognition applicationFace recognition application
Face recognition application
 
Face recognition
Face recognition Face recognition
Face recognition
 
Face recognition technology
Face recognition technologyFace recognition technology
Face recognition technology
 
Face recognization 1
Face recognization 1Face recognization 1
Face recognization 1
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slide
 
Face recognition
Face recognitionFace recognition
Face recognition
 
Face Recognition Technology
Face Recognition TechnologyFace Recognition Technology
Face Recognition Technology
 
Face Detection techniques
Face Detection techniquesFace Detection techniques
Face Detection techniques
 
FACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGYFACE RECOGNITION TECHNOLOGY
FACE RECOGNITION TECHNOLOGY
 
Face recognigion system ppt
Face recognigion system pptFace recognigion system ppt
Face recognigion system ppt
 
Computer vision
Computer visionComputer vision
Computer vision
 
Face Recognition System for Door Unlocking
Face Recognition System for Door UnlockingFace Recognition System for Door Unlocking
Face Recognition System for Door Unlocking
 
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
 
Face detection ppt
Face detection pptFace detection ppt
Face detection ppt
 
face detection
face detectionface detection
face detection
 
Face recognization technology
Face recognization technologyFace recognization technology
Face recognization technology
 

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

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

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.