Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to run the example, what am I doing wrong? #29

Closed
HDaoud opened this issue Nov 8, 2015 · 5 comments
Closed

Trying to run the example, what am I doing wrong? #29

HDaoud opened this issue Nov 8, 2015 · 5 comments

Comments

@HDaoud
Copy link

HDaoud commented Nov 8, 2015

Hi Michal,

I'm tying to run the example, and I'm getting this error:

$:~/clandmark/build/examples$ ./static_input 
Usage: static_input <path_to_haarcascade> <flandmark_model.xml> <input_image> [<output_image>]

feeding the parameters in the suggested order:

$:~/clandmark/build/examples$ ./static_input ./haarcascade_frontalface_alt.xml ./flandmark_model.xml ./face.jpg
Flandmark model loaded in 16.5043 ms
--(!)Error loading
@HDaoud HDaoud changed the title Trying to run the example, what I'm doing wrong? Trying to run the example, what am I doing wrong? Nov 8, 2015
@HDaoud
Copy link
Author

HDaoud commented Nov 8, 2015

Ok, my bad, looking at code, you don't have to put the name of the haarcascade xml file, only the directory as it's done in the code.

@HDaoud HDaoud closed this as completed Nov 8, 2015
@uricamic
Copy link
Owner

uricamic commented Nov 9, 2015

Yes, sorry for that.
I should unify the examples and create some documentation for them.

@HDaoud
Copy link
Author

HDaoud commented Nov 9, 2015

Thank you Michal, documentation will be of a great help, I'm currently installing the flandmark as I am working with C (IplImage...) I see that the new Clandmark use the Mat, vectors and it's OOP based, is there a way to use it with C? or should I use flandmark?
Thanks again!

@uricamic
Copy link
Owner

uricamic commented Nov 9, 2015

Hi @HDaoud,

CLandmark is object oriented. However, I think you can use it in C as well (actually, the MATLAB interface is doing exactly that).
Moreover, I think that IplImage is considered to be obsolete in OpenCV and cv::Mat is more convenient to use in my humble opinion.

flandmark is of course also possible to be used, but we do not work on it anymore. So, it is limited to detect only those 8 predefined landmarks and it seems that the possibility to save newly trained model is now broken.

@HDaoud
Copy link
Author

HDaoud commented Nov 9, 2015

Thanks for the reply, I will dig more in CLandmark while the documentation is prepared ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants