Simple Face Detection system Ali Arab Sharif university of tech. Fall 2012.

Slides:



Advertisements
Similar presentations
ARTIFICIAL PASSENGER.
Advertisements

Advanced Image Processing Student Seminar: Lipreading Method using color extraction method and eigenspace technique ( Yasuyuki Nakata and Moritoshi Ando.
Automatic Color Gamut Calibration Cristobal Alvarez-Russell Michael Novitzky Phillip Marks.
Wen-Hung Liao Department of Computer Science National Chengchi University November 27, 2008 Estimation of Skin Color Range Using Achromatic Features.
HYBRID-BOOST LEARNING FOR MULTI-POSE FACE DETECTION AND FACIAL EXPRESSION RECOGNITION Hsiuao-Ying ChenChung-Lin Huang Chih-Ming Fu Pattern Recognition,
DIGITAL IMAGE PROCESSING
Facial feature localization Presented by: Harvest Jang Spring 2002.
AlgirdasBeinaravičius Gediminas Mazrimas Salman Mosslem.
Color Image Processing
Autonomous Vehicle Pursuit of Target Through Optical Recognition Vision & Image Science Laboratory, Department of Electrical Engineering,Technion Daniel.
Hue-Grayscale Collaborating Edge Detection & Edge Color Distribution Space Jiqiang Song March 6 th, 2002.
Face Detection: a Survey Speaker: Mine-Quan Jing National Chiao Tung University.
Color: Readings: Ch 6: color spaces color histograms color segmentation.
Computer Vision I Instructor: Prof. Ko Nishino. Today How do we recognize objects in images?
Facial Features Extraction Amit Pillay Ravi Mattani Amit Pillay Ravi Mattani.
Smart Traveller with Visual Translator. What is Smart Traveller? Mobile Device which is convenience for a traveller to carry Mobile Device which is convenience.
Triangle-based approach to the detection of human face March 2001 PATTERN RECOGNITION Speaker Jing. AIP Lab.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Smart Traveller with Visual Translator for OCR and Face Recognition LYU0203 FYP.
Real-Time Face Detection and Tracking Using Multiple Cameras RIT Computer Engineering Senior Design Project John RuppertJustin HnatowJared Holsopple This.
Matthias Wimmer, Bernd Radig, Michael Beetz Chair for Image Understanding Computer Science Technische Universität München Adaptive.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
Bitmapped Images. Bitmap Images Today’s Objectives Identify characteristics of bitmap images Resolution, bit depth, color mode, pixels Determine the most.
Knowledge Systems Lab JN 8/24/2015 A Method for Temporal Hand Gesture Recognition Joshua R. New Knowledge Systems Laboratory Jacksonville State University.
SCCS 4761 Introduction What is Image Processing? Fundamental of Image Processing.
© 1999 Rochester Institute of Technology Color. Imaging Science Workshop for Teachers ©Chester F. Carlson Center for Imaging Science at RIT Color Images.
by Utku Tatlıdede Kemal Kaplan
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color in image and video Mr.Nael Aburas. outline  Color Science  Color Models in Images  Color Models in Video.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 7 The Game Loop and Animation Starting Out with Games & Graphics.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Joon Hyung Shim, Jinkyu Yang, and Inseong Kim
Algirdas Beinaravičius Gediminas Mazrimas Salman Mosslem.
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
` Tracking the Eyes using a Webcam Presented by: Kwesi Ackon Kwesi Ackon Supervisor: Mr. J. Connan.
Autonomous Robots Vision © Manfred Huber 2014.
Face Detection Using Skin Color and Gabor Wavelet Representation Information and Communication Theory Group Faculty of Information Technology and System.
Video Camera Security and Surveillance System ICAMES 2008 Team Members : Semih Altınsoy Denis Kürov Team Advisor: Assist. Prof. M. Elif Karslıgil May,
A Tutorial on using SIFT Presented by Jimmy Huff (Slightly modified by Josiah Yoder for Winter )
2016/1/141 A novel method for detecting lips, eyes and faces in real time Real-Time Imaging (2003) 277–287 Cheng-Chin Chiang*,Wen-Kai Tai,Mau-Tsuen Yang,
Final Year Project Vision based biometric authentication system By Padraic ó hIarnain.
A Recognition Method of Restricted Hand Shapes in Still Image and Moving Image Hand Shapes in Still Image and Moving Image as a Man-Machine Interface Speaker.
Application of Facial Recognition in Biometric Security Kyle Ferris.
Wonjun Kim and Changick Kim, Member, IEEE
Face Detection Final Presentation Mark Lee Nic Phillips Paul Sowden Andy Tait 9 th May 2006.
Image Processing Intro2CS – week 6 1. Image Processing Many devices now have cameras on them Lots of image data recorded for computers to process. But.
Shadow Detection in Remotely Sensed Images Based on Self-Adaptive Feature Selection Jiahang Liu, Tao Fang, and Deren Li IEEE TRANSACTIONS ON GEOSCIENCE.
Face Detection – EE368 Group 10 May 30, Face Detection EE 368 Group 10 Waqar Mohsin Noman Ahmed Chung-Tse Mar.
LOGO FACE DETECTION APPLICATION Member: Vu Hoang Dung Vu Ha Linh Le Minh Tung Nguyen Duy Tan Chu Duy Linh Uong Thanh Ngoc CAPSTONE PROJECT Supervisor:
By: Suvigya Tripathi (09BEC094) Ankit V. Gupta (09BEC106) Guided By: Prof. Bhupendra Fataniya Dept. of Electronics and Communication Engineering, Nirma.
Bayesian Decision Theory Case Studies CS479/679 Pattern Recognition Dr. George Bebis.
Content Based Coding of Face Images
OCR Reading.
Color Image Processing
Color Image Processing
Color Image Processing
Color: Readings: Ch 6: color spaces color histograms
Histogram—Representation of Color Feature in Image Processing Yang, Li
Since 2008 Google street view has blurred faces for privacy.
Computer Vision Lecture 5: Binary Image Processing
What Is Spectral Imaging? An Introduction
Color: Readings: Ch 6: color spaces color histograms
Color Image Processing
Color Image Processing
Digital Image Processing
COMPUTER VISION Introduction
Speaker: YI-JIA HUANG Date: 2011/12/08 Authors: C. N
Application of Facial Recognition in Biometric Security
Image segmentation Grey scale image Binary image
Presentation transcript:

Simple Face Detection system Ali Arab Sharif university of tech. Fall 2012

2 outline What is face detection? What is face detection? Applications Applications Basic concepts Basic concepts Image Image RGB color space RGB color space Normalized RGB Normalized RGB HSL color space HSL color space Algorithm description Algorithm description

3 What is face detection Given an image, tell whether there is any human face, if there is, where is it (or where they are). Given an image, tell whether there is any human face, if there is, where is it (or where they are).

Applications automatic face recognition systems automatic face recognition systems Human Computer Interaction systems Human Computer Interaction systems surveillance systems surveillance systems Face tracking systems Face tracking systems Autofocus cameras Autofocus cameras Even energy conservation!!! Even energy conservation!!! The system can recognize the face direction of the TV user. When the user is not looking at the screen, the TV brightness is lowered. When the face returns to the screen, the brightness is increased. The system can recognize the face direction of the TV user. When the user is not looking at the screen, the TV brightness is lowered. When the face returns to the screen, the brightness is increased. 4

What is an image? We can think of an image as a Matrix. We can think of an image as a Matrix. Simplest form : Binary images Simplest form : Binary images 5

What is an image? (cont.) Grayscale images : Grayscale images : 6

What is an image? (cont.) 7 Color images : Color images : Known as RGB color space

rg space 8 Normalized RGB : Normalized RGB : a color is represented by the proportion of red, green, and blue in the color, rather than by the intensity of each. a color is represented by the proportion of red, green, and blue in the color, rather than by the intensity of each. Removes ntensity information. Removes the i ntensity information. r = R/(R+G+B) g = G/(R+G+B)

HSL color space 9 Motivation: the relationship between the constituent amounts of red, green, and blue light and the resulting color is unintuitive. Motivation: the relationship between the constituent amounts of red, green, and blue light and the resulting color is unintuitive.

HSL color space 10 Each pixel is represented using Hue, saturation and lightness. Each pixel is represented using Hue, saturation and lightness. You need to know how to convert from RGB to HSL! You need to know how to convert from RGB to HSL!

Algorithm description We use a simple Knowledge-based algorithm to accomplish the task: We use a simple Knowledge-based algorithm to accomplish the task: This approach represent a face using a set of rules, Use these rules to guide the search process. This approach represent a face using a set of rules, Use these rules to guide the search process. 11

Algorithm description First step: skin pixel classification First step: skin pixel classification Convert RGB to HSL. Convert RGB to HSL. In HSL color space: In HSL color space: The goal is to remove the maximum number of non-face pixels from the images in order to focus to the remaining skin-colored regions. The goal is to remove the maximum number of non-face pixels from the images in order to focus to the remaining skin-colored regions. 12 If H =239, Can be skin, otherwise reject it.

Algorithm description (cont.) First step: skin pixel classification First step: skin pixel classification Convert RGB to rg space. Convert RGB to rg space. In rg chromaticity space: In rg chromaticity space: 13 Let :

Algorithm description (cont.) Result of skin classification: Result of skin classification: 14

Algorithm description (cont.) Consider each connected region as an object. Consider each connected region as an object. 15

Algorithm description (cont.) second step: connected components labelling. second step: connected components labelling. 16 Binary image before labelling:

Algorithm description (cont.) second step: connected components labelling. second step: connected components labelling. 17 Binary image after labelling:

Algorithm description (cont.) second step: connected components labelling. second step: connected components labelling. 18 You can find an efficient algorithm for labelling here :

Algorithm description (cont.) Third step: connected component analysis Third step: connected component analysis Analysing the labelled image. Analysing the labelled image. Giving us features of each object like: Giving us features of each object like: Area Area Minimum bounding box Minimum bounding box 19

Algorithm description (cont.) Forth step: Forth step: objects smaller than the minimum face area are removed (smaller than 450 ) objects smaller than the minimum face area are removed (smaller than 450 ) Objects bigger than the maximum face area are removed (larger than 4500) Objects bigger than the maximum face area are removed (larger than 4500) 20

Algorithm description (cont.) 21 The resulted image until now: The resulted image until now:

Algorithm description (cont.) Fifth step : percentage of skin in each bounding box Fifth step : percentage of skin in each bounding box if precentage > 0.9 if precentage > 0.9or if percentage <0.4 if percentage < region is rejected.

Algorithm description (cont.) sixth step: eliminating based on golden ratio sixth step: eliminating based on golden ratio (height / width) ratio ≈ golden ratio (1.618) (height / width) ratio ≈ golden ratio (1.618) 23 height width

Algorithm description (cont.) And the last step: counting the holes. (optional) And the last step: counting the holes. (optional) For remaining objects we compute the number of holes. For remaining objects we compute the number of holes. Eyes, mouth and nose usually are darker, so they appear as holes in binary image. Eyes, mouth and nose usually are darker, so they appear as holes in binary image. If an object has no hole, we simply reject it! If an object has no hole, we simply reject it! 24

Algorithm description (cont.) And the last step: counting the holes. (optional) And the last step: counting the holes. (optional) How?? How?? In each bounding box invert the pixels and count the objects in new image using the labelling algorithm discussed before. In each bounding box invert the pixels and count the objects in new image using the labelling algorithm discussed before. 25

Algorithm description (cont.) Remaining objects are facial regions. Remaining objects are facial regions. 26

Algorithm description (cont.) 27

Final Result We can draw a bounding box for each face or just report the position. We can draw a bounding box for each face or just report the position. 28

Remarks You’re not allowed to use any image processing library like cx_image or openCV. You’re not allowed to use any image processing library like cx_image or openCV. Collaboration encouraged, but the work must be done individually. Collaboration encouraged, but the work must be done individually. 29

Any Question? mail to: 30