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

compilation error in clandmark #62

Closed
mohanrajmit opened this issue Jul 25, 2016 · 27 comments
Closed

compilation error in clandmark #62

mohanrajmit opened this issue Jul 25, 2016 · 27 comments

Comments

@mohanrajmit
Copy link

i have compiled the clandmark library using camke. i have opened clandmark.sln file and compiled it's shows the following.
image

kindly help to resolve the above mentioned error.

@uricamic
Copy link
Owner

Hi @mohanrajmit,

all error which you have encountered should be solved by following the advice from the issue #46. If you have any problems or something in that thread is not clear, just ask.

@mohanrajmit
Copy link
Author

i have compiled by setting dlib shared library and build cpp examples are false. now am not getting any errors. two files are created fladmark.lib and clandmark.lib.

@mohanrajmit
Copy link
Author

am not able to get dll files and while compiling cpp examples am getting errors.
kindly help me to resolve the errors.

@uricamic
Copy link
Owner

Hi @mohanrajmit,

to get the .dll files you have to switch the BUILD_SHARED_LIBS to ON and compile again. I am sorry for this inconvenience, on Linux and Mac, this works more intuitively.

@mohanrajmit
Copy link
Author

now i had set BUILD_SHARED_LIBS to true. only clandmark.dll is created.
image

after that am getting following errors

@uricamic
Copy link
Owner

Hi @mohanrajmit,

I do not understand this, in previous message, you said that you got both flandmark.lib and clandmark.lib and now it seems that clandmark.lib is missing. Have you compiled it in Release mode with BUILD_SHARED_LIBS=OFF previously as well? I mean if it was generated once, it should still be there...

@mohanrajmit
Copy link
Author

i regenerated the solution file by enabling BUILD_SHARED_LIBS true by using cmake. after compiling this solution lib files are not there.

@uricamic
Copy link
Owner

What version of Visual Studio are you using?

@mohanrajmit
Copy link
Author

visual studio 2012

@uricamic
Copy link
Owner

That's weird. I was also using this version, and it was not removing the files in my case. Nevermind, please try to copy the generated .lib files somewhere else and then copy them back for the compilation of .dll files.

@mohanrajmit
Copy link
Author

i have one question, after enabling BUILD_SHARED_LIBS to true , i have click configure and then generate or directly i have to press generate.

@uricamic
Copy link
Owner

I guess you have to configure first. Otherwise, it should generate the last valid configuration.

@mohanrajmit
Copy link
Author

thanks alot. now i copied and pasted it.
image
now i got both dll and lib

@uricamic
Copy link
Owner

Glad to hear that :) So, now everything works for you?

@mohanrajmit
Copy link
Author

now am trying to compile the example file. am regenerating the solution file for example

@uricamic
Copy link
Owner

Ok

@mohanrajmit
Copy link
Author

now i compiled example also. exe are created . where i can get cpdm.xml .

@mohanrajmit
Copy link
Author

to run the static input and video input exe files

@uricamic
Copy link
Owner

uricamic commented Jul 25, 2016

Hi, all available models are here.

@mohanrajmit
Copy link
Author

am getting following error while static_input.exe file
image

@uricamic
Copy link
Owner

that means that the path to haar_cascade is incorrect. It is supposed to be given only as a path containing the .xml file and it has to end by \. Sorry fo that, it is not written specifically.

@mohanrajmit
Copy link
Author

now its working fine. again thanks alot for patient answering all questions.

image

it looks like flandmark model.

@mohanrajmit
Copy link
Author

The following model present in folder.
image
where i can get Joint Multi-view Facial Landmarks Detector and Coarse-to-fine (C2F-DPM) dense landmark set detector model.

@uricamic
Copy link
Owner

Hi,

no problem.

I should just warn you that this old flandmark_model.xml model file is not compatible with this static_input example. Since the example code uses new way of computing features, which is faster. I haven't released the compatible version for these 8 landmarks yet. This is also described in several threads here. So, please use e.g. cdpm.xml or jointmv_frontal.mv with this code example.

@uricamic
Copy link
Owner

they are also available for download on the project webpage

@mohanrajmit
Copy link
Author

thanks for the whole support. now am able to use clandmark library.
image

@uricamic
Copy link
Owner

Glad to hear that :), you are welcome.

Final remark, the best results for this dense 68 landmark set are obtained by combining both C-DPM and F-DPM models, forming the C2F-DPM as described in our IMAVIS paper and available also in the code snippets on the project web page.

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