Skip to content

Instantly share code, notes, and snippets.

@robobe
Created December 9, 2017 16:49
Show Gist options
  • Save robobe/a8c687e374f0b8bef91a2ee5e6c94f6a to your computer and use it in GitHub Desktop.
Save robobe/a8c687e374f0b8bef91a2ee5e6c94f6a to your computer and use it in GitHub Desktop.
opencv matplotlib image show
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