From 3128c1a723398a114335437d899dd459b1c5b97c Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 10 Oct 2020 22:10:39 +0200 Subject: [PATCH] opencv_trail_effect.cpp: set window size and title Set window size and title to make the interaction a little nicer. --- opencv_trail_effect.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.1.4