I transformed all images with ones in a background but images are appearing blur, and how to get border in the center
Code:
bottom_left=cv2.imread(“bottom_left.jpg”)
bottom_left=cv2.cvtColor(bottom_left,cv2.COLOR_BGR2RGB)
bottom_left=cv2.resize(bottom_left,(200,200))
bottom_right=cv2.imread(“bottom_right.jpg”)
bottom_right=cv2.cvtColor(bottom_right,cv2.COLOR_BGR2RGB)
bottom_right=cv2.resize(bottom_right,(200,200))
center=cv2.imread(“center.jpeg”)
center=cv2.cvtColor(center,cv2.COLOR_BGR2RGB)
center=cv2.resize(center,(200,200))
top_left=cv2.imread(“top_left.jpg”)
top_left=cv2.cvtColor(top_left,cv2.COLOR_BGR2RGB)
top_left=cv2.resize(top_left,(200,200))
top_right=cv2.imread(“top_right.jpg”)
top_right=cv2.cvtColor(top_right,cv2.COLOR_BGR2RGB)
top_right=cv2.resize(top_right,(200,200))
img=np.zeros(shape=(430,430,3))
plt.imshow(top_left)
print(top_left.shape)
img[10:210,10:210,:] = top_left[:,:,:]
img[10:210,220:420,:] = top_right[:,:,:]
img[220:420,10:210,:] = bottom_left[:,:,:]
img[220:420,220:420,:] = bottom_right[:,:,:]
img[100:300,100:300,:] = center[:,:,:]
plt.imshow(img)
https://drive.google.com/file/d/1VAwOe_PmDQuZgM8nmRy7sTb7bdlxkwCM/view?usp=sharing