uricamic / clandmark

Open Source Landmarking Library
http://cmp.felk.cvut.cz/~uricamic/clandmark
GNU General Public License v3.0
199 stars 111 forks source link

Matlab example - Undefined function 'create_xml_init' for input arguments of type 'cell'. #52

Closed botev closed 8 years ago

botev commented 8 years ago

When I try to run createModelFor300W I get the error that there is no such function create_xml_init. Am I missing something?

uricamic commented 8 years ago

Hi @Botev,

thank you for noticing, it seems I forgot to include it in the commit. I will fix this soon.

uricamic commented 8 years ago

Should be fixed now, the create_xml_init.m function is in matlab_interface/functions/ folder.

botev commented 8 years ago

Thanks for that a lot! Now I think it works, however can you post a link to the 300W dataset in the format that CLandmark is using? The current links I get from google http://ibug.doc.ic.ac.uk/resources/300-W/ are broken.

PS: Also if it might be possible to write a scirpt or have some comments on how to run one of the pretrained models on new images, that would be great.

uricamic commented 8 years ago

Hi @Botev,

I will describe the format of the .mat file describing the database soon. However, I cannot provide the images, for those, you have to ask the people from the i-bug group.

To run the pretrained models on new images all you need to do is to detect the face (e.g. using the OpenCV face detector) and then call the detect function from the CLandmark class, see the MATLAB example, where the face detections are loaded from a file. I have also added MATLAB functions calling some specific versions of the detector, e.g. the C2F-DPM and you can check the new simple_example.m which calls it.