YuvalNirkin / face_swap

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

error: ‘CV_FOURCC’ was not declared in this scope #42

Open in3omnia opened 5 years ago

in3omnia commented 5 years ago
[ 96%] Built target face_swap_single2many
/home/in3omnia/develop/faceswap/End-to-end automatic face swapping pipeline/face_swap_image2video/face_swap_image2video.cpp: In function ‘int main(int, char**)’:
/home/in3omnia/develop/faceswap/End-to-end automatic face swapping pipeline/face_swap_image2video/face_swap_image2video.cpp:282:87: error: ‘CV_FOURCC’ was not declared in this scope
                 cv::VideoWriter out_vid(curr_output_path, CV_FOURCC('H', '2', '6', '4'), tgt_fps, tgt_size);
                                                                                       ^
face_swap_image2video/CMakeFiles/face_swap_image2video.dir/build.make:62: recipe for target 'face_swap_image2video/CMakeFiles/face_swap_image2video.dir/face_swap_image2video.cpp.o' failed
make[2]: *** [face_swap_image2video/CMakeFiles/face_swap_image2video.dir/face_swap_image2video.cpp.o] Error 1
CMakeFiles/Makefile2:364: recipe for target 'face_swap_image2video/CMakeFiles/face_swap_image2video.dir/all' failed
make[1]: *** [face_swap_image2video/CMakeFiles/face_swap_image2video.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
in3omnia commented 5 years ago

open face_swap_image2video/face_swap_image2video.cpp find all CV_FOURCC, and replace it with cv::VideoWriter::fourcc

YuvalNirkin commented 5 years ago

@in3omnia

open face_swap_image2video/face_swap_image2video.cpp find all CV_FOURCC, and replace it with cv::VideoWriter::fourcc

Is that a breaking change of a new OpenCV version?

in3omnia commented 5 years ago

Yes~