error: ‘CV_FOURCC’ was not declared in this scope
in3omnia opened this issue · 3 comments
in3omnia commented
[ 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
open face_swap_image2video/face_swap_image2video.cpp
find all CV_FOURCC
, and replace it with cv::VideoWriter::fourcc
YuvalNirkin commented
open
face_swap_image2video/face_swap_image2video.cpp
find allCV_FOURCC
, and replace it withcv::VideoWriter::fourcc
Is that a breaking change of a new OpenCV version?
in3omnia commented
Yes~