580 likes | 595 Views
CS223B Assignment 1 Recap. Lots of Solutions!. 37 Groups Many different approaches Let’s take a peek at all 37 results on one image from the test set. Possible Things to Look For. Symmetry Color Shadow Corners Edges Texture Taillights. Road Finding Tactic 1.
E N D
Lots of Solutions! • 37 Groups • Many different approaches • Let’s take a peek at all 37 results on one image from the test set
Possible Things to Look For • Symmetry • Color • Shadow • Corners • Edges • Texture • Taillights
Road Finding Tactic 1 • Run adaptive flood fill on the image starting at the pixels near the bottom • Everything that gets filled in is considered road • Holes inside the road are likely car candidates
Road Finding Tactic 2 • Run an edge detector (such as Prewitt or Canny) and a Hough transform, and then look for lines with the right approximate angle and position.
Road Finding Tactic 3 • Sample the color from some pixels directly in front of car (bottom of image) • Generate a difference map using this color • Run an edge detector on this difference map, followed by a Hough transform
Road Finding Tactic 4 • Assume the road is in pretty much the same place in every image and hard code it in
Edge Approach 1 • Detect edges with Canny detector • Dilate image to join nearby edges • Fill in closed regions
Edge Approach 2 • Custom edge mask that considers vertical and horizontal edges in likely configurations
Shadow Finding • Use a mask that enhances horizontal edges • Look for several adjacent rows of dark pixels in the road region
Corner Approach • Compute strong corners • Cluster them with kmeans • Find the densest clusters and compute their convex hulls
Texture Approach • Look for regions of high frequency • Find density of edges in rectangular regions • Mask or sum the derivative across rectangular regions • Take FFT of image and set magnitudes to 1, leaving only phase info; inverse FFT then enhances portions with many frequencies
Taillight Detection • Transforming the color space can help spot the reddest pixels • Groups of these pixels are good candidates for taillights • If there’s a horizontal pair of taillights, even better • Or, use a mask with the pair built in
Going from Pixels to Regions • Count the number of “car pixels” in square regions; if above a threshold, consider it a car region