object recognition 2: appearance-based, trackingweb.yonsei.ac.kr/hgjung/lectures/aue859/14....

61
E-mail: [email protected] http://web.yonsei.ac.kr/hgjung Object Recognition 2: Appearance-based, Tracking

Upload: others

Post on 21-Jan-2021

14 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Object Recognition 2:Appearance-based, Tracking

Page 2: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Contour-based Object Recognition

1. SVM (Support Vector Machine)

2. Classifier-based Object Recognition

3. Viola Jones Method: AdaBoost-based Face Detection

4. Kalman Filter-based Tracking, A Posteriori Probability

Page 3: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Support Vector Machine

Page 4: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Optimal Separating Hyperplanes [6]

Page 5: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Optimal Separating Hyperplanes [6]

Distance between a plane and a point

Page 6: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Optimal Separating Hyperplanes [6]

Page 7: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Optimal Separating Hyperplanes [6]

Page 8: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Consider the two-dimensional optimization problem:

We can visualize contours of f given by

g(x,y) = c

f(x,y)=d

Find x and y to maximize f(x,y) subject to a constraint (shown in red) g(x,y) = c.

Lagrange Multipliers [9]

Page 9: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

When f(x,y) becomes maximum on the path of g(x,y)=c, the contour line for g=c meets contour lines of f tangentially. Since the gradient of a function is perpendicular to the contour lines, this is the same as saying that the gradients of f and g are parallel.

Contour map. The red line shows the constraint g(x,y) = c. The blue lines are contours of f(x,y). The point where the red line tangentially touches a blue contour is our solution.

Lagrange Multipliers [9]

Page 10: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

To incorporate these conditions into one equation, we introduce an auxiliary

function

and solve

Lagrange Multipliers [9]

Page 11: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Kuhn-Tucker Theorem [6]

Page 12: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

The Lagrangian Dual Problem [6]

Page 13: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Minimize (in w, b)

Subject to (for any i=1,…n)

One could be tempted to expressed the previous problem by means of non-negative Lagrange multipliers αi as

we could find the minimum by sending all αi to ∞. Nevertheless the previous constrained problem can be expressed as

This is we look for a saddle point.

Dual Problem [10]

Page 14: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

The Lagrangian Dual Problem [6]

Page 15: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

The Lagrangian Dual Problem [6]

Page 16: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Support Vectors [6]

Page 17: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-separable Case [6]

Page 18: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-separable Case [6]

Page 19: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-separable Case [6]

Page 20: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-separable Case [6]

Page 21: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-linear SVMs [6]

Page 22: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-linear SVMs [6]

Page 23: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Non-linear SVMs [6]

Page 24: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Implicit Mappings: An Example [6]

Page 25: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Kernel Methods [6]

Page 26: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Kernel Methods [6]

Page 27: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Kernel Methods [6]

Page 28: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Kernel Methods [6]

Kernel Functions

Page 29: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Architecture of an SVM [6]

Page 30: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Case Study: XOR [6]

Page 31: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

References

1. Frank Masci, “An Introduction to Principal Component Analysis,” http://web.ipac.caltech.edu/staff/fmasci/home/statistics_refs/PrincipalComponentAnalysis.pdf

2. Richard O. Duda, Peter E. Hart, David G. Stork, Pattern Classification, second edition, John Wiley & Sons, Inc., 2001.

3. Christopher M. Bishop, Pattern Recognition and Machine Learning, Springer, 2007.4. Sergios Theodoridis, Konstantinos Koutroumbas, Pattern Recognition, Academic Press, 2006.5. Ho Gi Jung, Yun Hee Lee, Pal Joo Yoon, In Yong Hwang, and Jaihie Kim, “Sensor Fusion Based

Obstacle Detection/Classification for Active Pedestrian Protection System,” Lecture Notes on Computer Science, Vol. 4292, 294-305.

6. Ricardo Gutierrez-Osuna, “Pattern Recognition, Lecture Notes,” available at http://research.cs.tamu.edu/prism/lectures.htm

7. Paul Viola, Michael Jones, “Robust real-time object detection,” International Journal of Computer Vision, 57(2), 2004, 137-154.

8. Wikipedia, “Principal component analysis,” available at http://en.wikipedia.org/wiki/Principal_component_analysis

9. Wikipeida, “Lagrange multipliers,” http://en.wikipedia.org/wiki/Lagrange_multipliers.10. Wikipeida, “Support Vector Machine,” http://en.wikipedia.org/wiki/Support_vector_machine.

Page 32: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Classifier-Based Object Recognition

Page 33: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Two Phases of Object Recognition

1. Hypothesis Generation (HG) Phase: it should include all possibilities and it is expected to be relatively lighter to implement.

2. Hypothesis Verification (HV) Phase: it should be able to distinguish the real objects and it is expected to be heavier to implement Based on classifier.

HV consists of feature and classification.• Features: PCA, ICA, Local Receptive Field (LRF), Histogram Of Gradient (HOG),

Gabor Filter Bank (GFB)• Classifier: LDA, Neural Network, Support Vector Machine (SVM)

Page 34: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

GFB-SVM-Based Pedestrian Recognition [1][2][3]

Page 35: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Gabor Filter

Gabor filter is the product of 2D Gaussian function and 2D sine wave. It can detect the orientation-specific, frequency-specific components of image at a specific spatial location.

Gabor filter in spatial domain is defined like Eq. (1)

2 2

2 2

1 1( , ) exp 22 2x y x y

x yg x y jWx

Its definition in frequency domain is like Eq. (2)2 2

2 2

1 ( )( , ) exp2 u v

u W vG u v

(1)

(2)

2 2

2 2

1 1( , ) exp 22 2

cos sin ,

sin cos

ss s

x y x y

x yg x y a jU x

k kx x yK K

wherek ky x yK K

Gaussian wavelet can be defined by rotating the basic form.

Page 36: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Garbor Filter Bank

Page 37: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Support Vector Machine [2]

Page 38: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Support Vector Machine [2]

Histogram of Oriented Gradients (HOG) are feature descriptors used in computer vision and image processing for the purpose of object detection. The technique counts occurrences of gradient orientation in localized portions of an image. This method is similar to that of edge orientation histograms, scale-invariant feature transform descriptors, and shape contexts, but differs in that it is computed on a dense grid of uniformly spaced cells and uses overlapping local contrast normalization for improved accuracy.

http://en.wikipedia.org/wiki/Histogram_of_oriented_gradients

Page 39: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Support Vector Number Reduction (SVNR)

Ho Gi Jung*, Gahyun Kim, “Support Vector Number Reduction: Survey and Experimental Evaluations,” IEEE Transactions on Intelligent Transportation Systems, accepted on 15 Sep. 2013, online published 7 Oct. 2013

Taxonomy of SVNR

Page 40: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Support Vector Number Reduction (SVNR)

Ho Gi Jung*, Gahyun Kim, “Support Vector Number Reduction: Survey and Experimental Evaluations,” IEEE Transactions on Intelligent Transportation Systems, accepted on 15 Sep. 2013, online published 7 Oct. 2013

In particular, this paper confirms that the

support vector number of a pedestrian

classifier using a histogram of oriented

gradient (HOG)-based feature and radial

basis function (RBF) kernel-based SVM can

be reduced by more than 99.5% without any

accuracy degradation using iterative

preimage addition which can be downloaded

from the Internet.

Page 41: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

References

1. Ho Gi Jung, Pal Joo Yoon, and Jaihie Kim, “Genetic Algorithm-Based Optimization of SVM-Based Pedestrian Classifier,” The 22nd International Technical Conference on Circuits/Systems, Computers and Communications (ITC-CSDD 2007), Busan, Korea, Jul. 8-11, 2007, pp. 783-784.

2. Ho Gi Jung, Jaihie Kim, “Constructing a pedestrian recognition system with a public open database, without the necessity of re-training: an experimental study,” Pattern Analysis and Applications, on-line published on 7 Apr. 2009.

3. Ho Gi Jung, Yun Hee Lee*, Pal Joo Yoon, In Yong Hwang, and Jaihie Kim, “Sensor Fusion Based Obstacle Detection/Classification for Active Pedestrian Protection System”, LNCS Vol. 4292, Part II 294-305, November 2006.

4. David Lowe, “The Viola/Jones Face Detector,” UBC lecture material of computer vision, Spring 2007.

Page 42: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Viola Jones Method:AdaBoost-based Face Detection

Page 43: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Face Detector by AdaBoost [4]

Page 44: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

AdaBoost [4]

• Given a set of weak classifiers

– None much better than random• Iteratively combine classifiers

– Form a linear combination

– Training error converges to 0 quickly– Test error is related to training margin

}1,1{)( :originally xjh

t

t bxhxC )()(

Page 45: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Face Detector by AdaBoost [4]

Weak Classifier 1

WeightsIncreased

Weakclassifier 3

Final classifier is linear combination of weak classifiers

Weak Classifier 2

Page 46: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Haar-like Feature [7]

The simple features used are reminiscent of Haar basis functions which have been used by Papageorgiou et al. (1998).Three kinds of features: two-rectangle feature, three-rectangle feature, and four-rectangle featureGiven that the base resolution of the detector is 24x24, the exhaustive set of rectangle feature is quite large, 160,000.

Page 47: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Haar-like Feature: Integral Image [7]

Rectangle features can be computed very rapidly using an intermediate representation for the image which we call the integral image.The integral image at location x,y contains the sum of the pixels above and to the left of x, y, inclusive:

where ii (x, y) is the integral image and i (x, y) is the original image (see Fig. 2). Using the following pair of recurrences:

(where s(x, y) is the cumulative row sum, s(x,−1) =0, and ii (−1, y) = 0) the integral image can be computed in one pass over the original image.

Page 48: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Haar-like Feature: Integral Image [7]

Using the integral image any rectangular sum can be computed in four array references (see Fig. 3).

Our hypothesis, which is borne out by experiment, is that a very small number of these features can be combined to form an effective classifier. The main challenge is to find these features.

Page 49: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Feature Selection [4]

• For each round of boosting:– Evaluate each rectangle filter on each example– Sort examples by filter values– Select best threshold for each filter (min Z)– Select best filter/threshold (= Feature) – Reweight examples

• M filters, T thresholds, N examples, L learning time– O( MT L(MTN) ) Naïve Wrapper Method– O( MN ) Adaboost feature selector

Page 50: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Cascasted Classifier [4]

Page 51: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Cascaded Classifier [4]

Page 52: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

References

1. Frank Masci, “An Introduction to Principal Component Analysis,” http://web.ipac.caltech.edu/staff/fmasci/home/statistics_refs/PrincipalComponentAnalysis.pdf

2. Richard O. Duda, Peter E. Hart, David G. Stork, Pattern Classification, second edition, John Wiley & Sons, Inc., 2001.

3. Christopher M. Bishop, Pattern Recognition and Machine Learning, Springer, 2007.4. Sergios Theodoridis, Konstantinos Koutroumbas, Pattern Recognition, Academic Press, 2006.5. Ho Gi Jung, Yun Hee Lee, Pal Joo Yoon, In Yong Hwang, and Jaihie Kim, “Sensor Fusion Based

Obstacle Detection/Classification for Active Pedestrian Protection System,” Lecture Notes on Computer Science, Vol. 4292, 294-305.

6. Ricardo Gutierrez-Osuna, “Pattern Recognition, Lecture Notes,” available at http://research.cs.tamu.edu/prism/lectures.htm

7. Paul Viola, Michael Jones, “Robust real-time object detection,” International Journal of Computer Vision, 57(2), 2004, 137-154.

8. Wikipedia, “Principal component analysis,” available at http://en.wikipedia.org/wiki/Principal_component_analysis

9. Wikipeida, “Lagrange multipliers,” http://en.wikipedia.org/wiki/Lagrange_multipliers.10. Wikipeida, “Support Vector Machine,” http://en.wikipedia.org/wiki/Support_vector_machine.

Page 53: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Kalman Filter-based Tracking,A Posteriori Probability

Page 54: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

2D Kalman Filtering [1]

- State vector: Light blob 무게 중심의 x좌표, y좌표, x축 속도, y축 속도

1000010010100101

A

00100001

H

y

x

vvyx

x

- 2차원 평면에 대한 LTI(Linear Time-Invariant) model을 이용한 Kalman filter

10000010000010000010

Q

00500005

R

State transition matrix Measurement matrix State covariance Measurement covariance

System dynamics 정의 System noise level 정의

kvkvkykx

kvkv

kvkykvkx

kvkvkykx

y

x

y

x

x

x

y

x

1000010010100101

1111

Page 55: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

1) Prediction 단계

QAPAP T

kk 1

1ˆˆ kk xAx

2) Matching 단계

- Predicted position 에서 가장 가까운 측정치 zk 검색

- 그 object 까지의 거리가 Pk-를 활용한 임계치보다 작으면 대응 성립 correction 단계로

대응 없으면소멸

3) Correction 단계

1 RHPHHPK Tk

Tkk

kkkkk xHzKxx ˆˆˆ kkkk PHKPP

4) 생성 단계: matching 되지 않은 zk에 대해 track 생성

2D Kalman Filtering [1]

kx̂

예측된 x, y 좌표 검출된 x, y 좌표

kkkkk zKxHKIx ˆˆ

Page 56: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Classification of Tracked Object [2]

C개의 class가 있는 classification을 N회 tracking된 object에 적용한 결과가 O이다.

즉, 어떤 object의 class c는

특정 시간 n의 어떤 object에 대한 classifier의 출력 o(n)은

N회 tracking된 어떤 object에 대한 classifier 출력 O는

Cc 1

Con 1

... 21 NoooO

N회 tracking된 어떤 object에 classifier를 적용하여 classifier 출력 O를 얻은 후, 그 object의class를 알아내는 것은

Oc|Pcmaxarg

Class c인 샘플들에 대해서 classifier를 적용하여 얻은 결과는 P(O|c)이다.

미리 측정할 수 있는 값이다.

Maximum A Posteriori Probability

Page 57: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

C

ccPcP

cPcPP

cPcPcP

1|

|||O

OO

OO

Classification of Tracked Object [2]

coPcoPcoPcoPcoPcoPcoPcoPcP nnnn ||||||||| 121121 O

Bayes’ Rule을이용하면,

이때, classifier의출력이서로 independent하다면,

누적해서 곱해서 구할 수 있다.

Page 58: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Classification of Tracked Object [2]

Page 59: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Classification of Tracked Object [2]

Page 60: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

Classification of Tracked Object [2]

Page 61: Object Recognition 2: Appearance-based, Trackingweb.yonsei.ac.kr/hgjung/Lectures/AUE859/14. Object... · 2014. 12. 29. · Object Recognition 2: Appearance-based, Tracking. E-mail:

E-mail: [email protected]://web.yonsei.ac.kr/hgjung

References

1. 김성필, “MATLAB활용 칼만필터의 이해,” 도서출판 아진, 2010년. 2. Ho Gi Jung, Jaihie Kim, “Constructing a pedestrian recognition system with a public open database,

without the necessity of re-training: an experimental study,” Pattern Analysis and Applications (2010) 12: 223-233.