Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
in3omnia opened this issue Apr 15, 2019 · 3 comments
Open

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

in3omnia opened this issue Apr 15, 2019 · 3 comments

Comments

@in3omnia
Copy link

[ 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
Copy link
Author

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

@YuvalNirkin
Copy link
Owner

YuvalNirkin commented Jun 6, 2019

@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
Copy link
Author

Yes~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants