Human detection using svm and hog and counting

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

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

I am very grateful that you have answered my question.. I did a Google search and I came to this content . I also downloaded INRIA Database, and now I am on the implementation of the project.
Hello,I am a newer in image processing.I want to do some research about detecting and counting people based a camera, could you give me some advice or pass some matlab code to me.
@payam abdy have you made the project i am also working on this right now :(
payam abdy , ahmed shah I am also working on this project. It will be very helpful if you guys share some of your works here.
sanjana16
sanjana16 on 23 Nov 2017
Edited: sanjana16 on 23 Nov 2017
@ahmed SHAH and @zerocool timilsina, i am also working in this type of project. I need to count the number of people in a classroom. Can you help me, please. I am new in image processing.
can you tell how to do it using HOG-SVM classifier
can you share the code i have problem for classifier

Sign in to comment.

More Answers (1)

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

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.

Categories

Community Treasure Hunt

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

Start Hunting!