Human detection using svm and hog and counting

30 views (last 30 days)
payam abdy
payam abdy on 24 Jan 2016
Commented: Shivani Powar on 25 Jan 2021
Hi. I want to find human in a given image and then estimate the number of them.. i need to do this with svm and hog and i dont want to use computer vision . i know how to get hog feature and also how to train svm for simple object detection but i dont know how to use svm to find some people in a image and then locate them with a rectangle?

Accepted Answer

Dima Lisin
Dima Lisin on 25 Jan 2016
If you must do this from scratch, then you are going to have to implement the sliding window search. You slide a rectangle of a fixed size over the image, and each time classify it using your HOG-SVM classifier to see if there is a person there.
Or you use vision.PeopleDetector in the Computer Vision System Toolbox, which already includes a pre-trained HOG-SVM model, and will do sliding windows for you.
  7 Comments
Shivani Powar
Shivani Powar on 25 Jan 2021
can you share the code i have problem for classifier

Sign in to comment.

More Answers (1)

Andrei Cosmin
Andrei Cosmin on 1 Feb 2017
Hello there! I want to do same project and I don't know how to start and if the following diagram for the implementation it is ok: - obtain the hog feature; - doing calassification with a SVM code. I have read a lot of papers about the implementation of HOG and SVM and I don't exactly how to apply on my situation. I want to thank you for all response.
  1 Comment
zerocool timilsina
zerocool timilsina on 19 Feb 2017
Hi Andrei Cosmin. I am also working on this project. If you have completed this project then please share your work at timilsinadevipd@gmail.com. thank you .

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!