Created
December 9, 2017 16:49
-
-
Save robobe/a8c687e374f0b8bef91a2ee5e6c94f6a to your computer and use it in GitHub Desktop.
opencv matplotlib image show
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
image = cv2.imread("berry.jpg") | |
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) | |
plt.axis("off") | |
plt.imshow(image, interpolation="nearest") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment