亚洲国产爱久久全部精品_日韩有码在线播放_国产欧美在线观看_中文字幕不卡在线观看

Jump to content

Viola–Jones object detection framework

From Wikipedia, the free encyclopedia

The Viola–Jones object detection framework is a machine learning object detection framework proposed in 2001 by Paul Viola and Michael Jones.[1][2] It was motivated primarily by the problem of face detection, although it can be adapted to the detection of other object classes.

In short, it consists of a sequence of classifiers. Each classifier is a single perceptron with several binary masks (Haar features). To detect faces in an image, a sliding window is computed over the image. For each image, the classifiers are applied. If at any point, a classifier outputs "no face detected", then the window is considered to contain no face. Otherwise, if all classifiers output "face detected", then the window is considered to contain a face.

The algorithm is efficient for its time, able to detect faces in 384 by 288 pixel images at 15 frames per second on a conventional 700 MHz Intel Pentium III. It is also robust, achieving high precision and recall.

While it has lower accuracy than more modern methods such as convolutional neural network, its efficiency and compact size (only around 50k parameters, compared to millions of parameters for typical CNN like DeepFace) means it is still used in cases with limited computational power. For example, in the original paper,[1] they reported that this face detector could run on the Compaq iPAQ at 2 fps (this device has a low power StrongARM without floating point hardware).

Problem description

[edit]

Face detection is a binary classification problem combined with a localization problem: given a picture, decide whether it contains faces, and construct bounding boxes for the faces.

To make the task more manageable, the Viola–Jones algorithm only detects full view (no occlusion), frontal (no head-turning), upright (no rotation), well-lit, full-sized (occupying most of the frame) faces in fixed-resolution images.

The restrictions are not as severe as they appear, as one can normalize the picture to bring it closer to the requirements for Viola-Jones.

  • any image can be scaled to a fixed resolution
  • for a general picture with a face of unknown size and orientation, one can perform blob detection to discover potential faces, then scale and rotate them into the upright, full-sized position.
  • the brightness of the image can be corrected by white balancing.
  • the bounding boxes can be found by sliding a window across the entire picture, and marking down every window that contains a face.
    • This would generally detect the same face multiple times, for which duplication removal methods, such as non-maximal suppression, can be used.

The "frontal" requirement is non-negotiable, as there is no simple transformation on the image that can turn a face from a side view to a frontal view. However, one can train multiple Viola-Jones classifiers, one for each angle: one for frontal view, one for 3/4 view, one for profile view, a few more for the angles in-between them. Then one can at run time execute all these classifiers in parallel to detect faces at different view angles.

The "full-view" requirement is also non-negotiable, and cannot be simply dealt with by training more Viola-Jones classifiers, since there are too many possible ways to occlude a face.

Components of the framework

[edit]

A full presentation of the algorithm is in.[3]

Consider an image of fixed resolution . Our task is to make a binary decision: whether it is a photo of a standardized face (frontal, well-lit, etc) or not.

Viola–Jones is essentially a boosted feature learning algorithm, trained by running a modified AdaBoost algorithm on Haar feature classifiers to find a sequence of classifiers . Haar feature classifiers are crude, but allows very fast computation, and the modified AdaBoost constructs a strong classifier out of many weak ones.

At run time, a given image is tested on sequentially. If at any point, , the algorithm immediately returns "no face detected". If all classifiers return 1, then the algorithm returns "face detected". For this reason, the Viola-Jones classifier is also called "Haar cascade classifier".

Haar feature classifiers

[edit]

Consider a perceptron defined by two variables . It takes in an image of fixed resolution, and returns

Example rectangle features shown relative to the enclosing detection window

A Haar feature classifier is a perceptron with a very special kind of that makes it extremely cheap to calculate. Namely, if we write out the matrix , we find that it takes only three possible values , and if we color the matrix with white on , black on , and transparent on , the matrix is in one of the 5 possible patterns shown on the right.

Each pattern must also be symmetric to x-reflection and y-reflection (ignoring the color change), so for example, for the horizontal white-black feature, the two rectangles must be of the same width. For the vertical white-black-white feature, the white rectangles must be of the same height, but there is no restriction on the black rectangle's height.

Haar Feature that looks similar to the bridge of the nose is applied onto the face
Haar Feature that looks similar to the eye region which is darker than the upper cheeks is applied onto a face

Rationale for Haar features

[edit]

The Haar features used in the Viola-Jones algorithm are a subset of the more general Haar basis functions, which have been used previously in the realm of image-based object detection.[4]

While crude compared to alternatives such as steerable filters, Haar features are sufficiently complex to match features of typical human faces. For example:

  • The eye region is darker than the upper-cheeks.
  • The nose bridge region is brighter than the eyes.

Composition of properties forming matchable facial features:

  • Location and size: eyes, mouth, bridge of nose
  • Value: oriented gradients of pixel intensities

Further, the design of Haar features allows for efficient computation of using only constant number of additions and subtractions, regardless of the size of the rectangular features, using the summed-area table.

Learning and using a Viola–Jones classifier

[edit]

Choose a resolution for the images to be classified. In the original paper, they recommended .

Learning

[edit]

Collect a training set, with some containing faces, and others not containing faces. Perform a certain modified AdaBoost training on the set of all Haar feature classifiers of dimension , until a desired level of precision and recall is reached. The modified AdaBoost algorithm would output a sequence of Haar feature classifiers .

The details of the modified AdaBoost algorithm is detailed below.

Using

[edit]

To use a Viola-Jones classifier with on an image , compute sequentially. If at any point, , the algorithm immediately returns "no face detected". If all classifiers return 1, then the algorithm returns "face detected".

Learning algorithm

[edit]

The speed with which features may be evaluated does not adequately compensate for their number, however. For example, in a standard 24x24 pixel sub-window, there are a total of M = 162336[5] possible features, and it would be prohibitively expensive to evaluate them all when testing an image. Thus, the object detection framework employs a variant of the learning algorithm AdaBoost to both select the best features and to train classifiers that use them. This algorithm constructs a "strong" classifier as a linear combination of weighted simple “weak” classifiers.

Each weak classifier is a threshold function based on the feature .

The threshold value and the polarity are determined in the training, as well as the coefficients .

Here a simplified version of the learning algorithm is reported:[6]

Input: Set of N positive and negative training images with their labels . If image i is a face , if not .

  1. Initialization: assign a weight to each image i.
  2. For each feature with
    1. Renormalize the weights such that they sum to one.
    2. Apply the feature to each image in the training set, then find the optimal threshold and polarity that minimizes the weighted classification error. That is where
    3. Assign a weight to that is inversely proportional to the error rate. In this way best classifiers are considered more.
    4. The weights for the next iteration, i.e. , are reduced for the images i that were correctly classified.
  3. Set the final classifier to

Cascade architecture

[edit]
  • On average only 0.01% of all sub-windows are positive (faces)
  • Equal computation time is spent on all sub-windows
  • Must spend most time only on potentially positive sub-windows.
  • A simple 2-feature classifier can achieve almost 100% detection rate with 50% FP rate.
  • That classifier can act as a 1st layer of a series to filter out most negative windows
  • 2nd layer with 10 features can tackle “harder” negative-windows which survived the 1st layer, and so on...
  • A cascade of gradually more complex classifiers achieves even better detection rates. The evaluation of the strong classifiers generated by the learning process can be done quickly, but it isn't fast enough to run in real-time. For this reason, the strong classifiers are arranged in a cascade in order of complexity, where each successive classifier is trained only on those selected samples which pass through the preceding classifiers. If at any stage in the cascade a classifier rejects the sub-window under inspection, no further processing is performed and continue on searching the next sub-window. The cascade therefore has the form of a degenerate tree. In the case of faces, the first classifier in the cascade – called the attentional operator – uses only two features to achieve a false negative rate of approximately 0% and a false positive rate of 40%.[7] The effect of this single classifier is to reduce by roughly half the number of times the entire cascade is evaluated.

In cascading, each stage consists of a strong classifier. So all the features are grouped into several stages where each stage has certain number of features.

The job of each stage is to determine whether a given sub-window is definitely not a face or may be a face. A given sub-window is immediately discarded as not a face if it fails in any of the stages.

A simple framework for cascade training is given below:

  • f = the maximum acceptable false positive rate per layer.
  • d = the minimum acceptable detection rate per layer.
  • Ftarget = target overall false positive rate.
  • P = set of positive examples.
  • N = set of negative examples.
F(0) = 1.0; D(0) = 1.0; i = 0

while F(i) > Ftarget
    increase i
    n(i) = 0; F(i)= F(i-1)

    while F(i) > f × F(i-1)
        increase n(i)
        use P and N to train a classifier with n(i) features using AdaBoost
        Evaluate current cascaded classifier on validation set to determine F(i) and D(i)
        decrease threshold for the ith classifier (i.e. how many weak classifiers need to accept for strong classifier to accept)
            until the current cascaded classifier has a detection rate of at least d × D(i-1) (this also affects F(i))
    N = ?
    if F(i) > Ftarget then 
        evaluate the current cascaded detector on the set of non-face images 
        and put any false detections into the set N.

The cascade architecture has interesting implications for the performance of the individual classifiers. Because the activation of each classifier depends entirely on the behavior of its predecessor, the false positive rate for an entire cascade is:

Similarly, the detection rate is:

Thus, to match the false positive rates typically achieved by other detectors, each classifier can get away with having surprisingly poor performance. For example, for a 32-stage cascade to achieve a false positive rate of 10?6, each classifier need only achieve a false positive rate of about 65%. At the same time, however, each classifier needs to be exceptionally capable if it is to achieve adequate detection rates. For example, to achieve a detection rate of about 90%, each classifier in the aforementioned cascade needs to achieve a detection rate of approximately 99.7%.[8]

Using Viola–Jones for object tracking

[edit]

In videos of moving objects, one need not apply object detection to each frame. Instead, one can use tracking algorithms like the KLT algorithm to detect salient features within the detection bounding boxes and track their movement between frames. Not only does this improve tracking speed by removing the need to re-detect objects in each frame, but it improves the robustness as well, as the salient features are more resilient than the Viola-Jones detection framework to rotation and photometric changes.[9]

References

[edit]
  1. ^ a b Viola, P.; Jones, M. (2001). . Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001. Vol. 1. IEEE Comput. Soc. doi:10.1109/cvpr.2001.990517. ISBN 0-7695-1272-0. S2CID 2715202.
  2. ^ Viola, Paul; Jones, Michael J. (May 2004). . International Journal of Computer Vision. 57 (2): 137–154. doi:10.1023/b:visi.0000013087.49260.fb. ISSN 0920-5691. S2CID 2796017.
  3. ^ Wang, Yi-Qing (2014-06-26). . Image Processing on Line. 4: 128–148. doi:10.5201/ipol.2014.104. ISSN 2105-1232.
  4. ^ C. Papageorgiou, M. Oren and T. Poggio. A General Framework for Object Detection. International Conference on Computer Vision, 1998
  5. ^ . stackoverflow.com. Retrieved 2017-06-27.
  6. ^ R. Szeliski, Computer Vision, algorithms and applications, Springer
  7. ^ Viola, Jones: Robust Real-time Object Detection, IJCV 2001 See page 11.
  8. ^ Torbert, Shane (2016). Applied Computer Science (2nd ed.). Springer. pp. 122–131.
  9. ^ . Archived from the original on 2020-08-03. Retrieved 2014-12-18.
[edit]

Implementations

[edit]
Retrieved from "
亚洲国产爱久久全部精品_日韩有码在线播放_国产欧美在线观看_中文字幕不卡在线观看

    
    

    9000px;">

      
      

      中文在线最新版天堂| 亚洲图片中文字幕| 欧美性生交大片| 久久网免费视频| 好吊一区二区三区视频| 国产三区在线播放| 国产精品50页| 国产精品久久久久久久av福利 | 在线视频第一页| 婷婷六月天在线| 婷婷激情五月网| 天天干天天干天天操| 日本黄色中文字幕| 欧美日韩一级黄色片| 蜜臀久久精品久久久久| 久久久久久久九九九九| 精品夜夜澡人妻无码av| 久久精品国产亚洲av高清色欲| 国精产品乱码一区一区三区四区| 国产三级日本三级在线播放| 国产精品久久久久久久av福利| 国产福利小视频| 国产三级第一页| 国产农村妇女毛片精品久久| 国产三级av片| 精品成人免费视频| 久久久久久久久影院| 精品在线视频免费观看| 久久综合亚洲色hezyo国产| 久久久久国产一区| 免费一级黄色大片| 青花影视在线观看免费高清| 人妻少妇无码精品视频区| 人妻中文字幕一区| 色欲av伊人久久大香线蕉影院| 少妇av一区二区| 亚欧激情乱码久久久久久久久| 中文字幕a级片| 亚洲欧美日本在线观看| 91麻豆精品成人一区二区| 国产成人精品一区二区在线小狼| 国产探花在线看| 久久久久亚洲av片无码| 欧美一区二区三区四| 天天舔天天操天天干| 中文字幕在线视频播放| 一本色道久久综合精品婷婷| www.偷拍.com| 国产永久免费网站| 久久婷婷五月综合| 日韩免费高清一区二区| 五月婷婷一区二区| 亚洲精品一区二区三区在线播放 | 久久久久久久久黄色| 欧美三级午夜理伦| 网爆门在线观看| 亚洲欧美精品一区二区三区| av无码精品一区二区三区宅噜噜| 国产熟女一区二区三区五月婷| 久久久久久久中文字幕| 日韩一区二区三区在线观看视频| 在线观看成人毛片| 11024精品一区二区三区日韩| 国产精品一级视频| 鲁一鲁一鲁一鲁一av| 天堂中文在线网| 亚洲欧洲精品视频| 丰满熟妇人妻中文字幕| 久久久久久蜜桃一区二区| 色哟哟一一国产精品| 中文字幕在线2021| 福利在线一区二区三区| 精品国产乱码久久久久夜深人妻| 人妻无码中文字幕| 制服丝袜在线一区| 成人黄色a级片| 久久老司机精品视频| 午夜精品久久久久久久91蜜桃| 一二三区视频在线观看| 国产在视频线精品视频| 日韩av影视大全| 亚洲欧美视频二区| 国产美女久久久久久| 日本三级黄色网址| 亚洲三区在线观看无套内射| 国产精品亚洲lv粉色| 日韩精品一区二区不卡| 亚洲欧美日韩中文字幕在线观看| 国产亚洲欧美在线精品| 日韩特黄一级片| 91资源在线播放| 久久久久久亚洲av无码专区| 亚洲 另类 春色 国产| www.youjizz.com亚洲| 看欧美ab黄色大片视频免费| 亚洲AV无码一区二区三区少妇| www.狠狠爱| 欧美成人片在线观看| 最近中文字幕免费| 国产微拍精品一区| 天堂а√在线中文在线鲁大师| www.中文字幕在线观看| 欧美一级特黄aaaaaa| 91ts人妖另类精品系列| 久久久久久久久久99| 中文字幕成人动漫| 国精品人妻无码一区二区三区喝尿| 天天看天天摸天天操| 国产高清在线免费| 色偷偷在线观看| 国产成人三级在线观看视频| 人妻互换一区二区激情偷拍| 一本色道久久综合亚洲| 女同毛片一区二区三区| 一级少妇精品久久久久久久| 免费一级做a爰片久久毛片潮| 亚洲精品乱码久久| 蜜桃福利午夜精品一区| 亚洲色图欧美视频| 毛片毛片毛片毛| 91n在线视频| 日本成人午夜影院| www精品国产| 日韩精品久久久久久久酒店| avtt香蕉久久| 色播五月综合网| 国产精品第6页| 亚洲 国产 日韩 欧美| 国精产品一品二品国精品69xx| 五月婷婷在线播放| 好吊视频一二三区| 亚洲免费不卡视频| 浓精h攵女乱爱av| a在线观看视频| 色哟哟一一国产精品| 国产亚洲视频一区| 中文字幕免费在线播放| 久久久久中文字幕亚洲精品| 91av手机在线| 天堂在线视频免费观看| 狠狠操狠狠干视频| 91黄色在线视频| 青青草成人免费| 国产67194| 在线视频日韩一区| 欧美xxxxxbbbbb| 国产馆在线观看| 中文字幕第69页| 欧美成人精品欧美一级私黄| 国产成人啪精品午夜在线观看 | 天堂网免费视频| 精品亚洲乱码一区二区| 91精品视频免费在线观看| 日韩在线观看视频一区二区三区| 国产探花在线视频| 一道本在线视频| 无码精品人妻一区二区| 久久久久久久人妻无码中文字幕爆| 97人人澡人人爽人人模亚洲| 手机在线精品视频| 久久精品视频日本| 福利片一区二区三区| 在线免费观看亚洲视频| 青青青在线视频| 好吊视频一区二区三区| 99精品久久久久| 伊人精品一区二区三区| 欧美 日韩 国产 成人 在线 91| 国产精品久久久久久久成人午夜| 中文字幕一区二区久久人妻网站| 秋霞午夜鲁丝一区二区| 国内毛片毛片毛片毛片毛片| 99久久99久久精品国产| 在线观看国产一区二区三区| 日韩av电影网址| 久久久精品人妻一区二区三区| 丰满人妻一区二区三区免费视频棣| 亚洲精品久久久久久无码色欲四季| 天堂一区在线观看| 男人女人黄一级| 精品国产乱码久久久久夜深人妻| 超碰在线观看av| 亚洲欧美自偷自拍| 亚洲第一成肉网| 肉丝美足丝袜一区二区三区四| 久久久久久91亚洲精品中文字幕| 国产精品二区一区二区aⅴ| 亚洲综合精品在线| 亚洲成人av免费看| 天堂av手机在线| 日本三级午夜理伦三级三| 久久久久久久久久影院| 国产又爽又黄又嫩又猛又粗| 国产精品19乱码一区二区三区| 99中文字幕在线| 亚洲精品一区二区三区新线路| 亚洲第一天堂久久| 色偷偷中文字幕| 日韩精品无码一区二区| 欧美成人三级在线观看|