(image, line_parameters)
| 13 | |
| 14 | |
| 15 | def make_coordinate(image, line_parameters): |
| 16 | slope, intercept = line_parameters |
| 17 | y1 = image.shape[0] |
| 18 | y2 = int(y1*(3/5)) |
| 19 | x1 = int((y1-intercept)/slope) |
| 20 | x2 = int((y2-intercept)/slope) |
| 21 | return np.array([x1, y1, x2, y2]) |
| 22 | |
| 23 | |
| 24 | def average_lines_intercept(image, lines): |
no outgoing calls
no test coverage detected