This is the excutable files (simple version) for pose estimation in videos. If you use our program, please cite the paper below: 

Haoquan Shen, Shoou-I Yu, Yi Yang, Deyu Meng, Alex Hauptmann, Unsupervised Video Adaptation for Parsing Human Motion, The European Conference on Computer Vision (ERA Rank A), 2014

Note that the programs are only for academic use. 

Description:

There are totally 9 directories, in which "PARSE", "BUFFY" and "INRIA" are used to initialize our model. "FYDP_dataset" and "UYDP_dataset" are used to conduct the experiments in our paper. So please do not modify these three directories. "Full_body_test" and "Half_body_test" are used for the testing purpose (test on user's own data). User can modify data in these two directories. The data format will be described later. The "exe" and "demo" directory contains the excutable files of full body and upper body pose estimation. Before you start the program, make sure you have the "Matlab 7.14.0.739 (R2012a) 32 bit" or "Matlab 7.13.0.564 (R2011b) 64 bit" in your computer. This code is only for windows system. If you can not run it on your computer, you can contact shenhaoquan@gmail.com and ask for the configuration file "MCRInstaller.exe". 

In "Full_body_test" ("Half_body_test"), there is a directory named "frames" containing all testing video frames. The name of these images are as follows:

im0001.jpg
im0002.jpg
im0003.jpg
...

These images need to be consecutive video frames. The program accepts any image size. But in general, making the size of full-body and half-body person shown in the image to be 180 and 200 pixel tall can obtain good performance.

In addition, there is a .mat file named "label.mat" containing the joint positions of peoples in every video frames. This file is only for evaluation purpose. You can just leave it with all zeros in an real-world application(but this file is required). In "label.mat", the variable "label" is a 14*2*n (10*2*n) matrix containing 14 (10) joint locations in n video frames. Please make sure that variable "n" matches the number of images in the directory "Full_body_test/frames" ("Half_body_test/frames"). (14 joints for full body pose estimation. These joints are left ankle, left knee, left hip, right hip, right knee, right ankle, left wrist, left elbow, left shoulder, right shoulder, right elbow, right wrist, head bottom and head top; 10 joints for upper body pose estimation. These joints are head top, head bottom, left shoulder, left elbow, right shoulder, right elbow, left wrist, right wrist, left hip, right hip.)

The APK and PCK result of every iteration will be written in "result.txt" (only if "label.mat" contains the ground truth label, the APK and PCK results are meaningful, otherwise this file is pointless).

The detailed results of every iteration will be in the file "result_iter_n.mat". (n=1 means the first iteration; n=2 means the second iteration. The results of the first iteration will come out first, but the results of the second iteration will generally better than that of first iteration.)

"result_iter_n.mat" contains one variable "result":
"result(i).im" is the location (directory) for image i.
"result(i).point" is the predicted joint locations for image i, which is a 14*2 (10*2) matrix for full and upper body pose estimation separately.

If you have other problems, feel free contact shenhaoquan@gmail.com.

Note that this code is only the basic version. We can modify the code to get either higher performance or higher efficiency by sacrificing the other one.