Skip to content

Sample files for training a cascade classifier to detect human outlines using OpenCV

License

Notifications You must be signed in to change notification settings

psyclone20/Human-Identifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Human Identifier

Contains sample files for training OpenCV's cascade classifier to detect human outlines.

The samples are in-game screenshots from Counter-Strike 1.6.

Contents

person.vec:

A summarized file containing data from 1280 positive samples

neg:

Contains 1047 negative samples

bg.txt:

Lists all the negative sample files in the neg directory

output

The location of the trained classifier

Usage

Copy all the files to same location as the opencv_traincascade file and run the following command:

opencv_traincascade -data output -vec person.vec -bg bg.txt -numPos 124 -numNeg 1047 -numStages 10 -h 64 -w 64

Feel free to tweak the last 5 parameters as per your requirements.

If you just want the final output file, you can find it in output/person-cascade.xml

Output Sample

output sample