MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / display_lines

Function display_lines

Finding_Lanes/lanes.py:50–55  ·  view source on GitHub ↗
(image, lines)

Source from the content-addressed store, hash-verified

48
49
50def 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
58def roi(image):

Callers 1

lanes.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected