cv2.polylines(img, pts, isClosed, color[, thickness[, lineType[, shift]]])
举例:
pts = np.array([[5,5],[5,45],[45,60],[5,60]], np.int32)
# 每个点都是(x, y)
cv2.polylines(img,[pts],True,(0,255,255))
cv2.polylines(img, pts, isClosed, color[, thickness[, lineType[, shift]]])
举例:
pts = np.array([[5,5],[5,45],[45,60],[5,60]], np.int32)
# 每个点都是(x, y)
cv2.polylines(img,[pts],True,(0,255,255))