Another common parameter is lineType, which can take three different values. We have previously commented on the differences between these three types. In order to see it more clearly, you can see the next screenshot, where we have plotted three lines with the same thickness and inclination: yellow = cv2.LINE_4, red = cv2.LINE_AA, and green = cv2.LINE_8. To see the full code of this example, you can check the basic_line_types.py script:
In the previous screenshot you can clearly see the difference when drawing a line with the three different line types.