From: Antonio Ospite Date: Sat, 10 Oct 2020 20:10:39 +0000 (+0200) Subject: opencv_trail_effect.cpp: set window size and title X-Git-Url: https://git.ao2.it/experiments/opencv_trail_effect.git/commitdiff_plain/3128c1a723398a114335437d899dd459b1c5b97c?ds=inline;hp=6dfbf326ce5ad3b4cd83760763c0ed7807803998 opencv_trail_effect.cpp: set window size and title Set window size and title to make the interaction a little nicer. --- diff --git a/opencv_trail_effect.cpp b/opencv_trail_effect.cpp index c78f326..98e3aed 100644 --- a/opencv_trail_effect.cpp +++ b/opencv_trail_effect.cpp @@ -197,6 +197,8 @@ int main(int argc, char *argv[]) } cv::namedWindow("Frame", cv::WINDOW_NORMAL); + cv::resizeWindow("Frame", frame_size); + cv::setWindowTitle("Frame", "OpenCV Trail Effect"); for (;;) { inputVideo >> input_frame;