[英]Drawing multiply images on a imshow window with OpenCV Python
I am trying to draw 16 images side by side on a blank unnamed window.我试图在一个空白的未命名窗口上并排绘制 16 个图像。 blank window size is 2456 x 1296 pixels.
空白窗口大小为 2456 x 1296 像素。 Each image size is 614x324 pixels.
每个图像大小为 614x324 像素。 I want to know how to draw or display images together on one window.
我想知道如何在一个窗口上一起绘制或显示图像。 Here is my desired output: enter image description here
这是我想要的输出:在此处输入图像描述
I think you can simply concatenate 16 images into a big image by cv2.hconcat
and cv2.vconcat
functions like below.我认为您可以通过
cv2.hconcat
和cv2.vconcat
函数简单地将 16 个图像连接成一个大图像,如下所示。
new_img = cv2.hconcat([im1, im2])
new_img = cv2.vconcat([im1, im2])
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.