Python, Image Processing, Kernel, Matplotlib, TensorFlow.
created. ## Make it grayscale ## Equal ratio grayscale_image = (image_array[:,:,0] + image_array[:,:,1] + image_array[:,:,2]) / 3 # Display the grayscale image plt.figure(figsize=(20,20)) plt.imshow(grayscale_image, cmap='gray') plt.title('Grayscale Image by Average') plt.axis('off') plt.show()