Python, Image Processing, Kernel, Matplotlib, TensorFlow.
plt.title('Grayscale Image by Typical Weights') plt.axis('off') plt.show() img_small_resized = img.resize((25, 25)) # Convert the resized image to a numpy array image_array_small = np.array(img_small_resized) grayscale_image_small = 0.2989 * image_array_small[:,:,0] + 0.5870 *