I have used open cv2 to combine the images horizontally and vertically using below function provided by open cv :
##for horizontal = hconcat()
##for verticle = vconcat()
the challenge that I face here is while combining the images with these functions images required to have the same dimensions.
Could you please suggest me some another way using which I can combine images of different dimensions too.
another thing is to make border I have used copyMakeBorder().
##Border code :
image1= cv2.copyMakeBorder(resized1, 10, 10, 10, 0, cv2.BORDER_CONSTANT)
image2= cv2.copyMakeBorder(resized2, 10, 10, 10, 10, cv2.BORDER_CONSTANT)
image3= cv2.copyMakeBorder(resized3, 10, 10, 10, 10, cv2.BORDER_CONSTANT)
image4= cv2.copyMakeBorder(resized4, 10, 0, 10, 0, cv2.BORDER_CONSTANT)
which makes code complex.
Screenshot of images with border: https://drive.google.com/file/d/1AmFpJlgegPzu82pEgtbioPZnYaHLTaca/view?usp=sharing
After that, I am able to merge the 4 images together with the border but not sure how to add the 5th image in the middle.
Screenshot of merged images: https://drive.google.com/file/d/1kI24OmzQkkiHqYwrRLTlKEtxUdm81pkX/view?usp=sharing
##Please provide me with a solution for this.
##Thank you