Finds line segments in a binary image using the probabilistic Hough transform.
cv2.HoughLinesP(image, rho, theta, threshold[, lines[, minLineLength[, maxLineGap]]]) → lines
lines
in the middle of the function signature, it is good practice to use the parameter names when calling this function. For example, lines = cv2.HoughLinesP(img, rho=1, theta=1*np.pi/180, threshold=100, minLineLength=100, maxLineGap=50)
.