void video(Mat& image);
void ColorInvert::video(Mat& image)
{
VideoCapture capture("E:/2024/self/ffmpeg-7.0-essentials_build/bin/video.mp4");
Mat frame;
while (true) {
capture.read(frame);
flip(frame, frame, 1);
if (frame.empty())
{
break;
}
imshow("frame", frame);
int c = waitKey(1);
if (c == 27)
{
break;
}
}