Skip to content

Tag: image-processing

1 px thick line cv2

I need to draw a line in an image where no pixel is thicker than 1 pixel in the horizontal dimension. Despite I use thickness=1 in poly lines, in the resulting plot there may be 2 pixels horizontally adjacent set to 255, like in this pic: How can I prevent to have adjacent pixels set to 255? Or equivalently: …