Skip to content

Instantly share code, notes, and snippets.

@ivder
Created February 19, 2019 03:55
Show Gist options
  • Save ivder/af8fe9a092e2c5d7773c1ff06e8a6436 to your computer and use it in GitHub Desktop.
Save ivder/af8fe9a092e2c5d7773c1ff06e8a6436 to your computer and use it in GitHub Desktop.
Test the video sharpness
int main(int argc, char** argv)
{
VideoCapture capture("GOPR0632.MP4");
Mat frame, result;
while (true) {
if (!capture.read(frame)) {
break;
}
cv::GaussianBlur(frame, result, cv::Size(0, 0), 3);
addWeighted(frame, 1.5, result, -0.5, 0, result);
namedWindow("Orginal");
namedWindow("Result");
imshow("Orginal", frame);
imshow("Result", result);
if (waitKey(25) >= 0)
break;
}
waitKey(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment