Stitching Photos together

前端 未结 5 671
长情又很酷
长情又很酷 2020-12-05 03:31

So for this project I\'m working on, I have 2 photos. These two photos need to be stitched together, one on the top and one on the bottom, and then you will be able to see t

5条回答
  •  清歌不尽
    2020-12-05 03:58

    Use numpy.hstack() or numpy.vstack() based on whether you want the images next to each other or on top of each other. You can transform your images into numpy arrays if they are some weird format that numpy doesn't accept. Make sure that you set dtype=np.uint8 if you interpret images as arrays using the np.asarray() method.

提交回复
热议问题