i am trying to resize the following PNG image without losing transparent background (alpha channel) using cv2.resize()
function but it only shows the original image with same dimensions
[![][1]][1]
the code i have written is:
import cv2
img=cv2.imread('ball.png',-1)
cv2.resize(img,(100,100))
cv2.imshow('Image',img)
cv2.waitKey(0)