An Introduction to Digital Image Processing and Applications in AI - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

An Introduction to Digital Image Processing and Applications in AI

Description:

Gesture Recognition (Sign language recognition, Human ... Finding the biggest blob. 3D representation of the counting. Window size 21x21. Window size 60x60 ... – PowerPoint PPT presentation

Number of Views:1245
Avg rating:3.0/5.0
Slides: 36
Provided by: farhadda
Category:

less

Transcript and Presenter's Notes

Title: An Introduction to Digital Image Processing and Applications in AI


1
An Introduction to Digital Image Processing and
Applications in AI
Part 2 Hand and Face Tracking
  • Farhad Dadgostar

2
Applications of Hand, Face and body tracking
  • Gesture Recognition (Sign language recognition,
    Human-Computer Interaction)
  • Virtual Reality
  • Security and Surveillance
  • Movement Analysis

3
Approaches to Hand and Face Tracking and Gesture
Recognition
  • Special hardware (e.g. CyberGlove)
  • Marker tracking
  • Vision-based approach

4
Main approaches to vision-based face and hand
tracking
  • Pattern recognition (Neural networks, Statistical
    analysis, etc.)
  • Have been successful in face detection, but not
    in hand detection because of the different
    representations of the hand in 2D images
  • Skin color segmentation (Segmentation using
    different color spaces)
  • More successful in hand tracking and gesture
    recognition

5
Pixel-based approach to skin segmentation
  • Advantages
  • Very fast (a few computations per pixel)
  • Good candidate for real-time tracking
  • Disadvantages
  • Background noise may cause this technique to be
    impractical
  • Can not distinguish other objects that have
    similar features to skin color

6
Methods of implementation
  • Using a set of training data for indicating a
    region in the color space, and using that region
    for detection.
  • RGB, RG
  • ICrCb, CrCb
  • HSV, HSI, HS, H (Hue, Saturation and Intensity)
  • IUV
  • Requires less computation
  • Recognizing an object (e.g. Hand or Face) and
    using the color of the object for detecting skin
    in the image
  • e.g. Face detection using Viola-Jones method
  • Requires more computation

7
Advantages of pixel based skin detection based on
Hue Factor
  • 1) It is one dimensional, therefore requires just
    2 thresholds for specifying the skin color region
  • 2) It is robust against intensity changes
  • 3) Different skin colors are located in the same
    range of the Hue factor

8
Disadvantages of pixel based skin detection based
on Hue Factor
  • Same as other color-based techniques, background
    noise may cause a high percentage of false
    detection

9
The idea
  • A Global Skin Detector can be implemented using
    hue thresholding
  • The hue thresholds of each persons skin color,
    is located in between the thresholds of the
    global skin detector
  • Detecting in-motion skin pixels in a video
    sequence can be helpful to estimate the local
    skin thresholds

10
The algorithm Step 1 Selecting Candidate Skin
Pixels
  • Extracting the candidate pixels using Global Skin
    Detector (output has a high percentage of correct
    detection and may have a high percentage on false
    detection)

11
The algorithm Step 2 Detecting In-motion Skin
Pixels
  • Extracting in-motion pixels that potentially
    belong to the skin using frame subtraction

12
The algorithm Step 3 Retraining
  • Retraining the local skin detector (that
    initially has the same parameters of global skin
    detector), based on the data extracted in the
    previous step.
  • Hn1 (1-A)Hn AHM
  • Hn is the training histogram of the local skin
    detector
  • HM is the histogram of the in-motion pixels
    detected by global skin detector
  • A is merging factor (a small value around 0.05)

13
The algorithm Step 4 Filtering skin pixels
  • TL is Lower Hue threshold
  • TU is Upper Hue threshold

14
Adaptive skin detector (overview)
15
Behavior of the algorithm
  • The local skin detector adapts itself to the
    color of the skin in the image sequence, and
    improves with time

Frame 1
Frame 1400
Frame 2700
16
Changes in correct and false detection
Correct detection False detection
17
(No Transcript)
18
Simple boundary detection
19
Presence of noise
20
Finding the biggest blob
21
3D representation of the counting
22
Number of required computations for the simple
method
  • Image Size 640x480
  • Window size 51x51
  • Frame rate 25fps

640x480x51x51x25
20,000,000,000 !
23
The Mean-Shift Algorithm
  • Centre of Gravity (General)
  • Centre of Gravity (2D)
  • Zeroth Moment

24
The Mean-Shift Algorithm (Summary)
  • 1) Consider a search window on an arbitrary point
    of the space
  • 2) Assume that the value of the function for each
    point of the search window represents the mass of
    that point
  • 3) Compute the centre of gravity of the search
    window
  • 4) Shift the search window such that its centre
    to be matched to the position of the centre of
    gravity
  • 5) Repeat from step 2 until convergence

25
Tracking the face
26
Choosing Kernels size
27
The CAM-Shift Algorithm
  • Choosing the Kernels size

h / w 1.2 w sqrt(k M00)
28
Boundary detection problem in CAM-Shift Algorithm
29
Boundary detection
  • Enlarge
  • Shrink
  • No Change

Boundary information
30
Kernel resizing Edge-density linear
  • ni calculate the density of the boundary of the
    kernel
  • if (ni gt UpperThreshold) Then
  • enlarge the kernel by 1
  • elseif (ni lt LowerThreshold) Then
  • shrink the kernel by 1
  • else
  • // no resize
  • endif

31
Kernel resizing Edge-density Fuzzy
32
Convergence speed of these three approaches
33
Boundary detection in noisy environment
34
Face Tracking
35
Question?
For more information Email F.Dadgostar_at_massey.
ac.nz Website www.massey.ac.nz/fdadgost
Write a Comment
User Comments (0)
About PowerShow.com