HW1

Due on Feb 4 (20 points)

Please include your source code and submit your solution as a pdf to Canvas.

  1. Setup the OpenCV environment and capture a short video of yourself. Please submit a screenshot of running your code (5 points).

  2. Segment all blue pixels (with H values between 99 and 125 in the HSV color-space) in a captured frame. Display the segmentation result (all segmented pixels shown as white with the rest shown as black) along with the captured frame (10 points). See here if you are stuck.

  3. Display the ratio of the segmented pixels over all pixels on the frame (5 points). See here to put text on a frame.