I tried to use cv2.findcontours but the obtained curve is not smooth. Can anyone suggest me a better solution?