In [5]:
import cv2
import numpy as np
import matplotlib.pyplot as plt
img = np.zeros((300, 300, 3), dtype='uint8')
points = np.array([[110, 141], [106, 132], [50,250],[150,230], [196, 188], [158, 185]])
cv2.polylines(img, [points], True, (0,255,0))
f,ax = plt.subplots(1, 1, figsize=(6,6))
ax.set_title('cv2.polylines', fontsize=20)
ax.imshow(img)
Out[5]:
In [ ]: