Upper-body detection source Configuration and operation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.