How can I use imshow to display multiple images in multiple windows?

后端 未结 5 1536
醉酒成梦
醉酒成梦 2021-01-02 06:40

I would like to do something like the following in order to display two images on the screen:

imshow("1", img1);
imshow(\'2\', \'img2\');

5条回答
  •  情书的邮戳
    2021-01-02 07:01

    And here is how to do it in Python:

        cv2.namedWindow("Channels")
        cv2.imshow("Channels", image_channels)
    
        cv2.namedWindow("Main")
        cv2.imshow("Main", image_main)
    

    You simply create a named window and pass its name as string to imshow.

提交回复
热议问题