From f878b0b1afb1039ab4e9e949b753705901497bc1 Mon Sep 17 00:00:00 2001 From: "lion.chan" Date: Tue, 6 Sep 2022 09:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E8=B7=AF?= =?UTF-8?q?=E5=BE=84.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lion.chan --- .../AI/Deep_Learning_Haar_Cascade_Explained.md | 16 ++++++++-------- .../001.jpg | Bin .../002.png | Bin .../003.png | Bin .../004.png | Bin .../005.gif | Bin .../006.png | Bin .../007.png | Bin .../008.png | Bin 9 files changed, 8 insertions(+), 8 deletions(-) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/001.jpg (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/002.png (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/003.png (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/004.png (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/005.gif (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/006.png (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/007.png (100%) rename {img/post/Algorithm => Algorithm/AI/img}/Deep_Learning_Haar_Cascade_Explained/008.png (100%) diff --git a/Algorithm/AI/Deep_Learning_Haar_Cascade_Explained.md b/Algorithm/AI/Deep_Learning_Haar_Cascade_Explained.md index a86f256..5f22b7e 100755 --- a/Algorithm/AI/Deep_Learning_Haar_Cascade_Explained.md +++ b/Algorithm/AI/Deep_Learning_Haar_Cascade_Explained.md @@ -62,7 +62,7 @@ Haar 级联分类器最著名的应用是检测图像中的人脸或身体,但 第一步是收集 Haar 特征。可以将 Haar 特征看作检测窗口中相邻的举行区域,将各自区域的像素强度加合,然后计算它们的差值。 -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/001.jpg) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/001.jpg) “Integral Images are used to make this super fast.” @@ -72,7 +72,7 @@ Haar 级联分类器最著名的应用是检测图像中的人脸或身体,但 但是,这些特征中的很大一部分是与任务目标不相关的(没有意义的特征)。以下图为例,应用第一行的选择窗口可以得到两个好的特征:选取第一个特征,主要是由于眼部区域通常比鼻子和脸颊更黑;选取第二个特征则依赖于眼部比鼻梁更黑这一现象。但是,将同样的检测窗口应用于脸颊或其他部位则得不到有意义的特征。 -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/002.png) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/002.png) “So how do we select the best features out of 160000+ features? This is accomplished using a concept called Adaboost which both selects the best features and trains the classifiers that use them. This algorithm constructs a “strong” classifier as a linear combination of weighted simple “weak” classifiers. The process is as follows.” @@ -84,7 +84,7 @@ Haar 级联分类器最著名的应用是检测图像中的人脸或身体,但 ## 2. Cascade Classifier -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/003.png) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/003.png) “The cascade classifier[b] consists of a collection of stages, where each stage is an ensemble of weak learners. The weak learners are simple classifiers called decision stumps. Each stage is trained using a technique called boosting. Boosting provides the ability to train a highly accurate classifier by taking a weighted average of the decisions made by the weak learners.” @@ -114,7 +114,7 @@ Haar 级联分类器最著名的应用是检测图像中的人脸或身体,但 训练级联分类器需要一组阳性采样和一组阴性采样图像。可以提供一组包含感兴趣区的阳性图像作为阳性采样。使用 Image Labeler 标记由包围盒框选的目标。Image Labeler 输出阳性采样标签。同时,还需要一组阴性图像,算法函数将自动生成阴性采样。为了达到可接受的精度,需要设置级联深度,特征类型和其他参数。 -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/004.png) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/004.png) “The video below shows this in action.“ @@ -138,7 +138,7 @@ Haar 级联分类器最著名的应用是检测图像中的人脸或身体,但 - 在其余的阶段中,我们能观察到分类器很好的检测出了人脸。 - 注意,随着越来越接近人脸检测结果,检测过程所消耗的时间也越来越长,这表示越接近目标分类器的工作越精细,在检测的初始阶段,分类器只要进行粗略的分类即可。 -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/005.gif) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/005.gif) [点击查看原始视频](https://www.youtube.com/watch?v=hPCTwxF0qf4&feature=youtu.be) @@ -174,7 +174,7 @@ This difference is then used to categorize subsections of an image. For example, An integral image is summed-area table is a data structure and algorithm for quickly and efficiently generating the sum of values in a rectangular subset of a grid. To understand this look at image 1 and image 2. Image 1 is the source table, Image 2 is the summation table. Notice in Image 2 row 1, col 2 value 33 is sum of Image 1 row 1 (col 1 + col 2). -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/006.png) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/006.png) [3] Adaboost @@ -190,11 +190,11 @@ Problems in machine learning often suffer from the curse of dimensionality — e 级联分类器是将一些小的分类过程组合成完整分类器的方法。以下图为例,需要将图中的“+”和“-”数据分开,仅靠一个分类过程很难实现。 -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/007.png) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/007.png) 但将下图中的三种分类方法组合到一起就可以得到一个非常好的分类器。其中每个分类方法都是级联分类器中的一个弱分类器,它们组合成了一个强分类器。注意,每个弱分类器都只对部分数据进行了分类。 -![Integral Images](/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/008.png) +![Integral Images](./img/Deep_Learning_Haar_Cascade_Explained/008.png) ## 8. 外部参考资料 diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/001.jpg b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/001.jpg similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/001.jpg rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/001.jpg diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/002.png b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/002.png similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/002.png rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/002.png diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/003.png b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/003.png similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/003.png rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/003.png diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/004.png b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/004.png similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/004.png rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/004.png diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/005.gif b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/005.gif similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/005.gif rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/005.gif diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/006.png b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/006.png similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/006.png rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/006.png diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/007.png b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/007.png similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/007.png rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/007.png diff --git a/img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/008.png b/Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/008.png similarity index 100% rename from img/post/Algorithm/Deep_Learning_Haar_Cascade_Explained/008.png rename to Algorithm/AI/img/Deep_Learning_Haar_Cascade_Explained/008.png