userblock25 userblock25 - 1 month ago 35
Python Question

Draw breaklines(dotted line/dashed line) in Opencv

How to add breakline(dotted line/dashed line) in OpenCV drawing functions like

cv2.line()
,
cv2.rectangle()
?

Is there a line type for break lines?

Answer

I think you are looking for dashed line or dotted line in opencv. Please see this example