AI, Machine Learning, Artificial Intelligence, Deep Learning, Data Science.
np.random.normal(0, 10, gray.shape) # Add noise to image noisy_img = gray + noise # Save output image cv2.imwrite('noisy_image.png', noisy_img) Note — This noise has the same shape as the grayscale image, which is achieved by passing in the gray.shape argument. After adding the noise, we use these