I need to draw polygon from X, Y coordinates but with rounded corners I have the points of X, Y
My code is below, however if there is another library, I can use it.
Here my output image:

and this is the code
def create_mask(dirct,filename,alistofpoint,height,width):
myimg = np.zeros((height,width), dtype = "uint8")
po = np.array(alistofpoint, np.int32)
myimg_mod=cv2.fillPoly(myimg, [po],(255,255))
cv2.imwrite(dirct+"//"+filename, myimg_mod)
