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

Function make_coordinate

Finding_Lanes/lanes.py:15–21  ·  view source on GitHub ↗
(image, line_parameters)

Source from the content-addressed store, hash-verified

13
14
15def 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
24def average_lines_intercept(image, lines):

Callers 1

average_lines_interceptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected