Udacity/ Computer Vision Nanodegree Program/ L5


  • The original image:


  • Define RGB Blue and HSV selection thresholds and make the masks

The thresholds allow some high values of red and medium values of blue
lower_blue = np.array([0,0,120])
upper_blue = np.array([230,230,255])

The thresholds allow a narrow high value for the value channel from 170 – 255
lower_hue= np.array([100,100,170])
upper_hue = np.array([200,255,255])

Screen Shot 2020-04-30 at 8.22.28 PM

  • Mask and add a background image

Screen Shot 2020-04-30 at 8.22.22 PM

  • Combine the mask images and the masked background

Screen Shot 2020-04-30 at 8.13.12 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s