Opencv 3.1 people detection by CascadeClassifier

The comparison of Opencv Cascade for people detections. Default opencv cascades are good ones. You can simply achieve better results but you need to collect the training data. On my blog, you can find the datasets for car detection. There are more than 2000 positive car samples available for you and test to learn your own detector. 
Here in this article, I just want to show my cascade compared to a cascade which is the default in OpenCV. 

LBP cascade for people detection

Also, I recently published an LBP cascade for people detection. You can download 12 stage LBP cascade LBP cascade for download. There are a couple or maybe more than 3 tutorials on how to detect multiscale in OpenCV. Just download the LBP cascade and enjoy coding in Opencv.

Cascade Classifier opencv


Haar Cascade Classifier for People detection

In this short tutorial, I would like to test some standard haar cascade in opencv 3.1. 
My first note is where you can find these cascades.
When you download OpenCV for windows these cascades are located in opencv/sources/data/haarcascades

In the picture, i use these types of cascades. 

haarcascade_fullbody.xml

haarcascade_upperbody.xml

haarcascade_lowerbody.xml

Visually, I can rate the cascade as really great for fullbody an lower body. The upper body cascade has trouble with my source video. Which is not its fault.

Own haar like a cascade

Also, I am testing some of my own haar cascades, which are learned by different methods like gentle boost, adaboost, etc.

Red and blue are the cascades for people detection. White is a haar cascade for head detection. Check the video for results.


Video of mine haar cascade.


UPDATE

Code is HERE and cascade is LBP cascade for download



Next Post Previous Post
16 Comments
  • Unknown
    Unknown March 2, 2016 at 11:39 AM

    sample code and haar templates would be very useful, if you can disclose them and release them as open source. I would undoubtedly cite you as the author of the templates.

    • Vl
      Vl March 2, 2016 at 10:50 PM

      Code is rly simple. I will release code later today or tomorrow . Give me a time to add some recommendation, info and code description.

  • Unknown
    Unknown March 2, 2016 at 10:17 PM

    yes,but i want to konw,can the code be used to opencv 2.4?

  • Unknown
    Unknown March 2, 2016 at 10:18 PM

    yes,but i want to konw,can the code be used to opencv 2.4?

    • Vl
      Vl March 2, 2016 at 10:49 PM

      I hope, that the Opencv 2.4.9-2.4.11 is not problem. In some windows version of opencv 2.4.9-3.1 there is some problems.The first is 2.4.8-9 have wrong size of cascades in xml file. Also on windows, You can use debug and release. In debug mode the detect multiscale return wrong output as to many rectangles out of image boundary. In release mode there is no problem. I dont know why. On linux this is fixed.

  • Vl
    Vl March 2, 2016 at 10:45 PM

    Code is rly simple. I will release code later today or tomorrow . Give me a time to add some recommendation, info and code description. I hope, that the Opencv 2.4.9-2.4.11 is not problem . I am start with opencv 2.4.9 and 3.0.0 and now I am working only with 3.1. I would like to write another article how to train your own cascade. There are some tutorials but this is rly tricky part. You need a little bit experience with training.

  • Unknown
    Unknown March 3, 2016 at 1:35 AM

    Would love to work with the code please. thank you.

  • why blog
    why blog March 4, 2016 at 12:34 PM

    This comment has been removed by the author.

  • why blog
    why blog March 4, 2016 at 12:35 PM

    Would like to try out your Code by myself.

  • Vl
    Vl March 11, 2016 at 3:00 AM

    Code is in my new post..

  • cannava
    cannava November 30, 2017 at 7:40 PM

    That is amazing

    goldenslot
    สล็อตออนไลน์
    บาคาร่า

  • Unknown
    Unknown September 2, 2018 at 9:48 PM

    This comment has been removed by the author.

  • thanida
    thanida November 21, 2018 at 8:13 PM

    Great post. This article is really very interesting and enjoyable.
    ไฮโล

  • คนสวย2019
    คนสวย2019 December 10, 2018 at 9:56 PM

    ฟิลเลอร์คืออะไร?
    สารเติมเต็มผิวหรือที่เรียกทางการแพทย์ว่า เดอร์มอล ฟิลเลอร์ คือ สารไฮยารูโรนิก แอชิด หรือ HA เป็นสารที่รับรองมาตรฐานความปลอดภัยทั่วโลกแล้ว เป็นสารสกัดจากธรรมชาติที่มีองค์ประกอบของคลอลาเจน มีโครงสร้างประกอบกันเป็นร่างแหด้วยวิธีการทางเคมี ซึ่งมีอยู่แล้วในเซลล์ผิว มีความปลอดภัยสูง
    ฉีดฟิลเลอร์หน้าผาก
    ฉีดฟิลเลอร์จมูก
    ฉีดฟิลเลอร์ปาก
    ฉีดฟิลเลอร์ ที่ไหนดี

  • supersonic100g9
    supersonic100g9 April 3, 2019 at 11:44 PM

    วัดอรุณราชวรารามราชวรมหาวิหาร หรือวัดแจ้ง เป็นวัดโบราณสร้างในยุคอยุธยา พระปรางค์วัดย่ำรุ่งฯ นับเป็นเยี่ยมในเครื่องหมายของกรุงเทพมหานคร ที่รู้จักกันทั่วทั้งโลก ดังนั้นถ้าหากมาถึงจ.กรุงเทพฯ แล้วไม่แวะมาดูความสวยของพระปรางค์วัดย่ำรุ่งฯ บอกได้เลยว่า คุณมาไม่ถึงจ.กรุงเทพฯ จ้ะ !
    บริษัทรถเช่า
    รถเช่าสุวรรณภูมิ
    รถเช่าระหว่างซ่อม
    รถเช่าไม่ใช้บัตรเครดิต
    เช่ารถเก๋ง
    รถรับส่งสนามบิน


  • nice
    nice May 10, 2020 at 3:20 AM

    nice

Add Comment
comment url