senliuy/FaceLivenessDetection

Problem: Segmentation fault: 11

Opened this issue · 6 comments

I had built this code on mac mini and the OS was 10.12.6.
I used Logitech HD 1080p webcam.
After building, the program crashed and showed Segmentation fault: 11.
Have you ever met this problem?

The Segmentation fault occurs at fust.cpp:133 (opencv version 3.3.0),
std::vector<std::vectorseeta::FaceInfo> proposals(hierarchy_size_[0]);
But the vector of hierarchy_size_ length is 0.
So segmentation fault!

@slill904 hi. I also have the same issues,How did you solve it?

Hi, same here, if you did solve this issue, would you please let me know how you did?

@HamzaouiManal This problem can be fixed easily. Just change the path in lib/local/LandmarkDetector/src/LandmarkDetectorParameters.cpp.

Thx @Chanstk it worked.

For future users, we need also the seetaFace detector, so create a folder named seetaFace and copy all the files and folders of the seetaFace detector, copy the seeta_fd_frontal_v1.0.bin in the seetaFace folder.
We need also to change the two paths in \FaceLivenessDetection/FaceLivenessDetection/exe/FaceLivenessDetection/FaceLivenessDetection.cpp
I also downloaded haarAlign.txt from https://github.com/TadasBaltrusaitis/OpenFace/blob/master/lib/local/LandmarkDetector/model/haarAlign.txt and put it in /FaceLivenessDetection/FaceLivenessDetection/model
I think that's all what I did so this prog worked for me.