Recently in the upper body test (upper-body detection), this article uses http://groups.inf.ed.ac.uk/calvin/calvin_upperbody_detector/for upper body detection
The authors used Voc-release 3.1 (DPM) to do the upper body detection, and integrated the VJ face detector to assist the upper body detection. DPM's later code can be downloaded from http://www.cs.berkeley.edu/~rbg/latent/, and the author's code style is good.
1 first need to install MATLAB and OPENCV under Linux, installation and configuration methods see:
installing MATLAB under Linux
Install OpenCV under Linux
2 Compiling Voc-release
Follow the readme to compile, where I have encountered the following issues:
When running COMPILE.M, an error occurred in the Mex-o fconvblas.cc-lmwblas-o Fconv line, "-O" is not an valid argument of MEX
Workaround: Change to Mex-o fconvmt.cc, compile a successful fconvmt*.mex to Fconv*.mex
3 Compiling Cavin library for human face detection of CPP
Because I am using the opencv2.4.9, the command compiled by the author obviously does not work, the final compilation of the successful command is:
Mex-l/usr/local/lib-i/usr/local/include/opencv-lopencv_core-lopencv_imgproc-lopencv_objdetect me_ HaarDetectOpenCV.cpp
4 Using the Calvin Library
Load (' Detenv.mat ')
Detectstillimage ('.. /example_data/images/000000.jpg ', ' Pff_model_upperbody_final.mat ', ' haarcascade_frontalface_alt2.xml ', det_pars,2 )
Can
Problem encountered: Matlab Error:cannot open with static TLS
Workaround: Preferences > General > Java-heap memory, add Java RAM, restart MATLAB
Upper-body detection source Configuration and operation