简体   繁体   中英

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. blank window size is 2456 x 1296 pixels. Each image size is 614x324 pixels. 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.

new_img = cv2.hconcat([im1, im2])
new_img = cv2.vconcat([im1, im2])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM