In fact ,this is changed from https://github.com/BUPTLdy/human-detector.

But ,its edition is so old that I fixed for python3.6.

Dependence

imutils

sudo pip install imutils

python-opencv

sudo pip install python-opencv

scikit-learn

sudo pip install scikit-learn

scikit-image

sudo pip install scikit-image

Install

git clone git@github.com:BUPTLdy/human-detector.git
cd human-detector/object_detector
python python detector.py

Detail in Chinese

Human Detection using HOG-Linear SVM in Python

Result

Before NMS:

After NMS: