IHDC: Idiap Human Detection Code | ||
Running the programsYou might first require to get and compile the code. Required video dataTo test the program, you need a video. This video must be recorded from a static camera and should contain persons (if you want to do person detections). For testing purpose, we provide a video (OneStopNoEnter1cor.mpg) that can also be downloaded from the index of the CAVIAR dataset. Learning background model
The first step is to learn a background model.
This model should be learnt using a video sequence containing as few static objects as possible.
You can generate a models/bgmodel.yml output model like this:
build/bin/bgsub_learn data/OneStopNoEnter1cor.mpg models/bgmodel.yml -sfn 4 Doing background subtraction (no human detection)
You will use the generated background model to do background detection.
Here, we will work on the same video sequence.
The process will generate foreground mask probability images in the results/demo folder.
mkdir results/demo build/bin/bgsub_detect data/OneStopNoEnter1cor.mpg models/bgmodel.yml \ -nolearn -od results/demo -ofpi Doing human detectionHere again, we need a background model and an input video. We also need a configuration for the detector, we use models/human.yml. You can run human detection with interactive visualization like this: build/bin/human_detect models/human.yml data/OneStopNoEnter1cor.mpg \ -bgm models/bgmodel.yml -ddet -sfn 4 Understanding the parametersGeneral parametersYou can get the list of parameters of any executable by just running it with no parameters or with the --help option. Each parameter is accompanied by a description. Some categories of parameters can be found for most of the executable and are good to know, these are:
Next sections given more informations about parameters of specific executables. These are not intended to supersede the executable built-in help but rather it should give another point of view on these parameters. Parameters for background subtraction (learning and detection)The generic background subtraction algorithm can generate, refine or simply use a background model. The bgsub_learn executable will only learn a model from scratch. The bgsub_detect executable uses a learnt model to segment foreground/background in images. During detection, the background model is refined by default, you can disable it (and improve speed) with the -nolearn option. Parameters for human detectionYou can use the --help option to get the list of all parameters. For further explanation, please refer to the corresponding papers. |
||