Hi! I use ubuntu 18, c++ in Qt. I wnat use this code, but i get this error: undefined reference to `cv::face::createFacemarkLBF()'
std::vector<cv::Rect> faces;
std::vector<std::vector<cv::Point2f> > landmarks;
cv::Ptr<cv::face::Facemark> facemark = cv::face::createFacemarkLBF();
//cv::Ptr<cv::face::Facemark> facemark = cv::face::createFacemarkAAM();
facemark->getFaces(img, faces);
facemark->fit(img, faces, landmarks);
for(int j=0;j<rects.size();j++){
cv::face::drawFacemarks(frame, landmarks[j], Scalar(0,0,255));
}