<jupyter_start><jupyter_text>Gray Image Transformation<jupyter_code>import cv2
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg

%matplotlib inline
image = mpimg.imread('images/car1.jpg')
print('Image dimensions:', image.shape)
# Change from color to grayscale
imag = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)

plt.imshow(gray_image, cmap='gray')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10268948655256724, 'fraction_numerical': 0.012224938875305624, 'mean_word_length': 7.723404255319149, 'pattern_counts': {'":': 0, '<': 5, '<?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': '505905', 'license': 'MIT', 'n_tokens_mistral': 152, 'n_tokens_neox': 149, 'n_words': 33, 'path': 'gray_image_processing.ipynb', 'repo_name': 'bongsang/bongsang-cnn', 'size': '409'}