<jupyter_start><jupyter_text>Quiz 1: Color SelectionThis is an extension of another notebook: Color Selection. Modify the values of Red,Green and Blue Thresholds so the image you read, looks like below<jupyter_code># Import required items

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np


#Read the Image
image = mpimg.imread('../img/test.jpg')
#print('The following image is:',type(image), 'The dimensions are: ', image.shape)

# Lets grab x and y size and make a copy of image
ysize = image.shape[0]
xsize = image.shape[1]

# ALWAYS make a copy rather than using '=' this will help avoid changing unintended variables
color_image = np.copy(image)
#plt.imshow(color_image)

######
#UPDATE these to get image as defined earlier as RESULT

red_threshold = 0
green_threshold = 0
blue_threshold = 0

#make a list of all three together
rgb_threshold = [red_threshold,green_threshold,blue_threshold]



thresholds = (image[:,:,0] < rgb_threshold[0]) \
            |(image[:,:,1] < rgb_threshold[1]) \
            |(image[:,:,2] < rgb_threshold[2])

color_image[thresholds] = [0,0,0]

plt.imshow(color_image) 
mpimg.imsave('../img/test-after.jpg',color_image)
# BONUS: Print both side by side for better representation
sidebyside,ax = plt.subplots(1,2)
ax[0].imshow(image)
ax[1].imshow(color_image)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1177336276674025, 'fraction_numerical': 0.013980868285504048, 'mean_word_length': 5.044444444444444, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '471708', 'license': 'MIT', 'n_tokens_mistral': 467, 'n_tokens_neox': 450, 'n_words': 138, 'path': '01-Computer-Vision-Fundamentals/Quiz-1.1-Color-Selection.ipynb', 'repo_name': 'vyasparthm/AutonomousDriving', 'size': '1359'}