Computer Vision Flashcards
How is pure white and pure black expressed as a image
Pure white = [255,255,255]
Pure black = [0,0,0]
How to select x and y values of an image. Also how to copy an image
How to create a color threshold
How to interpret the following code
Since all thresholds are at 0, nothing is changed to black. However, changing the thresholds to 200 would change many pixels to black, leaving the white pixels alone.
Where is X=0 and Y=0 in image processing
upper left. The x values go right, the y values go down
Explain region of interest
Assuming camera is fixed and front facing, a certain region of interest should identify the lane lines while blacking everything else out. Can you any type of polygon to identify region, but triangle is most basic
how do you draw lines(perform linear fit) between different x,y coordinates
np.polyfit takes as input a tuple of x values, then a tuple of y values, and the degree polynomial. The x and y values correspond to the origin and destination coordiantes you are connecting
how to do find the coordinates between the lines drawn with np.polyfit
run np.meshgrid the size of the image. This just creates a grid of x,y coordinates(pixels). Then use a predicate filter(with AND operator) to grab the pixels that meet a certain criteria. In this example, the filter looks for y values greater than far left and right lines AND less than the bottom line. Rememeber y values increase as you move down and image from the upper left.
What is this line equivalent to?
Y = mx +b
How to color image pixels once you’ve identified a region threshold
- Region_select = copy of image
- Region threshold = all the pixels that met the filter criteria.
How to interpret this line
- Color all pixels black if its meets our color threshold OR falls outside the region of interest. Basically, some pixels that didn’t meet our color threshold will turn black becuase they are outside the region of interest.
Interpret this line
- Color threshold refers to the black areas. So not color threshold is al lthe white areas. Combing all the white areas with the region threshold gives you the lines.
Who developed edge detection algorithm
John Canny in 1986
Whats the goal of edge detection
find the boundaries of an object in an image