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

cannot openfile CDPM.xml #79

Closed travischan closed 6 years ago

travischan commented 7 years ago

@uricamic I was trying the examples, but having trouble here. Hoping for your help, thanks! qq 20170317145822 qq 20170317150412 qq 20170317150833

uricamic commented 7 years ago

Hi @TravisChan,

from the screenshots, I guess the problem is the space ` between the path to the folder containing the.xmlmodels and theCDPM.xml`. The examples expect the path to the model including the model name. Try something like this: static_input C:\Users\chan\Desktop\C2F-DPM_models\CDPM.xml face.jpg faceout.jpg

travischan commented 7 years ago

Hi, @uricamic Thanks for your response. But it still can't work as the screenshot shows. _20170318235317

uricamic commented 7 years ago

Hi @TravisChan,

sorry, I didn't notice you are not passing the path to haarcascade_frontalface_alt.xml as well. So, if you have this file in the same directory as the static_input executable, you should use:

static_input .\ C:\Users\chan\Desktop\C2F-DPM_models\CDPM.xml face.jpg faceout.jpg

as the static_input.cpp suggests. There is a wrong usage message output in case when the instance of the CLandmark class is not created successfully, which I have to fix.

travischan commented 7 years ago

Hi @uricamic It still has a little problem like this. _20170319000959

uricamic commented 7 years ago

@TravisChan

this error shows only if you do not have the haarcascade_frontalface_alt.xml in the path provided as the first argument. In your case the current working directory. Just copy this file there or provide a path to a directory containing this file and it should work.

travischan commented 7 years ago

@uricamic It works, thanks a lot! You have been a great help.

uricamic commented 7 years ago

@TravisChan No problem

MosyMosy commented 6 years ago

Hi, I get "Flandmark model loaded in 196.26 ms --(!)Error loading" while i think every thing is true. this is my files: 1 And this is my cmd: 1 I don't know why i'm getting this error

uricamic commented 6 years ago

Hi @MosyMosy,

the problem is not in loading the flandmark model, but in loading the haarcascade. If you look in the static_input.cpp file, you will see that it expects just the path to the folder which contains haarcascade_frontalface_alt.xml (here).

So, all you need to do is to change the call to something like this: static_input .\ CDPM.xml face.jpg faceout.jpg

Sorry for the confusion.