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

compilation error in clandmark #62

Closed mohanrajmit closed 8 years ago

mohanrajmit commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

uricamic commented 8 years ago

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 commented 8 years ago

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

after that am getting following errors

uricamic commented 8 years ago

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 commented 8 years ago

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

uricamic commented 8 years ago

What version of Visual Studio are you using?

mohanrajmit commented 8 years ago

visual studio 2012

uricamic commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

mohanrajmit commented 8 years ago

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

uricamic commented 8 years ago

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

mohanrajmit commented 8 years ago

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

uricamic commented 8 years ago

Ok

mohanrajmit commented 8 years ago

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

mohanrajmit commented 8 years ago

to run the static input and video input exe files

uricamic commented 8 years ago

Hi, all available models are here.

mohanrajmit commented 8 years ago

am getting following error while static_input.exe file image

uricamic commented 8 years ago

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 commented 8 years ago

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

image

it looks like flandmark model.

mohanrajmit commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

they are also available for download on the project webpage

mohanrajmit commented 8 years ago

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

uricamic commented 8 years ago

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.