ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • XML File for Haar Cascade Classifier
    Research/Haar Cascade Classifier 2022. 6. 18. 17:35

    네이버에 잠시 정리해놓았던 것들을.. 이제 졸업할때가 다 되어가니깐 다시 정리할 필요성이 있어.. 정리를 시작하게 되었습니다.... :)

     

    Haar Cascade Classifier를 사용하기 위해서는 학습을 통해 산출된 파라미터들이 기록된 xml 파일 혹은 OpenCV에서 제공하는 xml 파일을 사용할 수 있습니다.

     

    본 포스팅은 OpenCV에서 제공하는 haarcascade_frontalface_alt.xml 파일에 관한 내용입니다.

    (KR: 한국어)

    (EN: 영어)

     

    그림 1. haarcascade_frontalface_default.xml

     
     
     
    <stageType>: Cascade are boosting
     
     
    <featureType>: Haar feature
     
     
    <height> and <width>:
     
            - KR: Classifier에 사용되는 필터의 높이와 너비
     
            - EN: The height and width of filters used by classifiers
     
     
    <maxWeakCount>:
     
            - KR: 각 스테이지 혹은 레벨에 존재하는 weak classifier의 최대 개수
     
            - EN: The maximum number of weak classifiers at each stage or level
     
     
    <stageNum>
     
            - KR: 스테이지(레벨) 개수 (그림 1.에서는 22개)
     
            - EN: The number of stages(levels)
     
     
    <stageThreshold>
     
            - KR: 다음 레벨의 weak classifier로 넘어가기 위한 임계치(threshold) 값
     
            - EN: The threshold that classifiers need to overcome in order to move to the next level
     
     
    <internalNodes>: Contains information about the tree nodes
    • 첫 번째 숫자 위치: 현재 노드의 인덱스 (그림 1.에서의 0)
                                    (The index of the current node)
    • 두 번째 숫자 위치: 이동하려고 하는 노드의 인덱스, 리프 값은 해당 인덱스 값이 0보다 작을 때 이동
                                    (그림 1.에서 -1)
                                    (The index of the node that you want to go to, the leaf transition ends when the index becomes
                                     smaller than 0)
    • 세 번째 숫자 위치: 사각 필터(rectangle filter, 윈도우라고 생각)의 개수
                                    (The number of the rectangle filter. It is located further in the XML file under the feature tag)
    • 네 번째 숫자 위치: Weak classifier의 임계치 값 (그림 1.에서의 4.0141958743333817e-03)
                                    (The threshold value of the weak classifier)
     
    그림 2. Kernels
     
    <rects>: 합성곱(convolution)을 위한 값 저장

     

     

    'Research > Haar Cascade Classifier' 카테고리의 다른 글

    Haar Feature Selection  (0) 2022.06.18
Designed by Tistory.