YuvalNirkin / face_swap

End-to-end, automatic face swapping pipeline
GNU General Public License v3.0
827 stars 203 forks source link

Confict with OpenCV3.3.0 #12

Closed halfkai closed 7 years ago

halfkai commented 7 years ago

In OpenCV 3.3.0 and its contribs, it seems the functions like "cv2::face::createLBPHFaceRecognizer()" have been changed into "cv2::face::LBPHFaceRecognizer::create()"... and I've tried so many times and thought it was the compiling part went wrong... but it wasn't... so it would be nice to show that the version of OpenCV should below 3.3.0 :cry:

YuvalNirkin commented 7 years ago

Thanks for the feedback I'll fix it when I'll get the chance. For now you can just build find_face_landmarks without the LBP tracker and it should work.

cmake -DWITH_OPENCV_CONTRIB=OFF 
YuvalNirkin commented 7 years ago

I fixed the conflict with OpenCV 3.3.x in find_face_landmarks: https://github.com/YuvalNirkin/find_face_landmarks/commit/69975ae2c4baf1d18a15a3a2068a68afcfbaa4f1