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].
Also, what does #SWAP(shape, i, j) function does in the facemarkLBF.cpp file? (line 565), code link below
https://github.com/opencv/opencv_cont...
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!
i have no idea about the restrictions, but given the pupils lists i doubt, that it will even work with 29 landmarks.
the SWAP function is used to augment the train data,to create another set of landmarksfrom an existing one, by swapping (symmetric) points.
if you have any pointlists with 29 (or other count), please make them (and the resp. images) available, so ppl here can try it !