opencv_trail_effect.cpp: set window size and title master
authorAntonio Ospite <ao2@ao2.it>
Sat, 10 Oct 2020 20:10:39 +0000 (22:10 +0200)
committerAntonio Ospite <ao2@ao2.it>
Sat, 10 Oct 2020 20:12:14 +0000 (22:12 +0200)
Set window size and title to make the interaction a little nicer.

opencv_trail_effect.cpp

index c78f326..98e3aed 100644 (file)
@@ -197,6 +197,8 @@ int main(int argc, char *argv[])
        }
 
        cv::namedWindow("Frame", cv::WINDOW_NORMAL);
        }
 
        cv::namedWindow("Frame", cv::WINDOW_NORMAL);
+       cv::resizeWindow("Frame", frame_size);
+       cv::setWindowTitle("Frame", "OpenCV Trail Effect");
 
        for (;;) {
                inputVideo >> input_frame;
 
        for (;;) {
                inputVideo >> input_frame;