Skip to content

Image processing

NotGayBut5CentsAre5Cents edited this page Jun 7, 2018 · 2 revisions

Uses openCv to process the screen.

get_lines

params:

screen # the screen to be processed

This function makes a greyscale representation of the screen. and process all the lines in a predefined ROI(region of interest)

detect_lanes

params:

screen # the screen to be processed

This function uses the above one, to get all the lines. Then it determines the 2 biggest lines to use for the lanes of the road

calc_slope

params:

x1, y1, x2, y2 # cordinates of two points which slope should be calculated

A helper function for calculating slope

Clone this wiki locally