Closed travischan closed 6 years ago
Hi @TravisChan,
from the screenshots, I guess the problem is the space ` between the path to the folder containing the
.xmlmodels and the
CDPM.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
Hi, @uricamic Thanks for your response. But it still can't work as the screenshot shows.
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.
Hi @uricamic It still has a little problem like this.
@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.
@uricamic It works, thanks a lot! You have been a great help.
@TravisChan No problem
Hi, I get "Flandmark model loaded in 196.26 ms --(!)Error loading" while i think every thing is true. this is my files: And this is my cmd: I don't know why i'm getting this error
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.
@uricamic I was trying the examples, but having trouble here. Hoping for your help, thanks!