(image, lines)
| 48 | |
| 49 | |
| 50 | def display_lines(image, lines): |
| 51 | line_image = np.zeros_like(image) |
| 52 | if lines is not None: |
| 53 | for x1, y1, x2, y2 in lines: |
| 54 | cv2.line(line_image, (x1, y1), (x2, y2), (0, 0, 255), 10) |
| 55 | return line_image |
| 56 | |
| 57 | |
| 58 | def roi(image): |