I have a line of code here that uses the python binding for opencv:
cv2.polylines(mask, [pts],True, ignore_mask_color)
This draws a blue polygon on image mask.
But is there a way the lines of the polygon can be stylized? Not too much. Just dotted, or dashed, that's it really.