Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
img = cv2.imread("zebra.jpg")
#print(img.shape)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
half = cv2.resize(img, (0,0), fx = 0.5, fy = 0.5)
plt.imshow(half)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment