このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
vision.CascadeObjectDetector
Viola-Jones アルゴリズムを使用したオブジェクトの検出
説明
カスケード型オブジェクト検出器は、Viola-Jones アルゴリズムを使用して人の顔、鼻、目、口、上半身などを検出します。イメージ ラベラーを使用して、この System object で使用するカスタム分類器の学習を行うこともできます。この関数の動作の詳細については、カスケード型オブジェクト検出器入門を参照してください。
イメージ内の顔の特徴または上半身を検出するには、次の手順を実行します。
vision.CascadeObjectDetector
オブジェクトを作成し、そのプロパティを設定します。関数と同様に、引数を指定してオブジェクトを呼び出します。
System object の機能の詳細については、System object とはを参照してください。
作成
構文
説明
は、Viola-Jones アルゴリズムを使用してオブジェクトを検出する検出器を作成します。detector
= vision.CascadeObjectDetector
detector = vision.CascadeObjectDetector(
は、入力文字ベクトル model
)model
によって定義されたオブジェクトを検出するように構成された検出器を作成します。
detector = vision.CascadeObjectDetector(
は検出器を作成して、XMLFILE
)XMLFILE
入力が指定されたカスタム分類モデルを使用するように構成します。
は、名前と値のペアを 1 つ以上使用してプロパティを設定します。各プロパティ名を引用符で囲みます。たとえば、detector
= vision.CascadeObjectDetector(Name,Value
)detector = vision.CascadeObjectDetector('ClassificationModel','UpperBody')
です。
プロパティ
オブジェクト関数
オブジェクト関数を使用するには、System object™ を最初の入力引数として指定します。たとえば、obj
という名前の System object のシステム リソースを解放するには、次の構文を使用します。
release(obj)
例
アルゴリズム
参照
[1] Lienhart R., Kuranov A., and V. Pisarevsky "Empirical Analysis of Detection Cascades of Boosted Classifiers for Rapid Object Detection." Proceedings of the 25th DAGM Symposium on Pattern Recognition. Magdeburg, Germany, 2003.
[2] Ojala Timo, Pietikäinen Matti, and Mäenpää Topi, "Multiresolution Gray-Scale and Rotation Invariant Texture Classification with Local Binary Patterns" . In IEEE Transactions on Pattern Analysis and Machine Intelligence, 2002. Volume 24, Issue 7, pp. 971-987.
[3] Kruppa H., Castrillon-Santana M., and B. Schiele. "Fast and Robust Face Finding via Local Context" . Proceedings of the Joint IEEE International Workshop on Visual Surveillance and Performance Evaluation of Tracking and Surveillance, 2003, pp. 157–164.
[4] Castrillón Marco, Déniz Oscar, Guerra Cayetano, and Hernández Mario, " ENCARA2: Real-time detection of multiple faces at different resolutions in video streams" . In Journal of Visual Communication and Image Representation, 2007 (18) 2: pp. 130-140.
[5] Yu Shiqi " Eye Detection." Shiqi Yu’s Homepage. http://yushiqi.cn/research/eyedetection.
[6] Viola, Paul and Michael J. Jones, " Rapid Object Detection using a Boosted Cascade of Simple Features" , Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2001. Volume: 1, pp.511–518.
[7] Dalal, N., and B. Triggs, " Histograms of Oriented Gradients for Human Detection" . IEEE Computer Society Conference on Computer Vision and Pattern Recognition. Volume 1, (2005), pp. 886–893.
[8] Ojala, T., M. Pietikainen, and T. Maenpaa, " Multiresolution Gray-scale and Rotation Invariant Texture Classification With Local Binary Patterns" . IEEE Transactions on Pattern Analysis and Machine Intelligence. Volume 24, No. 7 July 2002, pp. 971–987.
拡張機能
バージョン履歴
R2012a で導入