Git Product home page Git Product logo

flandmark's Introduction

Explanation of directory content
================================

README		- this file
CMakeLists.txt	- to create release archives
libflandmark	- flandmark source code
examples	- demonstrational cpp applications
matlab_toolbox	- MATLAB examples and mex sources
learning	- MATLAB learning scripts for flandmark learning
data		- important data files for running examples
benchmarks	- face database divisions used for benchmarks

In case you use flandmark in an academic work, please cite the following paper:

@InProceedings{Uricar-Franc-Hlavac-VISAPP-2012,
  author =      {U{\v{r}}i{\v{c}}{\'{a}}{\v{r}}, Michal and Franc, Vojt{\v{e}}ch and Hlav{\'{a}}{\v{c}}, V{\'{a}}clav },
  title =       {Detector of Facial Landmarks Learned by the Structured Output {SVM}},
  year =        {2012},
  pages =       {547-556},
  booktitle =   {VISAPP '12: Proceedings of the 7th International Conference on Computer Vision Theory and Applications},
  editor =      {Csurka, Gabriela and Braz, Jos{\'{e}}},
  publisher =   {SciTePress --- Science and Technology Publications},
  address =     {Portugal},
  volume =      {1},
  isbn =        {978-989-8565-03-7},
  book_pages =  {747},
  month =       {February},
  day =         {24-26},
  venue =       {Rome, Italy},
  keywords =    {Facial Landmark Detection, Structured Output Classification, Support Vector Machines, Deformable Part Models},
  www =         {http://www.visapp.visigrapp.org},
}

Visit http://cmp.felk.cvut.cz/~uricamic/flandmark for further information
Join the chat at https://gitter.im/uricamic/flandmark

flandmark's People

Contributors

gitter-badger avatar lanpa avatar sthalik avatar uricamic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flandmark's Issues

improve the precision to detect points

I notice that in each image the points not is exactly in center point of nose (For Example)
corner: mouth or eyes.
It is perceived a small detour, even converting to grayscale

cvCvtColor(srcImg, grayImage, CV_BGR2GRAY);

In my case, How I could to improve for the precision, to after I could to calculate the distances of points for recognition face to be Better, and not occur risk of error ?

I'm anxious for you translate JNI JAVA the new version clandmark!!!
:-)
Contratulations about new project

badness on high yaw

High face yaw causes false positive detections which don't correspond to what's in the image.

Trying to guard against it by guessing yaw and skipping flandmark_detect invocation but it's kludgy and doesn't work anyway.

0001-CMake-Build-Fixes.patch

From 1e9e03b9eab1c21c8c720c5482feaac3d65984e8 Mon Sep 17 00:00:00 2001
From: Yclept Nemo <-------------------->
Date: Wed, 22 Jan 2014 14:18:36 -0500
Subject: [PATCH] CMake Build Fixes

    * Combine shared/static configuration. Only one instance of
    libflandmark is now built; Use -DBUILD_SHARED_LIBS:BOOL to toggle
    which one. Examples will link against whichever library is built.
    * Enable position-idependent-code in an agnostic fashion; PIC is now
    default for both static (required for linking against shared
    libraries) and shared (required) builds on all supported CMake
    compilers.
    * Add SOVERSION and VERSION information (based on
    flandmark_VERSION_{MAJOR,MINOR}). Symlinks are now created when
    building and the soname is embedded in the object file.
    ***** flandmark_VERSION_MAJOR is now tied to the SOVERSION *****
    * Remove unused COMPILE_DEFINITIONS property: FLANDMARK_STATIC

---
 examples/CMakeLists.txt     |  6 +++---
 libflandmark/CMakeLists.txt | 19 +++++++++----------
 2 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 7e93091..89f549c 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -27,13 +27,13 @@ endif(${OpenCV_VERSION_MINOR} LESS 3)

 set(${PROJECT_NAME}_simple_example_srcs simple_example.cpp)
 add_executable(${PROJECT_NAME}_simple_example ${${PROJECT_NAME}_simple_example_srcs})
-target_link_libraries(${PROJECT_NAME}_simple_example flandmark_static ${CV_LIBS_1})
+target_link_libraries(${PROJECT_NAME}_simple_example flandmark ${CV_LIBS_1})

 set(${PROJECT_NAME}_example1_srcs example1.cpp)
 add_executable(${PROJECT_NAME}_1 ${${PROJECT_NAME}_example1_srcs})
-target_link_libraries(${PROJECT_NAME}_1 flandmark_static ${CV_LIBS_1} ${CV_LIBS_2})
+target_link_libraries(${PROJECT_NAME}_1 flandmark ${CV_LIBS_1} ${CV_LIBS_2})

 set(${PROJECT_NAME}_example2_srcs example2.cpp)
 add_executable(${PROJECT_NAME}_2 ${${PROJECT_NAME}_example2_srcs})
-target_link_libraries(${PROJECT_NAME}_2 flandmark_static ${CV_LIBS_1} ${CV_LIBS_2})
+target_link_libraries(${PROJECT_NAME}_2 flandmark ${CV_LIBS_1} ${CV_LIBS_2})

diff --git a/libflandmark/CMakeLists.txt b/libflandmark/CMakeLists.txt
index 8acfefc..e707f26 100644
--- a/libflandmark/CMakeLists.txt
+++ b/libflandmark/CMakeLists.txt
@@ -1,20 +1,19 @@
 find_package( OpenCV REQUIRED )
 include_directories(${OpenCV_INCLUDE_DIRS})

-add_library(flandmark_static STATIC flandmark_detector.cpp flandmark_detector.h liblbp.cpp liblbp.h)
-target_link_libraries(flandmark_static ${OpenCV_LIBS})
-if(CMAKE_COMPILER_IS_GNUCC)
-    set_target_properties(flandmark_static PROPERTIES COMPILE_FLAGS -fPIC)
-endif(CMAKE_COMPILER_IS_GNUCC)
-set_property(TARGET flandmark_static PROPERTY COMPILE_DEFINITIONS FLANDMARK_STATIC)
-
-add_library(flandmark_shared SHARED flandmark_detector.cpp flandmark_detector.h liblbp.cpp liblbp.h)
-target_link_libraries(flandmark_shared ${OpenCV_LIBS})
+add_library(flandmark flandmark_detector.cpp flandmark_detector.h liblbp.cpp liblbp.h)
+target_link_libraries(flandmark ${OpenCV_LIBS})
+set_target_properties(flandmark PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
+set_target_properties(flandmark PROPERTIES
+  SOVERSION "${flandmark_VERSION_MAJOR}"
+  VERSION "${flandmark_VERSION_MAJOR}.${flandmark_VERSION_MINOR}"
+)

 #setup Config.cmake
 SET(FLANDMARK_BASE_DIR "${PROJECT_SOURCE_DIR}/libflandmark")
 set(FLANDMARK_BINARY_DIR "${PROJECT_BINARY_DIR}/libflandmark")
 configure_file(flandmarkConfig.cmake.in
-  "${PROJECT_BINARY_DIR}/libflandmark/flandmarkConfig.cmake" @ONLY)
+  "${PROJECT_BINARY_DIR}/libflandmark/flandmarkConfig.cmake" @ONLY
+)

 export(PACKAGE flandmark)
-- 
1.8.2.2

Compiling Library

No matter how much I try, I keep getting the same error!

Compiling mex-files on Windows platform...

C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: './mex/flandmark_detector_mex.cpp' not found.

please help

Retrained flandmark_model.dat is not readable

I have recently cloned the master version of flandmark, and I tried to re-run the MATLAB code in "learning/flandmark_learn.m". The training succeeded after a couple of days, but the resulting "learing/code/flandmark_model.dat" does not work.
The file sizes of the original and the newly generated "flandmark_model.dat" are identical. I also used kdiff3 (I have no proper Hex-diff viewer) to check if there is a difference between the files, and it seems that there is some difference in the beginning of the file, while the end is exactly identical.

Debugging a bit further, it seems that PsiGi[idx].ROWS and PsiGi[idx].COLS (see flandmark_detector.cpp) are wrong (large negative values). Unfortunately, I don't have any recipe to fix that.

Could you have a look at the file, please:
http://www.idiap.ch/~mguenther/flandmark_model.dat

Note that the original "flandmark_model.dat" still works properly.

Thank you
Manuel

Missing flcose

libflandmark\flandmark_detector.cpp line 198
missing fclose(fin);

some error in visual stdio building

Hi, uricamic. I try to build the clandmark in vs2012 and vs2013. I've compiled the source code in CMake and added the opencv path. However, when I build the clandmark, there is the only .dll file. Then, I add the .def file and get the lib. But some error appear, there is the error:
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::XmlNode::~XmlNode(void)" (??1XmlNode@clandmark@@QAE@XZ) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: class clandmark::XmlNode __thiscall clandmark::XmlNode::operator[](char const *)" (??AXmlNode@clandmark@@QAE?AV01@PBD@Z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: class std::vector<class clandmark::XmlNode,class std::allocator > __thiscall clandmark::XmlNode::getSet(char const *)" (?getSet@XmlNode@clandmark@@QAE?AV?$vector@VXmlNode@clandmark@@v?$allocator@VXmlNode@clandmark@@@std@@@std@@pbd@Z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: unsigned char * __thiscall clandmark::XmlNode::readRaw(int *)" (?readRaw@XmlNode@clandmark@@QAEPAEPAH@Z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::XmlNode::operator int(void)" (??BXmlNode@clandmark@@QAEHXZ) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::XmlNode::operator double(void)" (??BXmlNode@clandmark@@QAENXZ) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::XmlNode::operator class std::basic_string<char,struct std::char_traits,class std::allocator >(void)" (??BXmlNode@clandmark@@QAE?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@xz) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::XmlStorage::XmlStorage(class std::basic_string<char,struct std::char_traits,class std::allocator >,enum clandmark::FILE_TYPE)" (??0XmlStorage@clandmark@@QAE@V?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@W4FILE_TYPE@1@@z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::XmlStorage::~XmlStorage(void)" (??1XmlStorage@clandmark@@QAE@XZ) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: class clandmark::XmlNode __thiscall clandmark::XmlStorage::operator[](char const *)" (??AXmlStorage@clandmark@@QAE?AVXmlNode@1@PBD@Z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CLandmark::CLandmark(int,int,int,int,double,double)" (??0CLandmark@clandmark@@QAE@HHHHNN@Z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(int,int,int,int,double,double)" (??0Flandmark@clandmark@@QAE@HHHHNN@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CLandmark::CLandmark(void)" (??0CLandmark@clandmark@@QAE@XZ) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: void __thiscall clandmark::CLandmark::init(int,int,int,int,double,double)" (?init@CLandmark@clandmark@@QAEXHHHHNN@Z) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(char const *,bool)" (??0Flandmark@clandmark@@QAE@PBD_N@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clandmark::CLandmark::~CLandmark(void)" (??1CLandmark@clandmark@@UAE@XZ) referenced in function __catch$?getInstanceOf@Flandmark@clandmark@@SAPAV12@PBD_N@Z$0
3>Flandmark.obj : error LNK2019: unresolved external symbol "public: void __thiscall clandmark::CLandmark::computeWdimension(void)" (?computeWdimension@CLandmark@clandmark@@QAEXXZ) referenced in function "public: __thiscall clandmark::Flandmark::Flandmark(int,int,int,int,double,double)" (??0Flandmark@clandmark@@QAE@HHHHNN@Z)
3>Flandmark.obj : error LNK2019: unresolved external symbol "protected: void __thiscall clandmark::CLandmark::setGroundTruth(double *)" (?setGroundTruth@CLandmark@clandmark@@IAEXPAN@Z) referenced in function __catch$?getInstanceOf@Flandmark@clandmark@@SAPAV12@PBD_N@Z$0
3>Flandmark.obj : error LNK2019: unresolved external symbol "protected: void __thiscall clandmark::CLandmark::getNormalizedFrame(struct cimg_library::CImg *,int *)" (?getNormalizedFrame@CLandmark@clandmark@@IAEXPAU?$CImg@E@cimg_library@@pah@Z) referenced in function __catch$?getInstanceOf@Flandmark@clandmark@@SAPAV12@PBD_N@Z$0
3>CSparseLBPFeatures.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CFeatures::CFeatures(int,int,int,int *)" (??0CFeatures@clandmark@@QAE@HHHPAH@Z) referenced in function "public: __thiscall clandmark::CSparseLBPFeatures::CSparseLBPFeatures(int,int,int,int *)" (??0CSparseLBPFeatures@clandmark@@QAE@HHHPAH@Z)
3>CSparseLBPFeatures.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clandmark::CFeatures::~CFeatures(void)" (??1CFeatures@clandmark@@UAE@XZ) referenced in function "public: virtual __thiscall clandmark::CSparseLBPFeatures::~CSparseLBPFeatures(void)" (??1CSparseLBPFeatures@clandmark@@UAE@XZ)
3>CSparseLBPAppearanceModel.obj : error LNK2019: unresolved external symbol "public: void __thiscall clandmark::XmlStorage::writeRaw(void const *,int)" (?writeRaw@XmlStorage@clandmark@@QAEXPBXH@Z) referenced in function "public: virtual void __thiscall clandmark::CSparseLBPAppearanceModel::write(class clandmark::XmlStorage &,double * const,bool)const " (?write@CSparseLBPAppearanceModel@clandmark@@UBEXAAVXmlStorage@2@QAN_N@Z)
3>CDisplacementDeformationCost.obj : error LNK2001: unresolved external symbol "public: void __thiscall clandmark::XmlStorage::writeRaw(void const *,int)" (?writeRaw@XmlStorage@clandmark@@QAEXPBXH@Z)
3>CSparseLBPAppearanceModel.obj : error LNK2019: unresolved external symbol "class clandmark::XmlStorage & __cdecl clandmark::operator<<(class clandmark::XmlStorage &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (??6clandmark@@YAAAVXmlStorage@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) referenced in function "public: virtual void __thiscall clandmark::CSparseLBPAppearanceModel::write(class clandmark::XmlStorage &,double * const,bool)const " (?write@CSparseLBPAppearanceModel@clandmark@@UBEXAAVXmlStorage@2@QAN_N@Z)
3>CDisplacementDeformationCost.obj : error LNK2001: unresolved external symbol "class clandmark::XmlStorage & __cdecl clandmark::operator<<(class clandmark::XmlStorage &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (??6clandmark@@YAAAVXmlStorage@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z)
3>CSparseLBPAppearanceModel.obj : error LNK2019: unresolved external symbol "class clandmark::XmlStorage & __cdecl clandmark::operator<<(class clandmark::XmlStorage &,int const &)" (??6clandmark@@YAAAVXmlStorage@0@AAV10@ABH@Z) referenced in function "public: virtual void __thiscall clandmark::CSparseLBPAppearanceModel::write(class clandmark::XmlStorage &,double * const,bool)const " (?write@CSparseLBPAppearanceModel@clandmark@@UBEXAAVXmlStorage@2@QAN_N@Z)
3>CDisplacementDeformationCost.obj : error LNK2001: unresolved external symbol "class clandmark::XmlStorage & __cdecl clandmark::operator<<(class clandmark::XmlStorage &,int const &)" (??6clandmark@@YAAAVXmlStorage@0@AAV10@ABH@Z)
3>CSparseLBPAppearanceModel.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CAppearanceModel::CAppearanceModel(int,int,int,int,int,int,int,class clandmark::CLoss *)" (??0CAppearanceModel@clandmark@@QAE@HHHHHHHPAVCLoss@1@@z) referenced in function "public: __thiscall clandmark::CSparseLBPAppearanceModel::CSparseLBPAppearanceModel(int,int,int,int,int,int,int,int,class clandmark::CLoss *)" (??0CSparseLBPAppearanceModel@clandmark@@QAE@HHHHHHHHPAVCLoss@1@@z)
3>CSparseLBPAppearanceModel.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clandmark::CAppearanceModel::~CAppearanceModel(void)" (??1CAppearanceModel@clandmark@@UAE@XZ) referenced in function "public: virtual __thiscall clandmark::CSparseLBPAppearanceModel::~CSparseLBPAppearanceModel(void)" (??1CSparseLBPAppearanceModel@clandmark@@UAE@XZ)
3>CDisplacementDeformationCost.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CDeformationCost::CDeformationCost(class clandmark::CAppearanceModel * const,class clandmark::CAppearanceModel * const,class clandmark::CLoss * const)" (??0CDeformationCost@clandmark@@QAE@QAVCAppearanceModel@1@0QAVCLoss@1@@z) referenced in function "public: __thiscall clandmark::CDisplacementDeformationCost::CDisplacementDeformationCost(class clandmark::CAppearanceModel * const,class clandmark::CAppearanceModel * const,int)" (??0CDisplacementDeformationCost@clandmark@@QAE@QAVCAppearanceModel@1@0H@Z)
3>CDisplacementDeformationCost.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clandmark::CDeformationCost::~CDeformationCost(void)" (??1CDeformationCost@clandmark@@UAE@XZ) referenced in function "public: virtual __thiscall clandmark::CDisplacementDeformationCost::~CDisplacementDeformationCost(void)" (??1CDisplacementDeformationCost@clandmark@@UAE@XZ)
3>CNormalizedEuclideanLoss.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CLoss::CLoss(int,int)" (??0CLoss@clandmark@@QAE@HH@Z) referenced in function "public: __thiscall clandmark::CNormalizedEuclideanLoss::CNormalizedEuclideanLoss(int,int)" (??0CNormalizedEuclideanLoss@clandmark@@QAE@HH@Z)
3>CTableLoss.obj : error LNK2001: unresolved external symbol "public: __thiscall clandmark::CLoss::CLoss(int,int)" (??0CLoss@clandmark@@QAE@HH@Z)
3>CZeroLoss.obj : error LNK2001: unresolved external symbol "public: __thiscall clandmark::CLoss::CLoss(int,int)" (??0CLoss@clandmark@@QAE@HH@Z)
3>CNormalizedEuclideanLoss.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clandmark::CLoss::~CLoss(void)" (??1CLoss@clandmark@@UAE@XZ) referenced in function "public: virtual __thiscall clandmark::CNormalizedEuclideanLoss::~CNormalizedEuclideanLoss(void)" (??1CNormalizedEuclideanLoss@clandmark@@UAE@XZ)
3>CTableLoss.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall clandmark::CLoss::~CLoss(void)" (??1CLoss@clandmark@@UAE@XZ)
3>CZeroLoss.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall clandmark::CLoss::~CLoss(void)" (??1CLoss@clandmark@@UAE@XZ)
3>CTreeMaxSumSolver.obj : error LNK2019: unresolved external symbol "public: __thiscall clandmark::CMaxSumSolver::CMaxSumSolver(class std::vector<class clandmark::Vertex,class std::allocator > * const,class std::vector<class clandmark::CDeformationCost *,class std::allocator<class clandmark::CDeformationCost *> > * const,int,int)" (??0CMaxSumSolver@clandmark@@QAE@QAV?$vector@VVertex@clandmark@@v?$allocator@VVertex@clandmark@@@std@@@std@@qav?$vector@PAVCDeformationCost@clandmark@@v?$allocator@PAVCDeformationCost@clandmark@@@std@@@3@HH@Z) referenced in function "public: __thiscall clandmark::CTreeMaxSumSolver::CTreeMaxSumSolver(class std::vector<class clandmark::Vertex,class std::allocator > * const,class std::vector<class clandmark::CDeformationCost *,class std::allocator<class clandmark::CDeformationCost *> > * const,int,int)" (??0CTreeMaxSumSolver@clandmark@@QAE@QAV?$vector@VVertex@clandmark@@v?$allocator@VVertex@clandmark@@@std@@@std@@qav?$vector@PAVCDeformationCost@clandmark@@v?$allocator@PAVCDeformationCost@clandmark@@@std@@@3@HH@Z)
3>CTreeMaxSumSolver.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall clandmark::CMaxSumSolver::~CMaxSumSolver(void)" (??1CMaxSumSolver@clandmark@@UAE@XZ) referenced in function "public: virtual __thiscall clandmark::CTreeMaxSumSolver::~CTreeMaxSumSolver(void)" (??1CTreeMaxSumSolver@clandmark@@UAE@XZ)
3>D:\Program Files\clandmark\myclandmark\libclandmark\Debug\flandmark.dll : fatal error LNK1120: 30 unresolved externals

Can you help me?

fix CMakeLists.txt

CMakeLists.txt need several fixes:

  • dependency for different versions of OpenCV (now supported only 2.3+)
  • problems with compilation on Windows (opencv libs suffixes, mex-files)

flandmark_in windows simple_example.m is not running

i have the following error when i compile my flandmark_simple_example.m in matlab
how i need use flandmark in windows help me please

Undefined function or variable 'flandmark_load_model'.

Error in flandmark_simple_example (line 17)
model = flandmark_load_model('../data/flandmark_model.dat');

Compiling flandmark with VIsualStudio2012 gives errors in msvc-compat.h

Hi, I am compiling flandmark files (flandmark_detector.h, liblbp.h, msvc-compat.h,flandmark_detector.cpp, liblbp.cpp) with OpenCV3 libs and my C++ code files in VisualStudio2012.
However I kept getting errors like:
\users\pawan\visualstudio2012\projects\clandmarkexperiments\clandmarkexperiments\msvc-compat.h(8): error C2371: 'int8_t' : redefinition; different basic types
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdint.h(8) : see declaration of 'int8_t'

Seeing that stdint.h is available, I inverted the condition #ifdef _MSC_VER to #ifndef _MSC_VER, in msvc-compat.h, and got a build. The build is working fine, and I want to thank you to make this wonderful contribution. There is no issue,, and I think the above change works fine.

Linking error for Examples on Mac OS X

Hi,
First of all thanks for this great library.
The compilation of the static and dynamic libraries go well but when I try to compile the examples I receive this error:

kristofleroux@Edwi ~/Projects/flandmark/examples (master) > make
Linking CXX executable Project_1
Undefined symbols for architecture x86_64:
"cvResize", referenced from:
flandmark_get_normalized_image_frame(IplImage, int const
, double_, unsigned char_, model_struct_) in libflandmark_static.a(flandmark_detector.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *_* [Project_1] Error 1
make[1]: *** [CMakeFiles/Project_1.dir/all] Error 2
make: *** [all] Error 2

Any idea what is causing the problem ?
Thanks in advance!

I can not form a mex-files of flandmark

Hello, Michael!

I can not form a mex-files of your project flandmark (https://github.com/uricamic/flandmark).

I am using MS Visual Studio 2012 and try to compile flandmark_detector.

I get the following error:

1>------ Перестроение всех файлов начато: проект: flandmark_detector, Конфигурация: Release x64 ------
1> Building Custom Rule C:/facial landmark detector/flandmark/matlab_toolbox/mex/CMakeLists.txt
1> CMake does not need to re-run because C:\facial landmark detector\flandmark\build-msvc2012\matlab_toolbox\mex\CMakeFiles\generate.stamp is up-to-date.
1> Building MEX extension C:/facial landmark detector/flandmark/build-msvc2012/matlab_toolbox/mex/flandmark_detector.mexw64
1> Creating library C:\Users\ssv\AppData\Local\Temp\mex_SPtIIw\templib.x and object C:\Users\ssv\AppData\Local\Temp\mex_SPtIIw\templib.exp
1>flandmark_detector_mex.obj : error LNK2019: unresolved external symbol "int __cdecl flandmark_detect(struct _IplImage *,int *,struct model_struct *,double *,int *)" (?flandmark_detect@@YAHPEAU_IplImage@@PEAHPEAUmodel_struct@@PEAN1@Z) referenced in function mexFunction
1>flandmark_detector.mexw64 : fatal error LNK1120: 1 unresolved externals
1>
1>C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL : error : Link of 'flandmark_detector.mexw64' failed.
1>
========== Перестроение всех: успешно: 0, с ошибками: 1, пропущено: 0 ==========

How can you help me?

Sincerely,
Sergei Verkin

Error running flandmark_compilemex.m

When i try to run flandmark_compilemex.m am getting an error as follows:

Compiling mex-files on Windows platform...
Too many outputs requested. Most likely cause is missing [] around left hand side that has
a comma separated list expansion.

Error in flandmark_compilemex (line 71)
opencv_core = opencv_core.name;

please help

x,y swapped in flandmarkdetector.cpp

flandmarkdetector.cpp, Line 1100: x and y are in reverse here (at the end):

face_img[INDEX(x, y, model->data.options.bw[1])] = (uint8_t)((resizedImage->imageData + resizedImage->widthStep*x)[y]);

it's not too bad, since the cropped region is a square

but am i right, that i can't just change it without also changing the training code and recalculating the flandmark_model.dat ?

btw, found this, while replacing the deprecated IplImages with cv::Mat ( i have to use flandmark with opencv master(3.0), and they made it impossible to use IplImages outside the library )

still, thanks a lot for coming up with this extremely useful library !

Unable to make from master branch on linux

I cloned the master and configured ccmake as per instructions.
When I run make I get a lot of ISO C++ warnings which can probably be ignored.
After this I get the following:

make[2]: *** No rule to make target /home/loki/opencv/lib/libopencv_videostab.so.3.0.0', needed bylibflandmark/libflandmark_shared.so'. Stop.
make[1]: *** [libflandmark/CMakeFiles/flandmark_shared.dir/all] Error 2
make: *** [all] Error 2

Any suggestions?

Test for detection failure?

Hi,
Is there a test/quantity to see if landmarks detection fails? Suppose that face detection has some false positive, then the landmarks detection is applied not to a face, but some "random" patch. Have some way to test landmarks detection failure may be useful in that situation.

How can I get much more landmark & speed up the algorithm?

Very impressive project and easy to implement.

  1. However, is any possible to get much more facial landmarks. According to the introduction, it only provide 8 points.
  2. Are there any possible method to speed up the overall algorithm, such as using CUDA.

Error at method call cvLoadHaarClassifierCascade

Hello,
I am working on windows 7 platform with jdk1.8 I am getting following error. I tried a lot but unable to find the reason why getting this error, error snap is as follows.

Exception in thread "main" java.lang.NoSuchMethodError: putMemberOffset
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:637) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:637)
at org.bytedeco.javacpp.Loader.load(Loader.java:492)
at org.bytedeco.javacpp.Loader.load(Loader.java:409)
at org.bytedeco.javacpp.opencv_core.(opencv_core.java:10)
at detection.Example1.loadFaceCascade(Example1.java:36)
at detection.Example1.main(Example1.java:140)
Error getting static method ID of org/bytedeco/javacpp/Loader/putMemberOffset

Please help me!
I added following libraries in project.
flandmark-1.07-0.9.jar
opencv-3.0.0-1.0.jar
opencv-3.0.0-1.0-windows-x86.jar
opencv-3.0.0-1.0-windows-x86_64.jar
javacpp-0.9.jar
javacv-0.9.jar

Also tried different versions of these libraries but not worked out.

Installation queries

I am a linux user with no access to Matlab.
I would like to know what are the dependencies for this library and is it possible to install this without matlab?

Further, appreciate a more detailed installation instructions.

ld: library not found for -lhighgui

I had an error compiling on OSX Yosemite

Linking CXX executable flandmark_1
ld: library not found for -lhighgui
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/flandmark_1] Error 1
make[2]: Target `examples/CMakeFiles/flandmark_1.dir/build' not remade because of errors.
make[1]: *** [examples/CMakeFiles/flandmark_1.dir/all] Error 2

I was able to fix by modifying /examples/CMakeLists.txt and commenting out lines 10 and 11.

if (UNIX)
#set(CV_LIBS_1 highgui)
#set(CV_LIBS_2 cxcore cv cvaux)
elseif (WIN32)
set(CV_LIBS_1 highgui${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH})
set(CV_LIBS_2 cxcore${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH} cv${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH} cvaux${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH})
elseif (APPLE)
endif (UNIX)

Although, this would probably break the installation on other systems. I believe there may be some issue preventing the installer from setting the UNIX variable false.

Error During Compilation with 'make'

As mentioned in INSTALL file in Flanmark-master, I Followed instructions.
Finally during compilation i got the following errors.

[ 71%] Building CXX object examples/CMakeFiles/flandmark_1.dir/example1.cpp.o
/home/vijay/Flandmark/flandmark-master/examples/example1.cpp:11:16: fatal error: cv.h: No such file or directory
#include <cv.h>
^
compilation terminated.
examples/CMakeFiles/flandmark_1.dir/build.make:54: recipe for target 'examples/CMakeFiles/flandmark_1.dir/example1.cpp.o' failed
make[2]: *** [examples/CMakeFiles/flandmark_1.dir/example1.cpp.o] Error 1
CMakeFiles/Makefile2:166: recipe for target 'examples/CMakeFiles/flandmark_1.dir/all' failed
make[1]: *** [examples/CMakeFiles/flandmark_1.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Cannot load './results/options.mat' while running flandmark_learn.m file

I am trying to run 'flandmark_learn.m' file, but it's getting following error:

Error using load
Unable to read file ./results/options.mat: No such file or directory.

Error in prepDataForLBP (line 27)
load('./results/options.mat');

I noticed that 'options.mat' is saved into './code/MAT/' directory (save('./code/MAT/options.mat', 'options');--->flandmark_learn.m, line no: 83 )

If I make changes in 'prepDataForLBP.m' file from "load('./results/options.mat');" to "load('./MAT/options.mat');", In that case it shows following error message:

Reference to non-existent field 'S'.

Error in prepDataForLBP (line 30)
S = options.S;

Error in run (line 57)
evalin('caller', [s ';']);

Error in flandmark_learn (line 160)
run './code/prepDataForLBP.m';

run
Error using run (line 23)
Not enough input arguments.

What should I do???

example1 should check return value of flandmark_detect

Hi,
in example1.cpp the main loop does:

    flandmark_detect(input, bbox, model, landmarks);

and then goes on to plot the results; however on one of my images (which doesn't actually contain any faces) a face is wrongly detected by the HaarDetect but then the flandmark_detect flags an error. which is ignored and you still end up plotting the values - these tend to be the old values from the previous loop and thus you don't notice, but the values can be completely bogus.

libqp_splx => Incorrect number of input arguments

Hey,

I'm trying to train a model,
i run learn_flanmark.m but I got an error when it comes to BMRM solver.

Error occurs in brmr.m at line 127 which is:

% solve reduced problem
[alpha,stat] = libqp_splx(H(1:nCP,1:nCP),-b(1:nCP),1,ones(1,nCP),1,[alpha;0]);

it says Incorrect number of input arguments in libqp_splx mex.

When i check mex file, total of 12 mxArrays required for that function. but mex file gets only 3 mxArrays and i get that error.

Any help is appreciated. Im trying to solve this. if i find a solution i ll post it here.

Thanks in advance.

PS: I am using a image dataset that i have created. for testing purposes i'm using a limited number of images. I'm using 32bit matlab. All mex files are compiled.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.