FacemarkLBF Training fewer landmark points than 68
Hi
I've been trying to train model using FacemarkLBF but with landmark points other than 29 and 68, and while training - it shows segmentation fault. Why does this restriction to the landmark points come into play? And is it sure that the error is because of the landmark points being other than 29, and 68? [confirming though that have verified every bit of code and dataset am using]. using].
Also, what does #SWAP(shape, i, j) function does in the facemarkLBF.cpp file? (line 565), code link below
https://github.com/opencv/opencv_contrib/blob/master/modules/face/src/facemarkLBF.cpp
In the else loop, it has a warning that it does not work with the landmark points other than 29/68 : then why does it still go on and train and then give segmentation fault? Shouldn't the code break there only (or before after checking number of landmark points given as parameter/in the file)
Thanks!